AVBlocks for C++
2.1
Audio and Video Software Development Kit
|
Initializes AVBlocks and manages license information. More...
Functions | |
primo::avblocks::Config * | config () |
Returns the library configuration object. More... | |
primo::codecs::AudioStreamInfo * | createAudioStreamInfo () |
Creates an empty audio stream info. More... | |
primo::codecs::StreamInfo * | createDataStreamInfo () |
Creates a stream info for generic data. More... | |
primo::error::ErrorInfo * | createErrorInfo () |
Creates a new ErrorInfo instance. More... | |
primo::avblocks::FloatParameter * | createFloatParameter () |
Creates a float parameter. More... | |
primo::codecs::Hardware * | createHardware () |
Creates a Hardware enumeration object. More... | |
primo::avblocks::IntParameter * | createIntParameter () |
Creates an integer parameter. More... | |
primo::license::LicenseInfo * | createLicenseInfo () |
Creates a new LicenseInfo instance. More... | |
primo::codecs::MediaBuffer * | createMediaBuffer (int32_t capacity=0) |
Creates a media buffer with the specified capacity. More... | |
primo::avblocks::MediaBufferParameter * | createMediaBufferParameter () |
Creates a parameter that holds a MediaBuffer object. More... | |
primo::avblocks::MediaInfo * | createMediaInfo () |
Creates a media information object. More... | |
primo::avblocks::MediaPin * | createMediaPin () |
Creates a media pin. More... | |
primo::codecs::MediaSample * | createMediaSample () |
Creates an empty media sample. More... | |
primo::avblocks::MediaSocket * | createMediaSocket () |
Creates a media socket. More... | |
primo::avblocks::MediaSocket * | createMediaSocket (const char *preset) |
Creates a media socket from an AVBlocks Preset. More... | |
primo::avblocks::MediaSocket * | createMediaSocket (MediaInfo *mediaInfo) |
Creates a media socket from a MediaInfo object. More... | |
primo::codecs::MetaAttribute * | createMetaAttribute () |
Creates an empty MetaAttribute object. More... | |
primo::codecs::Metadata * | createMetadata () |
Creates an empty Metadata object. More... | |
primo::codecs::MetaPicture * | createMetaPicture () |
Creates an empty MetaPicture object. More... | |
primo::avblocks::ParameterList * | createParameterList () |
Creates an empty collection of filter parameters. More... | |
primo::avblocks::StringParameter * | createStringParameter () |
Creates a parameter that holds a char_t* string. More... | |
Transcoder * | createTranscoder () |
Creates a Transcoder. More... | |
primo::codecs::VideoStreamInfo * | createVideoStreamInfo () |
Creates an empty video stream info. More... | |
primo::avblocks::VideoStreamInfoParameter * | createVideoStreamInfoParameter () |
Creates a parameter that holds a VideoStreamInfoParameter object. More... | |
const char * | description () |
Gets library build description. More... | |
bool_t | initialize () |
Initializes the AVBlocks library. More... | |
int32_t | majorVersion () |
Gets library major version. More... | |
int32_t | minorVersion () |
Gets library minor version. More... | |
int32_t | patchVersion () |
Gets library patch version. More... | |
int32_t | setLicense (const char *license) |
Sets a license string. More... | |
void | shutdown () |
Closes the AVBlocks library and frees the resources that are used (if any). More... | |
Initializes AVBlocks and manages license information.
This namespace contains global functions for the AVBlocks library. These are C++ wrappers of the functions in the pure "C" interface exported by the library.
primo::avblocks::Config* primo::avblocks::Library::config | ( | ) |
Returns the library configuration object.
primo::codecs::AudioStreamInfo* primo::avblocks::Library::createAudioStreamInfo | ( | ) |
Creates an empty audio stream info.
The caller is responsible for releasing the object when it is not needed anymore.
primo::codecs::StreamInfo* primo::avblocks::Library::createDataStreamInfo | ( | ) |
Creates a stream info for generic data.
The caller is responsible for releasing the object when it is not needed anymore.
primo::error::ErrorInfo* primo::avblocks::Library::createErrorInfo | ( | ) |
Creates a new ErrorInfo instance.
primo::avblocks::FloatParameter* primo::avblocks::Library::createFloatParameter | ( | ) |
Creates a float parameter.
The caller is responsible for releasing the object when it is not needed anymore.
primo::codecs::Hardware* primo::avblocks::Library::createHardware | ( | ) |
Creates a Hardware enumeration object.
The caller is responsible for releasing the object when it is not needed anymore.
primo::avblocks::IntParameter* primo::avblocks::Library::createIntParameter | ( | ) |
Creates an integer parameter.
The caller is responsible for releasing the object when it is not needed anymore.
primo::license::LicenseInfo* primo::avblocks::Library::createLicenseInfo | ( | ) |
Creates a new LicenseInfo instance.
primo::codecs::MediaBuffer* primo::avblocks::Library::createMediaBuffer | ( | int32_t | capacity = 0 | ) |
Creates a media buffer with the specified capacity.
The caller is responsible for releasing the object when it is not needed anymore.
capacity | The required capacity must be greater or equal to 0. |
primo::avblocks::MediaBufferParameter* primo::avblocks::Library::createMediaBufferParameter | ( | ) |
Creates a parameter that holds a MediaBuffer object.
The caller is responsible for releasing the object when it is not needed anymore.
primo::avblocks::MediaInfo* primo::avblocks::Library::createMediaInfo | ( | ) |
Creates a media information object.
The caller is responsible for releasing the object when it is not needed anymore.
primo::avblocks::MediaPin* primo::avblocks::Library::createMediaPin | ( | ) |
Creates a media pin.
It is used in input and output sockets of the transcoder. The caller is responsible for releasing the object when it is not needed anymore.
primo::codecs::MediaSample* primo::avblocks::Library::createMediaSample | ( | ) |
Creates an empty media sample.
The caller is responsible for releasing the object when it is not needed anymore.
primo::avblocks::MediaSocket* primo::avblocks::Library::createMediaSocket | ( | ) |
Creates a media socket.
It is used as an input or output point of the transcoder. The caller is responsible for releasing the object when it is not needed anymore.
primo::avblocks::MediaSocket* primo::avblocks::Library::createMediaSocket | ( | const char * | preset | ) |
Creates a media socket from an AVBlocks Preset.
preset | [in] A pointer to a preset string. The known presets are listed in the primo::avblocks::Preset namespace. |
primo::avblocks::MediaSocket* primo::avblocks::Library::createMediaSocket | ( | MediaInfo * | mediaInfo | ) |
Creates a media socket from a MediaInfo object.
This method will call MediaInfo::load, if the MediaInfo has not been loaded.
mediaInfo | [in] A pointer to a MediaInfo object with audio/video information. This object is not needed after the method returns. |
This method is meant to help in setting correctly the inputs of the Transcoder. The intended usage is as follows:
primo::codecs::MetaAttribute* primo::avblocks::Library::createMetaAttribute | ( | ) |
Creates an empty MetaAttribute object.
The caller is responsible for releasing the object when it is not needed anymore.
primo::codecs::Metadata* primo::avblocks::Library::createMetadata | ( | ) |
Creates an empty Metadata object.
The caller is responsible for releasing the object when it is not needed anymore.
primo::codecs::MetaPicture* primo::avblocks::Library::createMetaPicture | ( | ) |
Creates an empty MetaPicture object.
The caller is responsible for releasing the object when it is not needed anymore.
primo::avblocks::ParameterList* primo::avblocks::Library::createParameterList | ( | ) |
Creates an empty collection of filter parameters.
The caller is responsible for releasing the object when it is not needed anymore.
primo::avblocks::StringParameter* primo::avblocks::Library::createStringParameter | ( | ) |
Creates a parameter that holds a char_t* string.
The caller is responsible for releasing the object when it is not needed anymore.
Transcoder* primo::avblocks::Library::createTranscoder | ( | ) |
Creates a Transcoder.
The caller is responsible for releasing the object when it is not needed anymore.
primo::codecs::VideoStreamInfo* primo::avblocks::Library::createVideoStreamInfo | ( | ) |
Creates an empty video stream info.
The caller is responsible for releasing the object when it is not needed anymore.
primo::avblocks::VideoStreamInfoParameter* primo::avblocks::Library::createVideoStreamInfoParameter | ( | ) |
Creates a parameter that holds a VideoStreamInfoParameter object.
The caller is responsible for releasing the object when it is not needed anymore.
const char* primo::avblocks::Library::description | ( | ) |
Gets library build description.
bool_t primo::avblocks::Library::initialize | ( | ) |
Initializes the AVBlocks library.
Must be called once before the library is used, usually when the application starts.
int32_t primo::avblocks::Library::majorVersion | ( | ) |
Gets library major version.
int32_t primo::avblocks::Library::minorVersion | ( | ) |
Gets library minor version.
int32_t primo::avblocks::Library::patchVersion | ( | ) |
Gets library patch version.
int32_t primo::avblocks::Library::setLicense | ( | const char * | license | ) |
Sets a license string.
The supplied license is appended to the library license state.
license | A string with license information. If the license string is NULL the library license state is cleared. |
void primo::avblocks::Library::shutdown | ( | ) |
Closes the AVBlocks library and frees the resources that are used (if any).
Should be called when the library will not be used anymore, e.g. when the application ends.