|
AVPKit
|


Public Member Functions | |
| virtual int32_t | setInputFormat (const char *shortName) |
| Sets the input format for this container. More... | |
| virtual int32_t | setOutputFormat (const char *shortName, const char *url, const char *mimeType) |
| Sets the output format for this container. More... | |
| virtual const char * | getInputFormatShortName () |
| Get the short name for the input format. More... | |
| virtual const char * | getInputFormatLongName () |
| Get the long name for the input format. More... | |
| virtual const char * | getOutputFormatShortName () |
| Get the short name for the output format. More... | |
| virtual const char * | getOutputFormatLongName () |
| Get the long name for the output format. More... | |
| virtual const char * | getOutputFormatMimeType () |
| Get the mime type for the output format. More... | |
| AVInputFormat * | getInputFormat () |
| AVOutputFormat * | getOutputFormat () |
| void | setInputFormat (AVInputFormat *) |
| void | setOutputFormat (AVOutputFormat *) |
| virtual int32_t | getInputFlags () |
| Get the input flags associated with this object. More... | |
| virtual void | setInputFlags (int32_t newFlags) |
| Set the input flags to use with this object. More... | |
| virtual bool | getInputFlag (Flags flag) |
| Get the input setting for the specified flag. More... | |
| virtual void | setInputFlag (Flags flag, bool value) |
| Set the input flag. More... | |
| virtual int32_t | getOutputFlags () |
| Get the output flags associated with this object. More... | |
| virtual void | setOutputFlags (int32_t newFlags) |
| Set the output flags to use with this object. More... | |
| virtual bool | getOutputFlag (Flags flag) |
| Get the output setting for the specified flag. More... | |
| virtual void | setOutputFlag (Flags flag, bool value) |
| Set the output flag. More... | |
| virtual bool | isOutput () |
| Is this an output container format? More... | |
| virtual bool | isInput () |
| Is this an input container format? More... | |
| virtual const char * | getOutputExtensions () |
| Get the filename extensions that this output format prefers (most common first). More... | |
| virtual ICodec::ID | getOutputDefaultAudioCodec () |
| Get the default audio codec this container prefers, if known. More... | |
| virtual ICodec::ID | getOutputDefaultVideoCodec () |
| Get the default video codec this container prefers, if known. More... | |
| virtual ICodec::ID | getOutputDefaultSubtitleCodec () |
| Get the default subtitle codec this container prefers, if known. More... | |
| virtual int32_t | getOutputNumCodecsSupported () |
| Gets the number of different codecs this container can include for encoding. More... | |
| virtual ICodec::ID | getOutputCodecID (int32_t index) |
| 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) |
| 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) |
| Get the 4-byte tag the container would output for the given codec id. More... | |
| virtual bool | isCodecSupportedForOutput (ICodec::ID id) |
| 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... | |
Additional Inherited Members | |
Public Types inherited from com::avpkit::core::IContainerFormat | |
| enum | Flags { FLAG_NOFILE =0x0001 , FLAG_NEEDNUMBER = 0x0002 , FLAG_SHOW_IDS =0x0008 , FLAG_RAWPICTURE =0x0020 , FLAG_GLOBALHEADER =0x0040 , FLAG_NOTIMESTAMPS =0x0080 , FLAG_GENERIC_INDEX =0x0100 , FLAG_TS_DISCONT =0x0200 } |
Static Public Member Functions inherited from com::avpkit::core::IContainerFormat | |
| 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... | |
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. | |
Definition at line 29 of file ContainerFormat.h.
|
virtual |
Get the input setting for the specified flag.
| flag | The flag you want to find the setting for |
Implements com::avpkit::core::IContainerFormat.
Definition at line 136 of file ContainerFormat.cpp.
|
virtual |
Get the input flags associated with this object.
Implements com::avpkit::core::IContainerFormat.
Definition at line 123 of file ContainerFormat.cpp.
|
virtual |
Get the long name for the input format.
Implements com::avpkit::core::IContainerFormat.
Definition at line 82 of file ContainerFormat.cpp.
|
virtual |
Get the short name for the input format.
Implements com::avpkit::core::IContainerFormat.
Definition at line 77 of file ContainerFormat.cpp.
|
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. |
Implements com::avpkit::core::IContainerFormat.
Definition at line 268 of file ContainerFormat.cpp.
|
virtual |
Get the 4-byte tag the container would output for the given codec id.
| id | the codec you are about |
Implements com::avpkit::core::IContainerFormat.
Definition at line 330 of file ContainerFormat.cpp.
|
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. |
Implements com::avpkit::core::IContainerFormat.
Definition at line 296 of file ContainerFormat.cpp.
Referenced by isCodecSupportedForOutput().
|
virtual |
Get the default audio codec this container prefers, if known.
Implements com::avpkit::core::IContainerFormat.
Definition at line 219 of file ContainerFormat.cpp.
|
virtual |
Get the default subtitle codec this container prefers, if known.
Implements com::avpkit::core::IContainerFormat.
Definition at line 235 of file ContainerFormat.cpp.
|
virtual |
Get the default video codec this container prefers, if known.
Implements com::avpkit::core::IContainerFormat.
Definition at line 227 of file ContainerFormat.cpp.
|
virtual |
Get the filename extensions that this output format prefers (most common first).
Implements com::avpkit::core::IContainerFormat.
Definition at line 210 of file ContainerFormat.cpp.
|
virtual |
Get the output setting for the specified flag.
| flag | The flag you want to find the setting for |
Implements com::avpkit::core::IContainerFormat.
Definition at line 174 of file ContainerFormat.cpp.
|
virtual |
Get the output flags associated with this object.
Implements com::avpkit::core::IContainerFormat.
Definition at line 161 of file ContainerFormat.cpp.
|
virtual |
Get the long name for the output format.
Implements com::avpkit::core::IContainerFormat.
Definition at line 92 of file ContainerFormat.cpp.
|
virtual |
Get the mime type for the output format.
Implements com::avpkit::core::IContainerFormat.
Definition at line 97 of file ContainerFormat.cpp.
|
virtual |
Get the short name for the output format.
Implements com::avpkit::core::IContainerFormat.
Definition at line 87 of file ContainerFormat.cpp.
|
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.
Implements com::avpkit::core::IContainerFormat.
Definition at line 243 of file ContainerFormat.cpp.
|
virtual |
Returns true if this container format can output media encoded with the given codec.
| id | the codec you care about. |
Implements com::avpkit::core::IContainerFormat.
Definition at line 324 of file ContainerFormat.cpp.
References getOutputCodecTag().
|
virtual |
Is this an input container format?
Implements com::avpkit::core::IContainerFormat.
Definition at line 204 of file ContainerFormat.cpp.
|
virtual |
Is this an output container format?
Implements com::avpkit::core::IContainerFormat.
Definition at line 198 of file ContainerFormat.cpp.
|
virtual |
Set the input flag.
| flag | The flag to set |
| value | The value to set it to (true or false) |
Implements com::avpkit::core::IContainerFormat.
Definition at line 145 of file ContainerFormat.cpp.
|
virtual |
Set the input flags to use with this object.
All values must be ORed (|) together.
| newFlags | The new set flags for this codec. |
Implements com::avpkit::core::IContainerFormat.
Definition at line 129 of file ContainerFormat.cpp.
|
virtual |
Sets the input format for this container.
| shortName | The short name for this container (using FFMPEG's short name). |
Implements com::avpkit::core::IContainerFormat.
Definition at line 51 of file ContainerFormat.cpp.
Referenced by com::avpkit::core::Container::getContainerFormat(), and com::avpkit::core::IContainerFormat::getInstalledInputFormat().
|
virtual |
Set the output flag.
| flag | The flag to set |
| value | The value to set it to (true or false) |
Implements com::avpkit::core::IContainerFormat.
Definition at line 183 of file ContainerFormat.cpp.
|
virtual |
Set the output flags to use with this object.
All values must be ORed (|) together.
| newFlags | The new set flags for this codec. |
Implements com::avpkit::core::IContainerFormat.
Definition at line 167 of file ContainerFormat.cpp.
|
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. |
Implements com::avpkit::core::IContainerFormat.
Definition at line 62 of file ContainerFormat.cpp.
Referenced by com::avpkit::core::Container::getContainerFormat(), and com::avpkit::core::IContainerFormat::getInstalledOutputFormat().