From bb247c6d9b2218352eb5952a585c739790c83ee1 Mon Sep 17 00:00:00 2001 From: jimmy Date: Tue, 7 Nov 2023 11:14:01 +0800 Subject: [PATCH] add mpp format for MPP to decode Signed-off-by: jimmy --- mpp/encode/mpp_frame.h | 2 +- mpp/encode/utils.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mpp/encode/mpp_frame.h b/mpp/encode/mpp_frame.h index af3fb11..5638cd7 100644 --- a/mpp/encode/mpp_frame.h +++ b/mpp/encode/mpp_frame.h @@ -227,7 +227,7 @@ typedef enum { MPP_FMT_BGRA8888 = (MPP_FRAME_FMT_RGB + 12), /* 32-bit RGB */ MPP_FMT_RGBA8888 = (MPP_FRAME_FMT_RGB + 13), /* 32-bit RGB */ MPP_FMT_RGB_BUTT, - + MPP_FMT_FBC = MPP_FMT_YUV420SP | MPP_FRAME_FBC_AFBC_V1, MPP_FMT_BUTT, } MppFrameFormat; diff --git a/mpp/encode/utils.cpp b/mpp/encode/utils.cpp index a195f23..c1626a8 100644 --- a/mpp/encode/utils.cpp +++ b/mpp/encode/utils.cpp @@ -938,7 +938,7 @@ Ext2FrmFmt map_ext_to_frm_fmt[] = { { "rgb888", MPP_FMT_RGB888, }, { "rgba8888", MPP_FMT_RGBA8888, }, - { "fbc", MPP_FMT_YUV420SP | MPP_FRAME_FBC_AFBC_V1, }, + { "fbc", MPP_FMT_BUTT, }, }; MPP_RET name_to_frame_format(const char *name, MppFrameFormat *fmt)