Loading media/codec2/core/include/C2Config.h +12 −0 Original line number Diff line number Diff line Loading @@ -243,6 +243,9 @@ enum C2ParamIndexKind : C2Param::type_index_t { kParamIndexTimestampGapAdjustment, // input-surface, struct kParamIndexSurfaceAllocator, // u32 // low latency mode for decoders kParamIndexLowLatencyMode, // bool }; } Loading Loading @@ -804,6 +807,15 @@ typedef C2GlobalParam<C2Tuning, C2Uint32Value, kParamIndexDelay> C2PipelineDelay typedef C2PipelineDelayTuning C2ActualPipelineDelayTuning; // deprecated constexpr char C2_PARAMKEY_PIPELINE_DELAY[] = "algo.delay"; /** * Enable/disable low latency decoding mode. * If true, low latency decoding mode is enabled, and the decoder doesn't hold input and output * data more than required by the codec standards. */ typedef C2GlobalParam<C2Tuning, C2EasyBoolValue, kParamIndexLowLatencyMode> C2GlobalLowLatencyModeTuning; constexpr char C2_PARAMKEY_LOW_LATENCY_MODE[] = "algo.low-latency"; /** * Reference characteristics. * Loading media/codec2/sfplugin/CCodecConfig.cpp +8 −0 Original line number Diff line number Diff line Loading @@ -823,6 +823,14 @@ void CCodecConfig::initializeStandardParams() { add(ConfigMapper(C2_PARAMKEY_INPUT_TIME_STRETCH, C2_PARAMKEY_INPUT_TIME_STRETCH, "value")); add(ConfigMapper(KEY_LOW_LATENCY, C2_PARAMKEY_LOW_LATENCY_MODE, "value") .limitTo(D::DECODER & (D::CONFIG | D::PARAM)) .withMapper([](C2Value v) -> C2Value { int32_t value = 0; (void)v.get(&value); return value == 0 ? C2_FALSE : C2_TRUE; })); /* still to do constexpr char KEY_PUSH_BLANK_BUFFERS_ON_STOP[] = "push-blank-buffers-on-shutdown"; Loading media/libstagefright/include/media/stagefright/MediaCodecConstants.h +1 −0 Original line number Diff line number Diff line Loading @@ -776,6 +776,7 @@ constexpr char KEY_IS_TIMED_TEXT[] = "is-timed-text"; constexpr char KEY_LANGUAGE[] = "language"; constexpr char KEY_LATENCY[] = "latency"; constexpr char KEY_LEVEL[] = "level"; constexpr char KEY_LOW_LATENCY[] = "low-latency"; constexpr char KEY_MAX_B_FRAMES[] = "max-bframes"; constexpr char KEY_MAX_BIT_RATE[] = "max-bitrate"; constexpr char KEY_MAX_FPS_TO_ENCODER[] = "max-fps-to-encoder"; Loading Loading
media/codec2/core/include/C2Config.h +12 −0 Original line number Diff line number Diff line Loading @@ -243,6 +243,9 @@ enum C2ParamIndexKind : C2Param::type_index_t { kParamIndexTimestampGapAdjustment, // input-surface, struct kParamIndexSurfaceAllocator, // u32 // low latency mode for decoders kParamIndexLowLatencyMode, // bool }; } Loading Loading @@ -804,6 +807,15 @@ typedef C2GlobalParam<C2Tuning, C2Uint32Value, kParamIndexDelay> C2PipelineDelay typedef C2PipelineDelayTuning C2ActualPipelineDelayTuning; // deprecated constexpr char C2_PARAMKEY_PIPELINE_DELAY[] = "algo.delay"; /** * Enable/disable low latency decoding mode. * If true, low latency decoding mode is enabled, and the decoder doesn't hold input and output * data more than required by the codec standards. */ typedef C2GlobalParam<C2Tuning, C2EasyBoolValue, kParamIndexLowLatencyMode> C2GlobalLowLatencyModeTuning; constexpr char C2_PARAMKEY_LOW_LATENCY_MODE[] = "algo.low-latency"; /** * Reference characteristics. * Loading
media/codec2/sfplugin/CCodecConfig.cpp +8 −0 Original line number Diff line number Diff line Loading @@ -823,6 +823,14 @@ void CCodecConfig::initializeStandardParams() { add(ConfigMapper(C2_PARAMKEY_INPUT_TIME_STRETCH, C2_PARAMKEY_INPUT_TIME_STRETCH, "value")); add(ConfigMapper(KEY_LOW_LATENCY, C2_PARAMKEY_LOW_LATENCY_MODE, "value") .limitTo(D::DECODER & (D::CONFIG | D::PARAM)) .withMapper([](C2Value v) -> C2Value { int32_t value = 0; (void)v.get(&value); return value == 0 ? C2_FALSE : C2_TRUE; })); /* still to do constexpr char KEY_PUSH_BLANK_BUFFERS_ON_STOP[] = "push-blank-buffers-on-shutdown"; Loading
media/libstagefright/include/media/stagefright/MediaCodecConstants.h +1 −0 Original line number Diff line number Diff line Loading @@ -776,6 +776,7 @@ constexpr char KEY_IS_TIMED_TEXT[] = "is-timed-text"; constexpr char KEY_LANGUAGE[] = "language"; constexpr char KEY_LATENCY[] = "latency"; constexpr char KEY_LEVEL[] = "level"; constexpr char KEY_LOW_LATENCY[] = "low-latency"; constexpr char KEY_MAX_B_FRAMES[] = "max-bframes"; constexpr char KEY_MAX_BIT_RATE[] = "max-bitrate"; constexpr char KEY_MAX_FPS_TO_ENCODER[] = "max-fps-to-encoder"; Loading