目录
1、引言
今天我们来介绍C2StreamParam这个的东西。我们在给Codec初始化的时候,都会使用到这个C2StreamParam东西定义相关的参数。
/frameworks/av/media/codec2/core/include/C2Config.h
里面定义关于Codec2的参数。如:
Profile:
struct C2ProfileLevelStruct {
C2Config::profile_t profile; ///< coding profile
C2Config::level_t level; ///< coding level
C2ProfileLevelStruct(
C2Config::profile_t profile_ = C2Config::PROFILE_UNUSED,
C2Config::level_t level_ = C2Config::LEVEL_UNUSED)
: profile(profile_), level(level_) { }
DEFINE_AND_DESCRIBE_C2STRUCT(ProfileLevel)
C2FIELD(profile, "profile")
C2FIELD(level, "level")
};
// TODO: may need to make this explicit (have .set member)
typedef C2StreamParam<C2Info, C2ProfileLevelStruct, kParamIndexProfileLevel>
C2StreamProfileLevelInfo;
constexpr char C2_PARAMKEY_PROFILE_LEVEL[] = "coded.pl";
Input Out Put Max Size:
typedef C2