From 2e55cae94492f13f3718808ce77bd9a0a3fb48a1 Mon Sep 17 00:00:00 2001 From: Li_Xin6 Date: Thu, 19 Dec 2024 19:00:31 +0800 Subject: [PATCH] [CP] Add SetDecodeFormat interface Xe3 Add SetDecodeFormat interface for Xe3 to support AVC FS. --- .../pipeline/decode_avc_pipeline_adapter_xe3_lpm_base.cpp | 7 +++++++ .../pipeline/decode_avc_pipeline_adapter_xe3_lpm_base.h | 2 ++ 2 files changed, 9 insertions(+) diff --git a/media_softlet/agnostic/Xe3_M_plus/Xe3_LPM_base/codec/hal/dec/avc/pipeline/decode_avc_pipeline_adapter_xe3_lpm_base.cpp b/media_softlet/agnostic/Xe3_M_plus/Xe3_LPM_base/codec/hal/dec/avc/pipeline/decode_avc_pipeline_adapter_xe3_lpm_base.cpp index 0a4d4a5968..878fab3f44 100644 --- a/media_softlet/agnostic/Xe3_M_plus/Xe3_LPM_base/codec/hal/dec/avc/pipeline/decode_avc_pipeline_adapter_xe3_lpm_base.cpp +++ b/media_softlet/agnostic/Xe3_M_plus/Xe3_LPM_base/codec/hal/dec/avc/pipeline/decode_avc_pipeline_adapter_xe3_lpm_base.cpp @@ -141,4 +141,11 @@ GPU_CONTEXT_HANDLE DecodeAvcPipelineAdapterXe3_Lpm_Base::GetDecodeContextHandle( DECODE_FUNC_CALL(); return m_decoder->GetDecodeContextHandle(); +} + +MOS_STATUS DecodeAvcPipelineAdapterXe3_Lpm_Base::SetDecodeFormat(bool isShortFormat) +{ + DECODE_FUNC_CALL(); + + return m_decoder->SetDecodeFormat(isShortFormat); } \ No newline at end of file diff --git a/media_softlet/agnostic/Xe3_M_plus/Xe3_LPM_base/codec/hal/dec/avc/pipeline/decode_avc_pipeline_adapter_xe3_lpm_base.h b/media_softlet/agnostic/Xe3_M_plus/Xe3_LPM_base/codec/hal/dec/avc/pipeline/decode_avc_pipeline_adapter_xe3_lpm_base.h index 740edc0d4a..a788f683f1 100644 --- a/media_softlet/agnostic/Xe3_M_plus/Xe3_LPM_base/codec/hal/dec/avc/pipeline/decode_avc_pipeline_adapter_xe3_lpm_base.h +++ b/media_softlet/agnostic/Xe3_M_plus/Xe3_LPM_base/codec/hal/dec/avc/pipeline/decode_avc_pipeline_adapter_xe3_lpm_base.h @@ -74,6 +74,8 @@ class DecodeAvcPipelineAdapterXe3_Lpm_Base : public DecodePipelineAdapter virtual MOS_GPU_CONTEXT GetDecodeContext() override; virtual GPU_CONTEXT_HANDLE GetDecodeContextHandle() override; + virtual MOS_STATUS SetDecodeFormat(bool isShortFormat) override; + protected: std::shared_ptr m_decoder;