|
AVPKit
|
A collection of static functions that refer to the entire package (like version getters). More...
#include <Global.h>


Static Public Member Functions | |
| static int64_t | getVersion () |
| Returns a 64 bit version number for this library. More... | |
| static int32_t | getVersionMajor () |
| Get the major version number of this library. More... | |
| static int32_t | getVersionMinor () |
| Get the minor version number of this library. More... | |
| static int32_t | getVersionRevision () |
| Get the revision number of this library. More... | |
| static const char * | getVersionStr () |
| Get a string representation of the version of this library. More... | |
| static int | getAVFormatVersion () |
| Get the version of the FFMPEG libavformat library we are compiled against. More... | |
| static const char * | getAVFormatVersionStr () |
| Get the version of the FFMPEG libavformat library we are compiled against. More... | |
| static int | getAVCodecVersion () |
| Get the version of the FFMPEG libavcodec library we are compiled against. More... | |
| static const char * | getAVCodecVersionStr () |
| Get the version of the FFMPEG libavcodec library we are compiled against. More... | |
| static void | lock () |
| Performs a global-level lock of the AVPKIT library. More... | |
| static void | unlock () |
| Unlock the global lock. More... | |
| static int | avioInterruptCB (void *) |
| Internal Only. More... | |
| static void | deinit () |
| Internal Only. More... | |
| static void | init () |
| Internal Only. More... | |
| static void | setFFmpegLoggingLevel (int32_t level) |
| Internal Only. More... | |
Static Public Attributes | |
| static const int64_t | NO_PTS =0x8000000000000000LL |
| A value that means no time stamp is set for a given object. More... | |
| static const int64_t | DEFAULT_PTS_PER_SECOND =1000000 |
| The default time units per second that we use for decoded IAudioSamples and IVideoPicture objects. More... | |
Additional Inherited Members | |
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... | |
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. | |
A collection of static functions that refer to the entire package (like version getters).
|
static |
Internal Only.
Do not call. Checks to determine if there is
Definition at line 115 of file Global.cpp.
|
static |
|
static |
Get the version of the FFMPEG libavcodec library we are compiled against.
Definition at line 265 of file Global.cpp.
References init().
|
static |
Get the version of the FFMPEG libavcodec library we are compiled against.
Definition at line 271 of file Global.cpp.
References init().
|
static |
Get the version of the FFMPEG libavformat library we are compiled against.
Definition at line 253 of file Global.cpp.
References init().
|
static |
Get the version of the FFMPEG libavformat library we are compiled against.
Definition at line 259 of file Global.cpp.
References init().
|
static |
Returns a 64 bit version number for this library.
Definition at line 223 of file Global.cpp.
|
static |
Get the major version number of this library.
Definition at line 228 of file Global.cpp.
References init().
|
static |
Get the minor version number of this library.
Definition at line 234 of file Global.cpp.
References init().
|
static |
Get the revision number of this library.
Definition at line 240 of file Global.cpp.
References init().
|
static |
Get a string representation of the version of this library.
Definition at line 247 of file Global.cpp.
References init().
|
static |
Internal Only.
Do not call. Methods using the C++ interface that will not necessarily create other Global object should call this. In general, unless you're extending core directly yourself, ordinary users of this library don't need to call this.
It's main purpose is to ensure any FFmpeg required environment initialization functions are called, and any AVPKit required environmental contexts are set up.
Definition at line 157 of file Global.cpp.
Referenced by com::avpkit::core::IAudioSamples::defaultPtsToSamples(), com::avpkit::core::ICodec::findDecodingCodec(), com::avpkit::core::ICodec::findDecodingCodecByIntID(), com::avpkit::core::ICodec::findDecodingCodecByName(), com::avpkit::core::ICodec::findEncodingCodec(), com::avpkit::core::ICodec::findEncodingCodecByIntID(), com::avpkit::core::ICodec::findEncodingCodecByName(), getAVCodecVersion(), getAVCodecVersionStr(), getAVFormatVersion(), getAVFormatVersionStr(), com::avpkit::core::ICodec::getInstalledCodec(), com::avpkit::core::IContainerFormat::getInstalledInputFormat(), com::avpkit::core::IContainerFormat::getInstalledOutputFormat(), com::avpkit::core::ICodec::getNumInstalledCodecs(), com::avpkit::core::IContainerFormat::getNumInstalledInputFormats(), com::avpkit::core::IContainerFormat::getNumInstalledOutputFormats(), getVersionMajor(), getVersionMinor(), getVersionRevision(), getVersionStr(), com::avpkit::core::ICodec::guessEncodingCodec(), lock(), com::avpkit::core::IContainer::make(), com::avpkit::core::IContainerFormat::make(), com::avpkit::core::IPacket::make(), com::avpkit::core::IRational::make(), com::avpkit::core::IStreamCoder::make(), com::avpkit::core::IMediaDataWrapper::make(), com::avpkit::core::IAudioSamples::make(), com::avpkit::core::IAudioResampler::make(), com::avpkit::core::IVideoResampler::make(), com::avpkit::core::IVideoPicture::make(), com::avpkit::core::IAudioSamples::samplesToDefaultPts(), setFFmpegLoggingLevel(), and unlock().
|
static |
Performs a global-level lock of the AVPKIT library.
While this lock() is held, every other method that calls lock() in the same DLL/SO will block.
Use this sparingly. FFMPEG's libraries have few real global objects, but when they do exist, you must lock.
Lastly, if you lock, make damn sure you call unlock()
Definition at line 207 of file Global.cpp.
References init().
|
static |
Internal Only.
This method can be used to turn up or down FFmpeg's logging level.
| level | An integer value for level. Lower numbers mean less logging. A negative number tells FFmpeg to shut up. |
Definition at line 278 of file Global.cpp.
References init().
|
static |
Unlock the global lock.
Definition at line 215 of file Global.cpp.
References init().
|
static |
The default time units per second that we use for decoded IAudioSamples and IVideoPicture objects.
This means that 1 tick of a time stamp is 1 Microsecond.
Definition at line 57 of file Global.h.
Referenced by com::avpkit::core::IAudioSamples::defaultPtsToSamples(), and com::avpkit::core::IAudioSamples::samplesToDefaultPts().
|
static |
A value that means no time stamp is set for a given object.
if the IMediaData#getTimeStamp() method of an object returns this value it means the time stamp wasn't set.
Definition at line 50 of file Global.h.
Referenced by com::avpkit::core::IAudioSamples::defaultPtsToSamples(), com::avpkit::core::Stream::getCurrentDts(), com::avpkit::core::Stream::getDuration(), com::avpkit::core::AudioSamples::getNextPts(), com::avpkit::core::Stream::getStartTime(), com::avpkit::core::AudioResampler::resample(), com::avpkit::core::IAudioSamples::samplesToDefaultPts(), com::avpkit::core::Stream::stampOutputPacket(), and com::avpkit::core::MediaDataWrapper::wrap().