Loading msm/vidc/hfi_response_handler.c +0 −15 Original line number Diff line number Diff line Loading @@ -110,7 +110,6 @@ static int hfi_process_sess_evt_seq_changed(u32 device_id, struct hfi_bit_depth *pixel_depth; struct hfi_pic_struct *pic_struct; struct hfi_dpb_counts *dpb_counts; struct hfi_index_extradata_input_crop_payload *crop_info; u32 rem_size,entropy_mode = 0; u8 *data_ptr; int prop_id; Loading Loading @@ -273,20 +272,6 @@ static int hfi_process_sess_evt_seq_changed(u32 device_id, hfi_index_extradata_input_crop_payload))) return -E2BIG; data_ptr = data_ptr + sizeof(u32); crop_info = (struct hfi_index_extradata_input_crop_payload *) data_ptr; event_notify.crop_data.left = crop_info->left; event_notify.crop_data.top = crop_info->top; event_notify.crop_data.width = crop_info->width; event_notify.crop_data.height = crop_info->height; s_vpr_h(sid, "CROP info : Left = %d Top = %d\n", crop_info->left, crop_info->top); s_vpr_h(sid, "CROP info : Width = %d Height = %d\n", crop_info->width, crop_info->height); data_ptr += sizeof(struct hfi_index_extradata_input_crop_payload); Loading msm/vidc/msm_vidc.c +12 −8 Original line number Diff line number Diff line Loading @@ -352,20 +352,22 @@ int msm_vidc_qbuf(void *instance, struct v4l2_buffer *b) } for (i = 0; i < b->length; i++) { b->m.planes[i].m.fd = b->m.planes[i].reserved[0]; b->m.planes[i].data_offset = b->m.planes[i].reserved[1]; b->m.planes[i].m.fd = b->m.planes[i].reserved[MSM_VIDC_BUFFER_FD]; b->m.planes[i].data_offset = b->m.planes[i].reserved[MSM_VIDC_DATA_OFFSET]; } /* Compression ratio is valid only for Encoder YUV buffers. */ if (inst->session_type == MSM_VIDC_ENCODER && b->type == INPUT_MPLANE) { cr = b->m.planes[0].reserved[2]; cr = b->m.planes[0].reserved[MSM_VIDC_COMP_RATIO]; msm_comm_update_input_cr(inst, b->index, cr); } if (b->type == INPUT_MPLANE) { client_data = msm_comm_store_client_data(inst, b->m.planes[0].reserved[3]); b->m.planes[0].reserved[MSM_VIDC_INPUT_TAG_1]); if (!client_data) { s_vpr_e(inst->sid, "%s: failed to store client data\n", __func__); Loading Loading @@ -425,8 +427,10 @@ int msm_vidc_dqbuf(void *instance, struct v4l2_buffer *b) } for (i = 0; i < b->length; i++) { b->m.planes[i].reserved[0] = b->m.planes[i].m.fd; b->m.planes[i].reserved[1] = b->m.planes[i].data_offset; b->m.planes[i].reserved[MSM_VIDC_BUFFER_FD] = b->m.planes[i].m.fd; b->m.planes[i].reserved[MSM_VIDC_DATA_OFFSET] = b->m.planes[i].data_offset; } /** * Flush handling: Loading @@ -453,8 +457,8 @@ int msm_vidc_dqbuf(void *instance, struct v4l2_buffer *b) !(b->flags & V4L2_BUF_FLAG_CODECCONFIG); msm_comm_fetch_client_data(inst, remove, input_tag, input_tag2, &b->m.planes[0].reserved[3], &b->m.planes[0].reserved[4]); &b->m.planes[0].reserved[MSM_VIDC_INPUT_TAG_1], &b->m.planes[0].reserved[MSM_VIDC_INPUT_TAG_2]); } } Loading msm/vidc/msm_vidc_common.c +16 −40 Original line number Diff line number Diff line Loading @@ -1732,30 +1732,17 @@ static void handle_event_change(enum hal_command_response cmd, void *data) * codecs except HEVC * event data is now as follows: * u32 *ptr = seq_changed_event.u.data; * ptr[0] = height * ptr[1] = width * ptr[2] = bit depth * ptr[3] = pic struct (progressive or interlaced) * ptr[4] = colour space * ptr[5] = crop_data(top) * ptr[6] = crop_data(left) * ptr[7] = crop_data(height) * ptr[8] = crop_data(width) * ptr[9] = profile * ptr[10] = level * ptr[MSM_VIDC_HEIGHT] = height * ptr[MSM_VIDC_WIDTH] = width * ptr[MSM_VIDC_BIT_DEPTH] = bit depth * ptr[MSM_VIDC_PIC_STRUCT] = pic struct (progressive or interlaced) * ptr[MSM_VIDC_COLOR_SPACE] = colour space * ptr[MSM_VIDC_FW_MIN_COUNT] = fw min count */ inst->profile = event_notify->profile; inst->level = event_notify->level; inst->entropy_mode = event_notify->entropy_mode; inst->prop.crop_info.left = event_notify->crop_data.left; inst->prop.crop_info.top = event_notify->crop_data.top; inst->prop.crop_info.height = event_notify->crop_data.height; inst->prop.crop_info.width = event_notify->crop_data.width; /* HW returns progressive_only flag in pic_struct. */ inst->pic_struct = event_notify->pic_struct ? Loading @@ -1764,34 +1751,23 @@ static void handle_event_change(enum hal_command_response cmd, void *data) inst->colour_space = event_notify->colour_space; ptr = (u32 *)seq_changed_event.u.data; ptr[0] = event_notify->height; ptr[1] = event_notify->width; ptr[2] = event_notify->bit_depth; ptr[3] = event_notify->pic_struct; ptr[4] = event_notify->colour_space; ptr[5] = event_notify->crop_data.top; ptr[6] = event_notify->crop_data.left; ptr[7] = event_notify->crop_data.height; ptr[8] = event_notify->crop_data.width; ptr[9] = msm_comm_get_v4l2_profile(codec, event_notify->profile, inst->sid); ptr[10] = msm_comm_get_v4l2_level(codec, event_notify->level, inst->sid); ptr[11] = event_notify->fw_min_cnt; s_vpr_h(inst->sid, "seq: height = %u width = %u profile = %u level = %u\n", event_notify->height, event_notify->width, ptr[9], ptr[10]); ptr[MSM_VIDC_HEIGHT] = event_notify->height; ptr[MSM_VIDC_WIDTH] = event_notify->width; ptr[MSM_VIDC_BIT_DEPTH] = event_notify->bit_depth; ptr[MSM_VIDC_PIC_STRUCT] = event_notify->pic_struct; ptr[MSM_VIDC_COLOR_SPACE] = event_notify->colour_space; ptr[MSM_VIDC_FW_MIN_COUNT] = event_notify->fw_min_cnt; s_vpr_h(inst->sid, "seq: height = %u width = %u\n", event_notify->height, event_notify->width); s_vpr_h(inst->sid, "seq: bit_depth = %u pic_struct = %u colour_space = %u\n", event_notify->bit_depth, event_notify->pic_struct, event_notify->colour_space); s_vpr_h(inst->sid, "seq: CROP top = %u left = %u Height = %u Width = %u\n", event_notify->crop_data.top, event_notify->crop_data.left, event_notify->crop_data.height, event_notify->crop_data.width); s_vpr_h(inst->sid, "seq: fw_min_count = %u\n", event_notify->fw_min_cnt); mutex_lock(&inst->lock); inst->in_reconfig = true; Loading msm/vidc/msm_vidc_internal.h +0 −8 Original line number Diff line number Diff line Loading @@ -346,15 +346,7 @@ struct msm_video_device { struct video_device vdev; }; struct session_crop { u32 left; u32 top; u32 width; u32 height; }; struct session_prop { struct session_crop crop_info; u32 fps; u32 bitrate; bool bframe_changed; Loading msm/vidc/vidc_hfi_api.h +0 −11 Original line number Diff line number Diff line Loading @@ -597,16 +597,6 @@ struct msm_vidc_cb_cmd_done { } data; }; struct hal_index_extradata_input_crop_payload { u32 size; u32 version; u32 port_index; u32 left; u32 top; u32 width; u32 height; }; struct msm_vidc_cb_event { u32 device_id; void *inst_id; Loading @@ -627,7 +617,6 @@ struct msm_vidc_cb_event { u32 max_dec_buffering; u32 max_reorder_frames; u32 fw_min_cnt; struct hal_index_extradata_input_crop_payload crop_data; }; struct msm_vidc_cb_data_done { Loading Loading
msm/vidc/hfi_response_handler.c +0 −15 Original line number Diff line number Diff line Loading @@ -110,7 +110,6 @@ static int hfi_process_sess_evt_seq_changed(u32 device_id, struct hfi_bit_depth *pixel_depth; struct hfi_pic_struct *pic_struct; struct hfi_dpb_counts *dpb_counts; struct hfi_index_extradata_input_crop_payload *crop_info; u32 rem_size,entropy_mode = 0; u8 *data_ptr; int prop_id; Loading Loading @@ -273,20 +272,6 @@ static int hfi_process_sess_evt_seq_changed(u32 device_id, hfi_index_extradata_input_crop_payload))) return -E2BIG; data_ptr = data_ptr + sizeof(u32); crop_info = (struct hfi_index_extradata_input_crop_payload *) data_ptr; event_notify.crop_data.left = crop_info->left; event_notify.crop_data.top = crop_info->top; event_notify.crop_data.width = crop_info->width; event_notify.crop_data.height = crop_info->height; s_vpr_h(sid, "CROP info : Left = %d Top = %d\n", crop_info->left, crop_info->top); s_vpr_h(sid, "CROP info : Width = %d Height = %d\n", crop_info->width, crop_info->height); data_ptr += sizeof(struct hfi_index_extradata_input_crop_payload); Loading
msm/vidc/msm_vidc.c +12 −8 Original line number Diff line number Diff line Loading @@ -352,20 +352,22 @@ int msm_vidc_qbuf(void *instance, struct v4l2_buffer *b) } for (i = 0; i < b->length; i++) { b->m.planes[i].m.fd = b->m.planes[i].reserved[0]; b->m.planes[i].data_offset = b->m.planes[i].reserved[1]; b->m.planes[i].m.fd = b->m.planes[i].reserved[MSM_VIDC_BUFFER_FD]; b->m.planes[i].data_offset = b->m.planes[i].reserved[MSM_VIDC_DATA_OFFSET]; } /* Compression ratio is valid only for Encoder YUV buffers. */ if (inst->session_type == MSM_VIDC_ENCODER && b->type == INPUT_MPLANE) { cr = b->m.planes[0].reserved[2]; cr = b->m.planes[0].reserved[MSM_VIDC_COMP_RATIO]; msm_comm_update_input_cr(inst, b->index, cr); } if (b->type == INPUT_MPLANE) { client_data = msm_comm_store_client_data(inst, b->m.planes[0].reserved[3]); b->m.planes[0].reserved[MSM_VIDC_INPUT_TAG_1]); if (!client_data) { s_vpr_e(inst->sid, "%s: failed to store client data\n", __func__); Loading Loading @@ -425,8 +427,10 @@ int msm_vidc_dqbuf(void *instance, struct v4l2_buffer *b) } for (i = 0; i < b->length; i++) { b->m.planes[i].reserved[0] = b->m.planes[i].m.fd; b->m.planes[i].reserved[1] = b->m.planes[i].data_offset; b->m.planes[i].reserved[MSM_VIDC_BUFFER_FD] = b->m.planes[i].m.fd; b->m.planes[i].reserved[MSM_VIDC_DATA_OFFSET] = b->m.planes[i].data_offset; } /** * Flush handling: Loading @@ -453,8 +457,8 @@ int msm_vidc_dqbuf(void *instance, struct v4l2_buffer *b) !(b->flags & V4L2_BUF_FLAG_CODECCONFIG); msm_comm_fetch_client_data(inst, remove, input_tag, input_tag2, &b->m.planes[0].reserved[3], &b->m.planes[0].reserved[4]); &b->m.planes[0].reserved[MSM_VIDC_INPUT_TAG_1], &b->m.planes[0].reserved[MSM_VIDC_INPUT_TAG_2]); } } Loading
msm/vidc/msm_vidc_common.c +16 −40 Original line number Diff line number Diff line Loading @@ -1732,30 +1732,17 @@ static void handle_event_change(enum hal_command_response cmd, void *data) * codecs except HEVC * event data is now as follows: * u32 *ptr = seq_changed_event.u.data; * ptr[0] = height * ptr[1] = width * ptr[2] = bit depth * ptr[3] = pic struct (progressive or interlaced) * ptr[4] = colour space * ptr[5] = crop_data(top) * ptr[6] = crop_data(left) * ptr[7] = crop_data(height) * ptr[8] = crop_data(width) * ptr[9] = profile * ptr[10] = level * ptr[MSM_VIDC_HEIGHT] = height * ptr[MSM_VIDC_WIDTH] = width * ptr[MSM_VIDC_BIT_DEPTH] = bit depth * ptr[MSM_VIDC_PIC_STRUCT] = pic struct (progressive or interlaced) * ptr[MSM_VIDC_COLOR_SPACE] = colour space * ptr[MSM_VIDC_FW_MIN_COUNT] = fw min count */ inst->profile = event_notify->profile; inst->level = event_notify->level; inst->entropy_mode = event_notify->entropy_mode; inst->prop.crop_info.left = event_notify->crop_data.left; inst->prop.crop_info.top = event_notify->crop_data.top; inst->prop.crop_info.height = event_notify->crop_data.height; inst->prop.crop_info.width = event_notify->crop_data.width; /* HW returns progressive_only flag in pic_struct. */ inst->pic_struct = event_notify->pic_struct ? Loading @@ -1764,34 +1751,23 @@ static void handle_event_change(enum hal_command_response cmd, void *data) inst->colour_space = event_notify->colour_space; ptr = (u32 *)seq_changed_event.u.data; ptr[0] = event_notify->height; ptr[1] = event_notify->width; ptr[2] = event_notify->bit_depth; ptr[3] = event_notify->pic_struct; ptr[4] = event_notify->colour_space; ptr[5] = event_notify->crop_data.top; ptr[6] = event_notify->crop_data.left; ptr[7] = event_notify->crop_data.height; ptr[8] = event_notify->crop_data.width; ptr[9] = msm_comm_get_v4l2_profile(codec, event_notify->profile, inst->sid); ptr[10] = msm_comm_get_v4l2_level(codec, event_notify->level, inst->sid); ptr[11] = event_notify->fw_min_cnt; s_vpr_h(inst->sid, "seq: height = %u width = %u profile = %u level = %u\n", event_notify->height, event_notify->width, ptr[9], ptr[10]); ptr[MSM_VIDC_HEIGHT] = event_notify->height; ptr[MSM_VIDC_WIDTH] = event_notify->width; ptr[MSM_VIDC_BIT_DEPTH] = event_notify->bit_depth; ptr[MSM_VIDC_PIC_STRUCT] = event_notify->pic_struct; ptr[MSM_VIDC_COLOR_SPACE] = event_notify->colour_space; ptr[MSM_VIDC_FW_MIN_COUNT] = event_notify->fw_min_cnt; s_vpr_h(inst->sid, "seq: height = %u width = %u\n", event_notify->height, event_notify->width); s_vpr_h(inst->sid, "seq: bit_depth = %u pic_struct = %u colour_space = %u\n", event_notify->bit_depth, event_notify->pic_struct, event_notify->colour_space); s_vpr_h(inst->sid, "seq: CROP top = %u left = %u Height = %u Width = %u\n", event_notify->crop_data.top, event_notify->crop_data.left, event_notify->crop_data.height, event_notify->crop_data.width); s_vpr_h(inst->sid, "seq: fw_min_count = %u\n", event_notify->fw_min_cnt); mutex_lock(&inst->lock); inst->in_reconfig = true; Loading
msm/vidc/msm_vidc_internal.h +0 −8 Original line number Diff line number Diff line Loading @@ -346,15 +346,7 @@ struct msm_video_device { struct video_device vdev; }; struct session_crop { u32 left; u32 top; u32 width; u32 height; }; struct session_prop { struct session_crop crop_info; u32 fps; u32 bitrate; bool bframe_changed; Loading
msm/vidc/vidc_hfi_api.h +0 −11 Original line number Diff line number Diff line Loading @@ -597,16 +597,6 @@ struct msm_vidc_cb_cmd_done { } data; }; struct hal_index_extradata_input_crop_payload { u32 size; u32 version; u32 port_index; u32 left; u32 top; u32 width; u32 height; }; struct msm_vidc_cb_event { u32 device_id; void *inst_id; Loading @@ -627,7 +617,6 @@ struct msm_vidc_cb_event { u32 max_dec_buffering; u32 max_reorder_frames; u32 fw_min_cnt; struct hal_index_extradata_input_crop_payload crop_data; }; struct msm_vidc_cb_data_done { Loading