Loading media/codec2/core/include/C2Config.h +5 −4 Original line number Diff line number Diff line Loading @@ -248,7 +248,7 @@ enum C2ParamIndexKind : C2Param::type_index_t { kParamIndexSurfaceAllocator, // u32 // low latency mode for decoders // low latency mode kParamIndexLowLatencyMode, // bool }; Loading Loading @@ -812,9 +812,10 @@ 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. * Enable/disable low latency mode. * If true, low latency is preferred over low power. Disable power optimizations that * may result in increased latency. For decoders, this means that the decoder does not * hold input and output data more than required by the codec standards. */ typedef C2GlobalParam<C2Tuning, C2EasyBoolValue, kParamIndexLowLatencyMode> C2GlobalLowLatencyModeTuning; Loading media/codec2/hidl/services/Android.bp +5 −0 Original line number Diff line number Diff line Loading @@ -47,6 +47,11 @@ cc_binary { "libbinder", ], required: ["android.hardware.media.c2@1.1-default-seccomp_policy"], // The content in manifest_media_c2_V1_1_default.xml can be included // directly in the main device manifest.xml file or via vintf_fragments. // (Remove the line below if the entry is already in the main manifest.) vintf_fragments: ["manifest_media_c2_V1_1_default.xml"], } // seccomp policy file. Loading media/codec2/hidl/services/manifest_media_c2_V1_0_default.xml 0 → 100644 +11 −0 Original line number Diff line number Diff line <manifest version="1.0" type="device"> <hal> <name>android.hardware.media.c2</name> <transport>hwbinder</transport> <version>1.0</version> <interface> <name>IComponentStore</name> <instance>default</instance> </interface> </hal> </manifest> media/codec2/hidl/services/manifest_media_c2_V1_1_default.xml 0 → 100644 +11 −0 Original line number Diff line number Diff line <manifest version="1.0" type="device"> <hal> <name>android.hardware.media.c2</name> <transport>hwbinder</transport> <version>1.1</version> <interface> <name>IComponentStore</name> <instance>default</instance> </interface> </hal> </manifest> services/mediaextractor/seccomp_policy/mediaextractor-arm.policy +8 −0 Original line number Diff line number Diff line Loading @@ -48,6 +48,14 @@ timer_delete: 1 # for dynamically loading extractors pread64: 1 # mremap: Ensure |flags| are (MREMAP_MAYMOVE | MREMAP_FIXED) TODO: Once minijail # parser support for '<' is in this needs to be modified to also prevent # |old_address| and |new_address| from touching the exception vector page, which # on ARM is statically loaded at 0xffff 0000. See # http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0211h/Babfeega.html # for more details. mremap: arg3 == 3 || arg3 == MREMAP_MAYMOVE # for FileSource readlinkat: 1 _llseek: 1 Loading Loading
media/codec2/core/include/C2Config.h +5 −4 Original line number Diff line number Diff line Loading @@ -248,7 +248,7 @@ enum C2ParamIndexKind : C2Param::type_index_t { kParamIndexSurfaceAllocator, // u32 // low latency mode for decoders // low latency mode kParamIndexLowLatencyMode, // bool }; Loading Loading @@ -812,9 +812,10 @@ 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. * Enable/disable low latency mode. * If true, low latency is preferred over low power. Disable power optimizations that * may result in increased latency. For decoders, this means that the decoder does not * hold input and output data more than required by the codec standards. */ typedef C2GlobalParam<C2Tuning, C2EasyBoolValue, kParamIndexLowLatencyMode> C2GlobalLowLatencyModeTuning; Loading
media/codec2/hidl/services/Android.bp +5 −0 Original line number Diff line number Diff line Loading @@ -47,6 +47,11 @@ cc_binary { "libbinder", ], required: ["android.hardware.media.c2@1.1-default-seccomp_policy"], // The content in manifest_media_c2_V1_1_default.xml can be included // directly in the main device manifest.xml file or via vintf_fragments. // (Remove the line below if the entry is already in the main manifest.) vintf_fragments: ["manifest_media_c2_V1_1_default.xml"], } // seccomp policy file. Loading
media/codec2/hidl/services/manifest_media_c2_V1_0_default.xml 0 → 100644 +11 −0 Original line number Diff line number Diff line <manifest version="1.0" type="device"> <hal> <name>android.hardware.media.c2</name> <transport>hwbinder</transport> <version>1.0</version> <interface> <name>IComponentStore</name> <instance>default</instance> </interface> </hal> </manifest>
media/codec2/hidl/services/manifest_media_c2_V1_1_default.xml 0 → 100644 +11 −0 Original line number Diff line number Diff line <manifest version="1.0" type="device"> <hal> <name>android.hardware.media.c2</name> <transport>hwbinder</transport> <version>1.1</version> <interface> <name>IComponentStore</name> <instance>default</instance> </interface> </hal> </manifest>
services/mediaextractor/seccomp_policy/mediaextractor-arm.policy +8 −0 Original line number Diff line number Diff line Loading @@ -48,6 +48,14 @@ timer_delete: 1 # for dynamically loading extractors pread64: 1 # mremap: Ensure |flags| are (MREMAP_MAYMOVE | MREMAP_FIXED) TODO: Once minijail # parser support for '<' is in this needs to be modified to also prevent # |old_address| and |new_address| from touching the exception vector page, which # on ARM is statically loaded at 0xffff 0000. See # http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0211h/Babfeega.html # for more details. mremap: arg3 == 3 || arg3 == MREMAP_MAYMOVE # for FileSource readlinkat: 1 _llseek: 1 Loading