mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 08:36:12 -04:00
msm: vidc: remove key frame flag usage from ebd
Remove HAL_BUFFERFLAG_SYNCFRAME flag usage support from hfi_msg_session_empty_buffer_done_packet and its corresponding usage in handle_ebd. Change-Id: I2dafd35a462a443e6efa165cbf46d4b78833c765 Signed-off-by: Priyanka Gujjula <pgujjula@codeaurora.org>
This commit is contained in:
parent
4c65367a07
commit
9abcce52a6
4 changed files with 2 additions and 22 deletions
|
|
@ -767,8 +767,6 @@ static int hfi_process_session_etb_done(u32 device_id,
|
|||
{
|
||||
struct hfi_msg_session_empty_buffer_done_packet *pkt = _pkt;
|
||||
struct msm_vidc_cb_data_done data_done = {0};
|
||||
struct hfi_picture_type *hfi_picture_type = NULL;
|
||||
u32 is_sync_frame;
|
||||
|
||||
dprintk(VIDC_LOW, "RECEIVED: SESSION_ETB_DONE[%#x]\n", pkt->session_id);
|
||||
|
||||
|
|
@ -790,24 +788,11 @@ static int hfi_process_session_etb_done(u32 device_id,
|
|||
pkt->ubwc_cr_stats.complexity_number;
|
||||
data_done.input_done.offset = pkt->offset;
|
||||
data_done.input_done.filled_len = pkt->filled_len;
|
||||
data_done.input_done.flags = pkt->flags;
|
||||
data_done.input_done.packet_buffer = pkt->packet_buffer;
|
||||
data_done.input_done.extra_data_buffer = pkt->extra_data_buffer;
|
||||
data_done.input_done.status =
|
||||
hfi_map_err_status(pkt->error_type);
|
||||
is_sync_frame = pkt->rgData[0];
|
||||
if (is_sync_frame) {
|
||||
if (pkt->size <
|
||||
sizeof(struct hfi_msg_session_empty_buffer_done_packet)
|
||||
+ sizeof(struct hfi_picture_type))
|
||||
goto bad_packet_size;
|
||||
hfi_picture_type = (struct hfi_picture_type *)&pkt->rgData[1];
|
||||
if (hfi_picture_type->picture_type)
|
||||
data_done.input_done.flags =
|
||||
hfi_picture_type->picture_type;
|
||||
else
|
||||
dprintk(VIDC_LOW,
|
||||
"Non-Sync frame sent for H264/HEVC\n");
|
||||
}
|
||||
|
||||
trace_msm_v4l2_vidc_buffer_event_end("ETB",
|
||||
(u32)pkt->packet_buffer, -1, -1,
|
||||
|
|
|
|||
|
|
@ -2521,8 +2521,6 @@ static void handle_ebd(enum hal_command_response cmd, void *data)
|
|||
dprintk(VIDC_LOW, "Failed : Corrupted input stream\n");
|
||||
mbuf->vvb.flags |= V4L2_BUF_FLAG_DATA_CORRUPT;
|
||||
}
|
||||
if (empty_buf_done->flags & HAL_BUFFERFLAG_SYNCFRAME)
|
||||
mbuf->vvb.flags |= V4L2_BUF_FLAG_KEYFRAME;
|
||||
|
||||
f = &inst->fmts[INPUT_PORT].v4l2_fmt;
|
||||
if (f->fmt.pix_mp.num_planes > 1)
|
||||
|
|
|
|||
|
|
@ -589,6 +589,7 @@ struct hfi_msg_session_empty_buffer_done_packet {
|
|||
u32 extra_data_buffer;
|
||||
u32 flags;
|
||||
struct hfi_frame_cr_stats_type ubwc_cr_stats;
|
||||
/* no usage of sync_frame flag in EBD, rgData[1] is not used */
|
||||
u32 rgData[1];
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -658,10 +658,6 @@ struct hfi_bit_depth {
|
|||
u32 bit_depth;
|
||||
};
|
||||
|
||||
struct hfi_picture_type {
|
||||
u32 picture_type;
|
||||
};
|
||||
|
||||
/* Base Offset for UBWC color formats */
|
||||
#define HFI_COLOR_FORMAT_UBWC_BASE (0x8000)
|
||||
/* Base Offset for 10-bit color formats */
|
||||
|
|
|
|||
Loading…
Reference in a new issue