/aosp12/frameworks/av/media/codec2/hidl/1.0/utils/ |
H A D | InputSurface.cpp | 73 mIntf(intf), in ConfigurableIntf() 84 return mIntf->query({}, indices, mayBlock, params); in query() 92 c2_status_t err = mIntf->config(params, mayBlock, failures); in config() 93 if (mIntf->eos()) { in config() 107 return mIntf->querySupportedParams(params); in querySupportedParams() 113 return mIntf->querySupportedValues(fields, mayBlock); in querySupportedValues() 117 const std::shared_ptr<InputSurface::Interface> mIntf; member in android::hardware::media::c2::V1_0::utils::InputSurface::ConfigurableIntf 163 mIntf{std::make_shared<Interface>(reflector)}, 166 mIntf, source))} {
|
H A D | ComponentInterface.cpp | 50 mIntf{intf} { 58 return mIntf->config_vb(params, mayBlock, failures); in config() 66 return mIntf->query_vb({}, indices, mayBlock, params); in query() 72 return mIntf->querySupportedParams_nb(params); in querySupportedParams() 78 return mIntf->querySupportedValues_vb(fields, mayBlock); in querySupportedValues() 82 std::shared_ptr<C2ComponentInterface> mIntf; member
|
H A D | Configurable.cpp | 38 : mIntf{std::move(intf)} { in CachedConfigurable() 44 c2_status_t init = mIntf->querySupportedParams(&mSupportedParams); in init() 51 return mIntf->getId(); in getId() 55 _hidl_cb(mIntf->getName()); in getName() 68 c2_status_t c2res = mIntf->query( in query() 97 c2_status_t c2res = mIntf->config( in config() 171 c2_status_t c2res = mIntf->querySupportedValues( in querySupportedValues()
|
/aosp12/frameworks/av/media/codec2/components/vpx/ |
H A D | C2SoftVpxEnc.cpp | 53 mIntf(intfImpl), in C2SoftVpxEnc() 120 IntfImpl::Lock lock = mIntf->lock(); in initEncoder() 121 mSize = mIntf->getSize_l(); in initEncoder() 122 mBitrate = mIntf->getBitrate_l(); in initEncoder() 123 mBitrateMode = mIntf->getBitrateMode_l(); in initEncoder() 124 mFrameRate = mIntf->getFrameRate_l(); in initEncoder() 125 mIntraRefresh = mIntf->getIntraRefresh_l(); in initEncoder() 126 mRequestSync = mIntf->getRequestSync_l(); in initEncoder() 127 mLayering = mIntf->getTemporalLayers_l(); in initEncoder() 265 if (mIntf->getSyncFramePeriod() >= 0) { in initEncoder() [all …]
|
/aosp12/frameworks/av/media/codec2/components/aac/ |
H A D | C2SoftAacDec.cpp | 266 mIntf(intfImpl), in C2SoftAacDec() 358 int32_t boostFactor = mIntf->getDrcBoostFactor(); in initDecoder() 363 int32_t compressMode = mIntf->getDrcCompressMode(); in initDecoder() 373 int32_t effectType = mIntf->getDrcEffectType(); in initDecoder() 378 int32_t albumMode = mIntf->getDrcAlbumMode(); in initDecoder() 619 if (mIntf->isAdts()) { in process() 700 int32_t boostFactor = mIntf->getDrcBoostFactor(); in process() 715 int32_t effectType = mIntf->getDrcEffectType(); in process() 720 int32_t albumMode = mIntf->getDrcAlbumMode(); in process() 833 c2_status_t err = mIntf->config( in process() [all …]
|
H A D | C2SoftAacEnc.cpp | 153 mIntf(intfImpl), in C2SoftAacEnc() 243 uint32_t sbrMode = mIntf->getSBRMode(); in setAudioParams() 248 mIntf->getSampleRate(), mIntf->getChannelCount(), mIntf->getBitrate(), in setAudioParams() 251 uint32_t aacProfile = mIntf->getProfile(); in setAudioParams() 257 if (AACENC_OK != aacEncoder_SetParam(mAACEncoder, AACENC_SAMPLERATE, mIntf->getSampleRate())) { in setAudioParams() 261 if (AACENC_OK != aacEncoder_SetParam(mAACEncoder, AACENC_BITRATE, mIntf->getBitrate())) { in setAudioParams() 266 getChannelMode(mIntf->getChannelCount()))) { in setAudioParams() 334 uint32_t sampleRate = mIntf->getSampleRate(); in process() 335 uint32_t channelCount = mIntf->getChannelCount(); in process() 348 uint32_t bitrate = mIntf->getBitrate(); in process()
|
/aosp12/frameworks/av/media/codec2/components/flac/ |
H A D | C2SoftFlacEnc.cpp | 121 mIntf(intfImpl), in C2SoftFlacEnc() 248 const uint32_t sampleRate = mIntf->getSampleRate(); in process() 249 const uint32_t channelCount = mIntf->getChannelCount(); in process() 250 const bool inputFloat = mIntf->getPcmEncodingInfo() == C2Config::PCM_FLOAT; in process() 368 …ALOGV("%s numChannel=%d, sampleRate=%d", __func__, mIntf->getChannelCount(), mIntf->getSampleRate(… in configureEncoder() 375 const bool inputFloat = mIntf->getPcmEncodingInfo() == C2Config::PCM_FLOAT; in configureEncoder() 378 ok = ok && FLAC__stream_encoder_set_channels(mFlacStreamEncoder, mIntf->getChannelCount()); in configureEncoder() 379 ok = ok && FLAC__stream_encoder_set_sample_rate(mFlacStreamEncoder, mIntf->getSampleRate()); in configureEncoder() 382 mIntf->getComplexity()); in configureEncoder()
|
H A D | C2SoftFlacDec.cpp | 111 mIntf(intfImpl), in C2SoftFlacDec() 257 mIntf->config({&sampleRateInfo, &channelCountInfo}, in process() 278 const bool outputFloat = mIntf->getPcmEncodingInfo() == C2Config::PCM_FLOAT; in process()
|
H A D | C2SoftFlacDec.h | 51 std::shared_ptr<IntfImpl> mIntf; member
|
/aosp12/frameworks/av/media/codec2/hidl/plugin/ |
H A D | FilterWrapper.cpp | 50 : mIntf(intf), mFilterWrapper(filterWrapper) { in WrappedDecoderInterface() 93 transferParams_l(mIntf, mFilters[0].intf, C2_MAY_BLOCK); in takeFilters() 133 C2String getName() const override { return mIntf->getName(); } in getName() 135 c2_node_id_t getId() const override { return mIntf->getId(); } in getId() 204 c2_status_t err = mIntf->query_vb( in query_vb() 245 transferParams_l(mIntf, mFilters[0].intf, mayBlock); in config_vb() 284 c2_status_t result = mIntf->querySupportedParams_nb(params); in querySupportedParams_nb() 354 std::shared_ptr<C2ComponentInterface> mIntf; member in android::__anona9103e750110::WrappedDecoderInterface 466 mIntf = std::make_shared<WrappedDecoderInterface>( in WrappedDecoder() 545 mIntf->takeFilters(std::move(filtersCopy)); in start() [all …]
|
/aosp12/frameworks/av/media/codec2/components/hevc/ |
H A D | C2SoftHevcEnc.cpp | 506 mIntf(intfImpl), in C2SoftHevcEnc() 712 IntfImpl::Lock lock = mIntf->lock(); in initEncoder() 713 mSize = mIntf->getSize_l(); in initEncoder() 715 mBitrate = mIntf->getBitrate_l(); in initEncoder() 716 mFrameRate = mIntf->getFrameRate_l(); in initEncoder() 718 mHevcEncLevel = mIntf->getLevel_l(); in initEncoder() 721 mComplexity = mIntf->getComplexity_l(); in initEncoder() 722 mQuality = mIntf->getQuality_l(); in initEncoder() 723 mGop = mIntf->getGop_l(); in initEncoder() 1056 IntfImpl::Lock lock = mIntf->lock(); in process() [all …]
|
/aosp12/frameworks/av/media/codec2/tests/ |
H A D | C2ComponentInterface_test.cpp | 53 mIntf = intf; in setComponent() 57 mIntf = nullptr; in resetResults() 174 std::shared_ptr<C2ComponentInterface> mIntf; member in android::C2CompIntfTest 201 return mIntf->query_vb(stackParams, {}, C2_DONT_BLOCK, nullptr); in queryOnStack() 211 return mIntf->query_vb({}, {index}, C2_DONT_BLOCK, heapParams); in queryOnHeap() 266 return mIntf->config_vb(params, C2_DONT_BLOCK, failures); in config() 285 ASSERT_EQ(C2_BAD_VALUE, mIntf->config_vb(params, C2_DONT_BLOCK, &failures)); in configReadOnlyParam() 302 c2_status_t stConfig = mIntf->config_vb(params, C2_DONT_BLOCK, &failures); in configWritableParamValidValue() 321 ASSERT_EQ(C2_BAD_VALUE, mIntf->config_vb(params, C2_DONT_BLOCK, &failures)); in configWritableParamInvalidValue() 589 mIntf->querySupportedValues_vb(validValueInfos, C2_DONT_BLOCK)); \ [all …]
|
/aosp12/frameworks/av/media/codec2/hidl/plugin/samples/ |
H A D | SampleFilterPlugin.cpp | 369 : mIntf(std::make_shared<Interface>(id)) { in SampleToneMappingFilter() 575 return mIntf; in intf() 635 mIntf->config_vb(configUpdate, C2_MAY_BLOCK, &failures); in processLoop() 638 mIntf->getHdrStaticMetadata(); in processLoop() 639 uint32_t dataspace = mIntf->getDataSpace(); in processLoop() 783 const std::shared_ptr<Interface> mIntf; member in android::SampleToneMappingFilter 819 mIntf(mReflector), in SampleC2ComponentStore() 859 return mIntf.config(params, C2_MAY_BLOCK, failures); in config_sm() 866 return mIntf.querySupportedParams(params); in querySupportedParams_nb() 870 return mIntf.querySupportedValues(fields, C2_MAY_BLOCK); in querySupportedValues_sm() [all …]
|
/aosp12/frameworks/av/media/codec2/components/mpeg4_h263/ |
H A D | C2SoftMpeg4Dec.cpp | 230 mIntf(intfImpl), in C2SoftMpeg4Dec() 376 mOutputBufferSize = align(mIntf->getMaxWidth(), 16) * align(mIntf->getMaxHeight(), 16) * 3 / 2; in ensureDecoderState() 435 … mDecHandle, vol_data, &vol_size, 1, mIntf->getMaxWidth(), mIntf->getMaxHeight(), H263_MODE)) { in handleResChange() 541 mIntf->getMaxWidth(), mIntf->getMaxHeight(), mode)) { in process() 561 c2_status_t err = mIntf->config({&size}, C2_MAY_BLOCK, &failures); in process() 633 c2_status_t err = mIntf->config({&size}, C2_MAY_BLOCK, &failures); in process()
|
H A D | C2SoftMpeg4Enc.cpp | 226 mIntf(intfImpl), in C2SoftMpeg4Enc() 349 mEncParams->intraPeriod = mIntf->getSyncFramePeriod(); in initEncParams() 366 IntfImpl::Lock lock = mIntf->lock(); in initEncoder() 367 mSize = mIntf->getSize_l(); in initEncoder() 368 mBitrate = mIntf->getBitrate_l(); in initEncoder() 369 mFrameRate = mIntf->getFrameRate_l(); in initEncoder() 453 IntfImpl::Lock lock = mIntf->lock(); in process() 454 std::shared_ptr<C2StreamBitrateInfo::output> bitrate = mIntf->getBitrate_l(); in process()
|
/aosp12/frameworks/av/media/codec2/components/avc/ |
H A D | C2SoftAvcEnc.cpp | 584 mIntf(intfImpl), in C2SoftAvcEnc() 827 IntfImpl::Lock lock = mIntf->lock(); in setQp() 1013 IntfImpl::Lock lock = mIntf->lock(); in setProfileParams() 1151 IntfImpl::Lock lock = mIntf->lock(); in initEncoder() 1152 mSize = mIntf->getSize_l(); in initEncoder() 1153 mBitrate = mIntf->getBitrate_l(); in initEncoder() 1154 mFrameRate = mIntf->getFrameRate_l(); in initEncoder() 1155 mIntraRefresh = mIntf->getIntraRefresh_l(); in initEncoder() 1156 mAVCEncLevel = mIntf->getLevel_l(); in initEncoder() 1159 gop = mIntf->getGop_l(); in initEncoder() [all …]
|
/aosp12/frameworks/av/media/codec2/components/opus/ |
H A D | C2SoftOpusEnc.cpp | 132 mIntf(intfImpl), in C2SoftOpusEnc() 150 mSampleRate = mIntf->getSampleRate(); in configureEncoder() 151 mChannelCount = mIntf->getChannelCount(); in configureEncoder() 152 uint32_t bitrate = mIntf->getBitrate(); in configureEncoder() 153 uint32_t bitrateMode = mIntf->getBitrateMode(); in configureEncoder() 154 int complexity = mIntf->getComplexity(); in configureEncoder()
|
/aosp12/frameworks/av/media/codec2/components/amr_nb_wb/ |
H A D | C2SoftAmrNbEnc.cpp | 102 mIntf(intfImpl), in C2SoftAmrNbEnc() 117 switch(mIntf->getBitrate()) { in onInit() 229 mProcessedSamples * 1000000ll / mIntf->getSampleRate(); in process()
|
H A D | C2SoftAmrWbEnc.cpp | 103 mIntf(intfImpl), in C2SoftAmrWbEnc() 115 switch(mIntf->getBitrate()) { in onInit() 311 mProcessedSamples * 1000000ll / mIntf->getSampleRate(); in process()
|
H A D | C2SoftAmrDec.h | 52 std::shared_ptr<IntfImpl> mIntf; member
|
/aosp12/frameworks/av/media/codec2/components/g711/ |
H A D | C2SoftG711Dec.h | 45 std::shared_ptr<IntfImpl> mIntf;
|
/aosp12/frameworks/av/media/codec2/components/raw/ |
H A D | C2SoftRawDec.h | 45 std::shared_ptr<IntfImpl> mIntf;
|
/aosp12/frameworks/av/media/codec2/components/xaac/ |
H A D | C2SoftXaacDec.cpp | 238 mIntf(intfImpl), in C2SoftXaacDec() 458 if (mIntf->isAdts()) { in process() 534 c2_status_t err = mIntf->config( in process() 845 int32_t targetRefLevel = mIntf->getDrcTargetRefLevel(); in initXAACDrc() 861 int32_t attenuationFactor = mIntf->getDrcAttenuationFactor(); in initXAACDrc() 871 int32_t boostFactor = mIntf->getDrcBoostFactor(); in initXAACDrc() 881 int32_t compressMode = mIntf->getDrcCompressMode(); in initXAACDrc() 892 int32_t effectType = mIntf->getDrcEffectType(); in initXAACDrc()
|
/aosp12/frameworks/av/media/codec2/components/gsm/ |
H A D | C2SoftGsmDec.h | 52 std::shared_ptr<IntfImpl> mIntf;
|
/aosp12/frameworks/av/media/codec2/components/vorbis/ |
H A D | C2SoftVorbisDec.h | 53 std::shared_ptr<IntfImpl> mIntf; member
|