|
AVPKit
|
Specifies format information than can be used to configure an IContainer for input or output. More...
#include <IContainerFormat.h>
Public Member Functions | |
| virtual int32_t | setInputFormat (const char *shortName)=0 |
| Sets the input format for this container. More... | |
| virtual int32_t | setOutputFormat (const char *shortName, const char *url, const char *mimeType)=0 |
| Sets the output format for this container. More... | |
| virtual const char * | getInputFormatShortName ()=0 |
| Get the short name for the input format. More... | |
| virtual const char * | getInputFormatLongName ()=0 |
| Get the long name for the input format. More... | |
| virtual const char * | getOutputFormatShortName ()=0 |
| Get the short name for the output format. More... | |
| virtual const char * | getOutputFormatLongName ()=0 |
| Get the long name for the output format. More... | |
| virtual const char * | getOutputFormatMimeType ()=0 |
| Get the mime type for the output format. More... | |
| virtual int32_t | getInputFlags ()=0 |
| Get the input flags associated with this object. More... | |
| virtual void | setInputFlags (int32_t newFlags)=0 |
| Set the input flags to use with this object. More... | |
| virtual bool | getInputFlag (Flags flag)=0 |
| Get the input setting for the specified flag. More... | |
| virtual void | setInputFlag (Flags flag, bool value)=0 |
| Set the input flag. More... | |
| virtual int32_t | getOutputFlags ()=0 |
| Get the output flags associated with this object. More... | |
| virtual void | setOutputFlags (int32_t newFlags)=0 |
| Set the output flags to use with this object. More... | |
| virtual bool | getOutputFlag (Flags flag)=0 |
| Get the output setting for the specified flag. More... | |
| virtual void | setOutputFlag (Flags flag, bool value)=0 |
| Set the output flag. More... | |
| virtual bool | isOutput ()=0 |
| Is this an output container format? More... | |
| virtual bool | isInput ()=0 |
| Is this an input container format? More... | |
| virtual const char * | getOutputExtensions ()=0 |
| Get the filename extensions that this output format prefers (most common first). More... | |
| virtual ICodec::ID | getOutputDefaultAudioCodec ()=0 |
| Get the default audio codec this container prefers, if known. More... | |
| virtual ICodec::ID | getOutputDefaultVideoCodec ()=0 |
| Get the default video codec this container prefers, if known. More... | |
| virtual ICodec::ID | getOutputDefaultSubtitleCodec ()=0 |
| Get the default subtitle codec this container prefers, if known. More... | |
| virtual int32_t | getOutputNumCodecsSupported ()=0 |
| Gets the number of different codecs this container can include for encoding. More... | |
| virtual ICodec::ID | getOutputCodecID (int32_t index)=0 |
| Queries for a supported codec id from the list of codecs that can be encoded into this ContainerFormat. More... | |
| virtual int32_t | getOutputCodecTag (int32_t index)=0 |
| Queries for a supported codec tag from the list of codecs that can be encoded into this ContainerFormat. More... | |
| virtual int32_t | getOutputCodecTag (ICodec::ID id)=0 |
| Get the 4-byte tag the container would output for the given codec id. More... | |
| virtual bool | isCodecSupportedForOutput (ICodec::ID id)=0 |
| Returns true if this container format can output media encoded with the given codec. More... | |
Public Member Functions inherited from com::avpkit::ferry::RefCounted | |
| virtual int32_t | acquire () |
| Internal Only. More... | |
| virtual int32_t | release () |
| Internal Only. More... | |
| virtual RefCounted * | copyReference () |
| Create a new Java object that refers to the same native object. More... | |
| virtual int32_t | getCurrentRefCount () |
| Return the current reference count on this object. More... | |
| void | setJavaAllocator (void *allocator) |
| This method is public but not part of the standard API. More... | |
| void * | getJavaAllocator () |
| This method is public but not part of the standard API. More... | |
Static Public Member Functions | |
| static IContainerFormat * | make () |
| Create a new IContainerFormat object. More... | |
| static int32_t | getNumInstalledInputFormats () |
| Get the number of input formats this install can demultiplex (read) from. More... | |
| static IContainerFormat * | getInstalledInputFormat (int32_t index) |
| Return an object for the input format at the given index. More... | |
| static int32_t | getNumInstalledOutputFormats () |
| Get the number of output formats this install can multiplex (write) to. More... | |
| static IContainerFormat * | getInstalledOutputFormat (int32_t index) |
| Return an object for the output format at the given index. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from com::avpkit::ferry::RefCounted | |
| virtual void | destroy () |
| This method is called by RefCounted objects when their Ref Count reaches zero and they are about to be destroyed. | |
Protected Attributes inherited from com::avpkit::ferry::RefCounted | |
| AtomicInteger * | mRefCount |
| This is the internal reference count, represented as an AtomicInteger to make sure it is thread safe. | |
| void * | mAllocator |
| Not part of public API. | |
Specifies format information than can be used to configure an IContainer for input or output.
Often times AVPKIT can guess the correct formats to put into a given IContainer object, but sometimes it needs help. You can allocate an IContainerFormat object and specify information about input or output containers, and then pass this to IContainer.open(...) to help us guess.
Definition at line 40 of file IContainerFormat.h.
|
pure virtual |
Get the input setting for the specified flag.
| flag | The flag you want to find the setting for |
Implemented in com::avpkit::core::ContainerFormat.
|
pure virtual |
Get the input flags associated with this object.
Implemented in com::avpkit::core::ContainerFormat.
|
pure virtual |
Get the long name for the input format.
Implemented in com::avpkit::core::ContainerFormat.
|
pure virtual |
Get the short name for the input format.
Implemented in com::avpkit::core::ContainerFormat.
|
static |
Return an object for the input format at the given index.
| index | an index for the input format list we maintain |
Definition at line 52 of file IContainerFormat.cpp.
References com::avpkit::core::Global::init(), make(), and com::avpkit::core::ContainerFormat::setInputFormat().
|
static |
Return an object for the output format at the given index.
| index | an index for the output format list we maintain |
Definition at line 81 of file IContainerFormat.cpp.
References com::avpkit::core::Global::init(), make(), and com::avpkit::core::ContainerFormat::setOutputFormat().
|
static |
Get the number of input formats this install can demultiplex (read) from.
Definition at line 40 of file IContainerFormat.cpp.
References com::avpkit::core::Global::init().
|
static |
Get the number of output formats this install can multiplex (write) to.
Definition at line 69 of file IContainerFormat.cpp.
References com::avpkit::core::Global::init().
|
pure virtual |
Queries for a supported codec id from the list of codecs that can be encoded into this ContainerFormat.
| index | The index in our lookup table. Index >= 0 and < getOutputNumCodecsSupported(). Index values may change between releases, so always query. |
Implemented in com::avpkit::core::ContainerFormat.
|
pure virtual |
Get the 4-byte tag the container would output for the given codec id.
| id | the codec you are about |
Implemented in com::avpkit::core::ContainerFormat.
|
pure virtual |
Queries for a supported codec tag from the list of codecs that can be encoded into this ContainerFormat.
Tags are 4-byte values that are often used as markers in a container format for a codec type.
| index | The index in our lookup table. Index >= 0 and < getOutputNumCodecsSupported(). Index values may change between releases, so always query. |
Implemented in com::avpkit::core::ContainerFormat.
|
pure virtual |
Get the default audio codec this container prefers, if known.
Implemented in com::avpkit::core::ContainerFormat.
|
pure virtual |
Get the default subtitle codec this container prefers, if known.
Implemented in com::avpkit::core::ContainerFormat.
|
pure virtual |
Get the default video codec this container prefers, if known.
Implemented in com::avpkit::core::ContainerFormat.
|
pure virtual |
Get the filename extensions that this output format prefers (most common first).
Implemented in com::avpkit::core::ContainerFormat.
|
pure virtual |
Get the output setting for the specified flag.
| flag | The flag you want to find the setting for |
Implemented in com::avpkit::core::ContainerFormat.
|
pure virtual |
Get the output flags associated with this object.
Implemented in com::avpkit::core::ContainerFormat.
|
pure virtual |
Get the long name for the output format.
Implemented in com::avpkit::core::ContainerFormat.
|
pure virtual |
Get the mime type for the output format.
Implemented in com::avpkit::core::ContainerFormat.
|
pure virtual |
Get the short name for the output format.
Implemented in com::avpkit::core::ContainerFormat.
|
pure virtual |
Gets the number of different codecs this container can include for encoding.
This can be used as an upper bound when using the getOutputCodecID(int) and getOutputCodecTag(int) methods to dynamically query the actual codecs.
Implemented in com::avpkit::core::ContainerFormat.
|
pure virtual |
Returns true if this container format can output media encoded with the given codec.
| id | the codec you care about. |
Implemented in com::avpkit::core::ContainerFormat.
|
pure virtual |
Is this an input container format?
Implemented in com::avpkit::core::ContainerFormat.
|
pure virtual |
Is this an output container format?
Implemented in com::avpkit::core::ContainerFormat.
|
static |
Create a new IContainerFormat object.
Definition at line 33 of file IContainerFormat.cpp.
References com::avpkit::core::Global::init().
Referenced by getInstalledInputFormat(), and getInstalledOutputFormat().
|
pure virtual |
Set the input flag.
| flag | The flag to set |
| value | The value to set it to (true or false) |
Implemented in com::avpkit::core::ContainerFormat.
|
pure virtual |
Set the input flags to use with this object.
All values must be ORed (|) together.
| newFlags | The new set flags for this codec. |
Implemented in com::avpkit::core::ContainerFormat.
|
pure virtual |
Sets the input format for this container.
| shortName | The short name for this container (using FFMPEG's short name). |
Implemented in com::avpkit::core::ContainerFormat.
|
pure virtual |
Set the output flag.
| flag | The flag to set |
| value | The value to set it to (true or false) |
Implemented in com::avpkit::core::ContainerFormat.
|
pure virtual |
Set the output flags to use with this object.
All values must be ORed (|) together.
| newFlags | The new set flags for this codec. |
Implemented in com::avpkit::core::ContainerFormat.
|
pure virtual |
Sets the output format for this container.
We'll look at the shortName, url and mimeType and try to guess a valid output container format.
| shortName | The short name for this container (using FFMPEG's short name). |
| url | The URL for this container. |
| mimeType | The mime type for this container. |
Implemented in com::avpkit::core::ContainerFormat.