Home | History | Annotate | Download | only in src

Lines Matching refs:vdec_msg

149             struct vdec_msginfo vdec_msg;
150 memset(&vdec_msg, 0, sizeof(vdec_msg));
156 vdec_msg.msgcode=VDEC_MSG_RESP_OUTPUT_BUFFER_DONE;
157 vdec_msg.status_code=VDEC_S_SUCCESS;
158 vdec_msg.msgdata.output_frame.client_data=(void*)&v4l2_buf;
159 vdec_msg.msgdata.output_frame.len=plane[0].bytesused;
160 vdec_msg.msgdata.output_frame.bufferaddr=(void*)plane[0].m.userptr;
161 vdec_msg.msgdata.output_frame.time_stamp= ((uint64_t)v4l2_buf.timestamp.tv_sec * (uint64_t)1000000) +
163 if (vdec_msg.msgdata.output_frame.len) {
164 vdec_msg.msgdata.output_frame.framesize.left = plane[0].reserved[2];
165 vdec_msg.msgdata.output_frame.framesize.top = plane[0].reserved[3];
166 vdec_msg.msgdata.output_frame.framesize.right = plane[0].reserved[4];
167 vdec_msg.msgdata.output_frame.framesize.bottom = plane[0].reserved[5];
169 if (omx->async_message_process(input,&vdec_msg) < 0) {
176 struct vdec_msginfo vdec_msg;
182 vdec_msg.msgcode=VDEC_MSG_RESP_INPUT_BUFFER_DONE;
183 vdec_msg.status_code=VDEC_S_SUCCESS;
184 vdec_msg.msgdata.input_frame_clientdata=(void*)&v4l2_buf;
185 if (omx->async_message_process(input,&vdec_msg) < 0) {
194 struct vdec_msginfo vdec_msg;
195 vdec_msg.msgcode=VDEC_MSG_EVT_CONFIG_CHANGED;
196 vdec_msg.status_code=VDEC_S_SUCCESS;
198 if (omx->async_message_process(input,&vdec_msg) < 0) {
203 struct vdec_msginfo vdec_msg;
204 vdec_msg.msgcode=VDEC_MSG_RESP_FLUSH_INPUT_DONE;
205 vdec_msg.status_code=VDEC_S_SUCCESS;
207 if (omx->async_message_process(input,&vdec_msg) < 0) {
211 vdec_msg.msgcode=VDEC_MSG_RESP_FLUSH_OUTPUT_DONE;
212 vdec_msg.status_code=VDEC_S_SUCCESS;
214 if (omx->async_message_process(input,&vdec_msg) < 0) {
222 struct vdec_msginfo vdec_msg;
223 vdec_msg.msgcode=VDEC_MSG_EVT_HW_ERROR;
224 vdec_msg.status_code=VDEC_S_SUCCESS;
226 if (omx->async_message_process(input,&vdec_msg) < 0) {
239 struct vdec_msginfo vdec_msg;
250 vdec_msg.msgcode = VDEC_MSG_RESP_OUTPUT_BUFFER_DONE;
251 vdec_msg.status_code = VDEC_S_SUCCESS;
252 vdec_msg.msgdata.output_frame.client_data = (void*)&v4l2_buf;
253 vdec_msg.msgdata.output_frame.len = 0;
254 vdec_msg.msgdata.output_frame.bufferaddr = (void*)(intptr_t)ptr[2];
255 vdec_msg.msgdata.output_frame.time_stamp = ((uint64_t)ptr[3] * (uint64_t)1000000) +
257 if (omx->async_message_process(input,&vdec_msg) < 0) {
7469 struct vdec_msginfo *vdec_msg = NULL;
7479 vdec_msg = (struct vdec_msginfo *)message;
7483 switch (vdec_msg->msgcode)
7487 omx->post_event ((unsigned long)NULL, (unsigned long)vdec_msg->status_code,\
7492 omx->post_event ((unsigned long)NULL, (unsigned long)vdec_msg->status_code,\
7497 omx->post_event ((unsigned long)NULL, (unsigned long)vdec_msg->status_code,\
7502 omx->post_event ((unsigned long)NULL, (unsigned long)vdec_msg->status_code,\
7507 omx->post_event ((unsigned long)NULL, (unsigned long)vdec_msg->status_code,\
7512 omx->post_event ((unsigned long)NULL, (unsigned long)vdec_msg->status_code,\
7518 omx->post_event ((unsigned)NULL, (unsigned long)vdec_msg->status_code,\
7523 omx->post_event ((unsigned)NULL, (unsigned long)vdec_msg->status_code,\
7531 vdec_msg->msgdata.input_frame_clientdata; */
7533 v4l2_buf_ptr = (v4l2_buffer*)vdec_msg->msgdata.input_frame_clientdata;
7539 vdec_msg->status_code = VDEC_S_EFATAL;
7546 vdec_msg->status_code = VDEC_S_INPUT_BITSTREAM_ERR;
7548 omx->post_event ((unsigned long)omxhdr, (unsigned long)vdec_msg->status_code,
7555 *timestamp = vdec_msg->msgdata.output_frame.time_stamp;
7556 omx->post_event ((unsigned long)timestamp, (unsigned long)vdec_msg->status_code,
7559 vdec_msg->msgdata.output_frame.time_stamp);
7574 v4l2_buf_ptr = (v4l2_buffer*)vdec_msg->msgdata.output_frame.client_data;
7577 omxhdr, omxhdr->pBuffer, v4l2_buf_ptr->index, vdec_msg->msgdata.output_frame.time_stamp,
7578 vdec_msg->msgdata.output_frame.pic_type, vdec_msg->msgdata.output_frame.len);
7587 vdec_msg->msgdata.output_frame.len)
7589 vdec_msg->msgdata.output_frame.len = omxhdr->nAllocLen;
7591 if ( vdec_msg->msgdata.output_frame.len <= omxhdr->nAllocLen)
7593 omxhdr->nFilledLen = vdec_msg->msgdata.output_frame.len;
7594 omxhdr->nOffset = vdec_msg->msgdata.output_frame.offset;
7595 omxhdr->nTimeStamp = vdec_msg->msgdata.output_frame.time_stamp;
7634 vdec_msg->msgdata.output_frame.bufferaddr =
7639 if ((vdec_msg->msgdata.output_frame.framesize.bottom != omx->drv_ctx.video_resolution.frame_height) ||
7640 (vdec_msg->msgdata.output_frame.framesize.right != omx->drv_ctx.video_resolution.frame_width)) {
7642 omx->drv_ctx.video_resolution.frame_height = vdec_msg->msgdata.output_frame.framesize.bottom;
7643 omx->drv_ctx.video_resolution.frame_width = vdec_msg->msgdata.output_frame.framesize.right;
7648 vdec_msg->msgdata.output_frame.framesize.left)
7649 || ((unsigned)omx->rectangle.nTop != vdec_msg->msgdata.output_frame.framesize.top)
7650 || (omx->rectangle.nWidth != vdec_msg->msgdata.output_frame.framesize.right)
7651 || (omx->rectangle.nHeight != vdec_msg->msgdata.output_frame.framesize.bottom))) {
7652 if ((vdec_msg->msgdata.output_frame.framesize.bottom != omx->drv_ctx.video_resolution.frame_height) ||
7653 (vdec_msg->msgdata.output_frame.framesize.right != omx->drv_ctx.video_resolution.frame_width)) {
7654 omx->drv_ctx.video_resolution.frame_height = vdec_msg->msgdata.output_frame.framesize.bottom;
7655 omx->drv_ctx.video_resolution.frame_width = vdec_msg->msgdata.output_frame.framesize.right;
7657 omx->drv_ctx.video_resolution.frame_width, vdec_msg->msgdata.output_frame.framesize.right,
7658 omx->drv_ctx.video_resolution.frame_height, vdec_msg->msgdata.output_frame.framesize.bottom);
7661 omx->rectangle.nWidth, vdec_msg->msgdata.output_frame.framesize.right,
7662 omx->rectangle.nHeight, vdec_msg->msgdata.output_frame.framesize.bottom);
7663 if (vdec_msg->msgdata.output_frame.framesize.left + vdec_msg->msgdata.output_frame.framesize.right >=
7665 vdec_msg->msgdata.output_frame.framesize.left = 0;
7666 if (vdec_msg->msgdata.output_frame.framesize.right > omx->drv_ctx.video_resolution.frame_width) {
7667 vdec_msg->msgdata.output_frame.framesize.right = omx->drv_ctx.video_resolution.frame_width;
7670 if (vdec_msgvdec_msg->msgdata.output_frame.framesize.bottom >=
7672 vdec_msg->msgdata.output_frame.framesize.top = 0;
7673 if (vdec_msg->msgdata.output_frame.framesize.bottom > omx->drv_ctx.video_resolution.frame_height) {
7674 vdec_msg->msgdata.output_frame.framesize.bottom = omx->drv_ctx.video_resolution.frame_height;
7678 vdec_msg->msgdata.output_frame.framesize.left,
7679 vdec_msg->msgdata.output_frame.framesize.top,
7680 vdec_msg->msgdata.output_frame.framesize.right,
7681 vdec_msg->msgdata.output_frame.framesize.bottom,
7684 omx->rectangle.nLeft = vdec_msg->msgdata.output_frame.framesize.left;
7685 omx->rectangle.nTop = vdec_msg->msgdata.output_frame.framesize.top;
7686 omx->rectangle.nWidth = vdec_msg->msgdata.output_frame.framesize.right;
7687 omx->rectangle.nHeight = vdec_msg->msgdata.output_frame.framesize.bottom;
7691 vdec_msg->msgdata.output_frame.framesize.left,vdec_msg->msgdata.output_frame.framesize.right,
7692 vdec_msg->msgdata.output_frame.framesize.top, vdec_msg->msgdata.output_frame.framesize.bottom);
7695 omx->post_event ((unsigned long)0, (unsigned long)vdec_msg->status_code,
7710 output_respbuf->len = vdec_msg->msgdata.output_frame.len;
7711 output_respbuf->offset = vdec_msg->msgdata.output_frame.offset;
7724 ((unsigned long)vdec_msg->msgdata.output_frame.bufferaddr +
7725 (unsigned long)vdec_msg->msgdata.output_frame.offset),
7726 vdec_msg->msgdata.output_frame.len);
7731 omx->post_event ((unsigned long)omxhdr, (unsigned long)vdec_msg->status_code,
7736 omx->post_event ((unsigned long)omxhdr, (unsigned long)vdec_msg->status_code,
7740 else if (vdec_msg->msgdata.output_frame.flags & OMX_BUFFERFLAG_EOS)
7741 omx->post_event ((unsigned long)NULL, (unsigned long)vdec_msg->status_code,
7744 omx->post_event ((unsigned long)NULL, (unsigned long)vdec_msg->status_code,