[vpu_api_legacy] add contorl fbc horstride 256 odd align

Change-Id: Ife97b9585f9471705557612139c03caea479268b
Signed-off-by: dawnming.huang <dawnming.huang@rock-chips.com>
This commit is contained in:
dawnming.huang 2022-12-24 11:28:45 +08:00 committed by Herman Chen
parent 9b9ba0e645
commit 9793b87ae2
2 changed files with 9 additions and 0 deletions

View file

@ -103,6 +103,7 @@ typedef enum VPU_API_CMD {
VPU_API_DEC_EN_THUMBNAIL,
VPU_API_DEC_EN_HDR_META,
VPU_API_DEC_EN_MVC,
VPU_API_DEC_EN_FBC_HDR_256_ODD,
VPU_API_ENC_VEPU22_START = 0x2000,
VPU_API_ENC_SET_VEPU22_CFG,

View file

@ -29,6 +29,7 @@
#include "mpp_packet_impl.h"
#include "mpp_buffer_impl.h"
#include "mpp_frame.h"
#include "mpp_compat.h"
#define VPU_API_ENC_INPUT_TIMEOUT 100
@ -1581,6 +1582,13 @@ RK_S32 VpuApiLegacy::control(VpuCodecContext *ctx, VPU_API_CMD cmd, void *param)
case VPU_API_SET_OUTPUT_MODE: {
mpicmd = MPP_DEC_SET_OUTPUT_FORMAT;
} break;
case VPU_API_DEC_EN_FBC_HDR_256_ODD : {
MppCompat *compatItem = NULL;
compatItem = mpp_compat_query_by_id(MPP_COMPAT_DEC_FBC_HDR_256_ODD);
if (compatItem) {
mpp_compat_update(compatItem, 1);
}
} break;
case VPU_API_DEC_OUT_FRM_STRUCT_TYPE: {
dec_out_frm_struct_type = *((RK_S32 *)param);
return 0;