mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-05 17:16:50 +08:00
feat[mpp_buf_slots]: Add coding attribute to buf slots
Signed-off-by: Hongjin Li <vic.hong@rock-chips.com> Change-Id: I3c197e5e7ef533141e27f5728d1abcfa0fe61472
This commit is contained in:
@@ -241,6 +241,7 @@ typedef enum SlotsPropType_e {
|
||||
SLOTS_SIZE,
|
||||
SLOTS_FRAME_INFO,
|
||||
SLOTS_HAL_FBC_ADJ,
|
||||
SLOTS_CODING_TYPE,
|
||||
SLOTS_PROP_BUTT,
|
||||
} SlotsPropType;
|
||||
|
||||
|
@@ -205,6 +205,8 @@ struct MppBufSlotsImpl_t {
|
||||
RK_U32 decode_count;
|
||||
RK_U32 display_count;
|
||||
|
||||
MppCodingType coding_type;
|
||||
|
||||
// if slot changed, all will be hold until all slot is unused
|
||||
RK_U32 info_changed;
|
||||
RK_S32 info_change_slot_idx;
|
||||
@@ -1285,6 +1287,9 @@ MPP_RET mpp_slots_set_prop(MppBufSlots slots, SlotsPropType type, void *val)
|
||||
case SLOTS_HAL_FBC_ADJ : {
|
||||
impl->hal_fbc_adj_cfg = *((SlotHalFbcAdjCfg *)val);
|
||||
} break;
|
||||
case SLOTS_CODING_TYPE : {
|
||||
impl->coding_type = *((MppCodingType *)val);
|
||||
} break;
|
||||
default : {
|
||||
} break;
|
||||
}
|
||||
|
@@ -705,6 +705,8 @@ MPP_RET mpp_dec_init(MppDec *dec, MppDecInitCfg *cfg)
|
||||
}
|
||||
|
||||
mpp_buf_slot_setup(packet_slots, hal_task_count);
|
||||
mpp_slots_set_prop(packet_slots, SLOTS_CODING_TYPE, &coding);
|
||||
mpp_slots_set_prop(frame_slots, SLOTS_CODING_TYPE, &coding);
|
||||
|
||||
p->hw_info = hal_cfg.hw_info;
|
||||
p->dev = hal_cfg.dev;
|
||||
|
Reference in New Issue
Block a user