24 #include "FfmpegIncludes.h"
26 namespace com {
namespace avpkit {
namespace core
41 return Codec::findEncodingCodec(
id, type);
48 return Codec::findEncodingCodecByIntID(
id);
55 return Codec::findEncodingCodecByName(name);
62 return Codec::findDecodingCodec(
id, type);
69 return Codec::findDecodingCodecByIntID(
id);
76 return Codec::findDecodingCodecByName(name);
81 const char* shortName,
87 return Codec::guessEncodingCodec(fmt, shortName, url, mimeType, type);
94 int32_t numInstalledCodecs = 0;
96 while((codec = av_codec_next(codec))!=0)
98 return numInstalledCodecs;
109 for(int32_t i = 0; (codec = av_codec_next(codec))!=0; i++)
112 return Codec::make(codec);
static void init()
Internal Only.
A "key" to an IStreamCoder that tells it how to encode or decode data.
static ICodec * guessEncodingCodec(IContainerFormat *fmt, const char *shortName, const char *url, const char *mimeType, ICodec::Type type)
Ask us to guess an encoding codec based on the inputs passed in.
static ICodec * findEncodingCodec(ICodec::ID id, const IPixelFormat::Type=IPixelFormat::NONE)
Find a codec that can be used for encoding or find a HW codec that can be used for encoding.
static ICodec * findDecodingCodecByName(const char *id)
Find a codec that can be used for decoding.
static ICodec * findEncodingCodecByIntID(int id)
Find a codec that can be used for encoding.
static ICodec * findDecodingCodec(ICodec::ID id, const IPixelFormat::Type=IPixelFormat::NONE)
Find a codec that can be used for decoding or find a HW codec that can be used for decoding.
static ICodec * findDecodingCodecByIntID(int id)
Find a codec that can be used for decoding.
static int32_t getNumInstalledCodecs()
Get the number of installed codecs on this system.
static ICodec * findEncodingCodecByName(const char *id)
Find a codec that can be used for encoding.
ID
These are the codecs this library currently supports.
static ICodec * getInstalledCodec(int32_t index)
Get the ICodec at the given index.
Type
The different types of Codecs that can exist in the system.
WARNING: Do not use logging in this class, and do not set any static file variables to values other t...