mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-11-02 05:24:15 +08:00
[jpegd]: adjust register configuration
1. only if height is 8-pixel aligned but not 16-pixel aligned, bit 20 of reg148 is enabled. 2. default output buffer size is set to 2*width*height. Change-Id: Ib23e1530c4c6a6688c3f8e632ba3f0b8e2b3c352 Signed-off-by: timkingh.huang <timkingh.huang@rock-chips.com>
This commit is contained in:
@@ -2397,8 +2397,8 @@ MPP_RET jpegd_allocate_frame(JpegParserContext *ctx)
|
||||
mpp_frame_set_fmt(pCtx->output_frame, fmt);
|
||||
mpp_frame_set_width(pCtx->output_frame, pCtx->pSyntax->frame.X);
|
||||
mpp_frame_set_height(pCtx->output_frame, pCtx->pSyntax->frame.Y);
|
||||
mpp_frame_set_hor_stride(pCtx->output_frame, pCtx->pSyntax->frame.X);
|
||||
mpp_frame_set_ver_stride(pCtx->output_frame, pCtx->pSyntax->frame.Y);
|
||||
mpp_frame_set_hor_stride(pCtx->output_frame, pCtx->pSyntax->frame.hwX);
|
||||
mpp_frame_set_ver_stride(pCtx->output_frame, pCtx->pSyntax->frame.hwY);
|
||||
mpp_frame_set_pts(pCtx->output_frame, pCtx->pts);
|
||||
|
||||
if (pCtx->eos)
|
||||
@@ -2407,9 +2407,9 @@ MPP_RET jpegd_allocate_frame(JpegParserContext *ctx)
|
||||
mpp_buf_slot_get_unused(pCtx->frame_slots, &pCtx->frame_slot_index);
|
||||
JPEGD_INFO_LOG("frame_slot_index:%d, X:%d, Y:%d", pCtx->frame_slot_index, pCtx->pSyntax->frame.X, pCtx->pSyntax->frame.Y);
|
||||
|
||||
value = 3;
|
||||
mpp_slots_set_prop(pCtx->frame_slots, SLOTS_NUMERATOR, &value);
|
||||
value = 2;
|
||||
mpp_slots_set_prop(pCtx->frame_slots, SLOTS_NUMERATOR, &value);
|
||||
value = 1;
|
||||
mpp_slots_set_prop(pCtx->frame_slots, SLOTS_DENOMINATOR, &value);
|
||||
mpp_buf_slot_set_prop(pCtx->frame_slots, pCtx->frame_slot_index, SLOT_FRAME, pCtx->output_frame);
|
||||
mpp_buf_slot_set_flag(pCtx->frame_slots, pCtx->frame_slot_index, SLOT_CODEC_USE);
|
||||
|
||||
Reference in New Issue
Block a user