Home | History | Annotate | Download | only in src

Lines Matching refs:vdec_msg

183             struct vdec_msginfo vdec_msg;
184 memset(&vdec_msg, 0, sizeof(vdec_msg));
190 vdec_msg.msgcode=VDEC_MSG_RESP_OUTPUT_BUFFER_DONE;
191 vdec_msg.status_code=VDEC_S_SUCCESS;
192 vdec_msg.msgdata.output_frame.client_data=(void*)&v4l2_buf;
193 vdec_msg.msgdata.output_frame.len=plane[0].bytesused;
194 vdec_msg.msgdata.output_frame.bufferaddr=(void*)plane[0].m.userptr;
195 vdec_msg.msgdata.output_frame.time_stamp= ((uint64_t)v4l2_buf.timestamp.tv_sec * (uint64_t)1000000) +
197 if (vdec_msg.msgdata.output_frame.len) {
198 vdec_msg.msgdata.output_frame.framesize.left = plane[0].reserved[2];
199 vdec_msg.msgdata.output_frame.framesize.top = plane[0].reserved[3];
200 vdec_msg.msgdata.output_frame.framesize.right = plane[0].reserved[4];
201 vdec_msg.msgdata.output_frame.framesize.bottom = plane[0].reserved[5];
202 vdec_msg.msgdata.output_frame.picsize.frame_width = plane[0].reserved[6];
203 vdec_msg.msgdata.output_frame.picsize.frame_height = plane[0].reserved[7];
205 if (omx->async_message_process(input,&vdec_msg) < 0) {
212 struct vdec_msginfo vdec_msg;
218 vdec_msg.msgcode=VDEC_MSG_RESP_INPUT_BUFFER_DONE;
219 vdec_msg.status_code=VDEC_S_SUCCESS;
220 vdec_msg.msgdata.input_frame_clientdata=(void*)&v4l2_buf;
221 if (omx->async_message_process(input,&vdec_msg) < 0) {
230 struct vdec_msginfo vdec_msg;
233 vdec_msg.msgcode=VDEC_MSG_EVT_CONFIG_CHANGED;
234 vdec_msg.status_code=VDEC_S_SUCCESS;
235 vdec_msg.msgdata.output_frame.picsize.frame_height = ptr[0];
236 vdec_msg.msgdata.output_frame.picsize.frame_width = ptr[1];
238 if (omx->async_message_process(input,&vdec_msg) < 0) {
243 struct vdec_msginfo vdec_msg;
244 vdec_msg.msgcode=VDEC_MSG_EVT_CONFIG_CHANGED;
245 vdec_msg.status_code=VDEC_S_SUCCESS;
248 if (omx->async_message_process(input,&vdec_msg) < 0) {
253 struct vdec_msginfo vdec_msg;
254 vdec_msg.msgcode=VDEC_MSG_RESP_FLUSH_INPUT_DONE;
255 vdec_msg.status_code=VDEC_S_SUCCESS;
257 if (omx->async_message_process(input,&vdec_msg) < 0) {
261 vdec_msg.msgcode=VDEC_MSG_RESP_FLUSH_OUTPUT_DONE;
262 vdec_msg.status_code=VDEC_S_SUCCESS;
264 if (omx->async_message_process(input,&vdec_msg) < 0) {
269 struct vdec_msginfo vdec_msg;
270 vdec_msg.msgcode=VDEC_MSG_EVT_HW_OVERLOAD;
271 vdec_msg.status_code=VDEC_S_SUCCESS;
273 if (omx->async_message_process(input,&vdec_msg) < 0) {
278 struct vdec_msginfo vdec_msg;
279 vdec_msg.msgcode=VDEC_MSG_EVT_HW_UNSUPPORTED;
280 vdec_msg.status_code=VDEC_S_SUCCESS;
282 if (omx->async_message_process(input,&vdec_msg) < 0) {
287 struct vdec_msginfo vdec_msg;
288 vdec_msg.msgcode = VDEC_MSG_EVT_HW_ERROR;
289 vdec_msg.status_code = VDEC_S_SUCCESS;
291 if (omx->async_message_process(input,&vdec_msg) < 0) {
301 struct vdec_msginfo vdec_msg;
312 vdec_msg.msgcode = VDEC_MSG_RESP_OUTPUT_BUFFER_DONE;
313 vdec_msg.status_code = VDEC_S_SUCCESS;
314 vdec_msg.msgdata.output_frame.client_data = (void*)&v4l2_buf;
315 vdec_msg.msgdata.output_frame.len = 0;
316 vdec_msg.msgdata.output_frame.bufferaddr = (void*)(intptr_t)ptr[2];
317 vdec_msg.msgdata.output_frame.time_stamp = ((uint64_t)ptr[3] * (uint64_t)1000000) +
319 if (omx->async_message_process(input,&vdec_msg) < 0) {
8379 struct vdec_msginfo *vdec_msg = NULL;
8388 vdec_msg = (struct vdec_msginfo *)message;
8392 switch (vdec_msg->msgcode) {
8395 omx->post_event ((unsigned)NULL, vdec_msg->status_code,\
8400 omx->post_event ((unsigned)NULL, vdec_msg->status_code,\
8405 omx->post_event ((unsigned)NULL, vdec_msg->status_code,\
8410 omx->post_event ((unsigned)NULL, vdec_msg->status_code,\
8415 omx->post_event ((unsigned)NULL, vdec_msg->status_code,\
8420 omx->post_event ((unsigned)NULL, vdec_msg->status_code,\
8425 omx->post_event ((unsigned)NULL, vdec_msg->status_code,\
8430 omx->post_event ((unsigned)NULL, vdec_msg->status_code,\
8434 omx->post_event ((unsigned)NULL, vdec_msg->status_code,\
8441 vdec_msg->msgdata.input_frame_clientdata; */
8443 v4l2_buf_ptr = (v4l2_buffer*)vdec_msg->msgdata.input_frame_clientdata;
8447 vdec_msg->status_code = VDEC_S_EFATAL;
8455 omx->post_event ((unsigned)NULL, vdec_msg->status_code,\
8460 vdec_msg->status_code = VDEC_S_INPUT_BITSTREAM_ERR;
8476 omx->post_event ((unsigned long)omxhdr,vdec_msg->status_code,
8483 *timestamp = vdec_msg->msgdata.output_frame.time_stamp;
8484 omx->post_event ((unsigned long)timestamp, vdec_msg->status_code,
8487 (long long)vdec_msg->msgdata.output_frame.time_stamp);
8493 v4l2_buf_ptr = (v4l2_buffer*)vdec_msg->msgdata.output_frame.client_data;
8498 vdec_msg->status_code = VDEC_S_EFATAL;
8505 omxhdr, (long long)vdec_msg->msgdata.output_frame.time_stamp,
8506 vdec_msg->msgdata.output_frame.pic_type, v4l2_buf_ptr->flags,
8507 (unsigned int)vdec_msg->msgdata.output_frame.len,
8508 vdec_msg->msgdata.output_frame.framesize.left,
8509 vdec_msg->msgdata.output_frame.framesize.top,
8510 vdec_msg->msgdata.output_frame.framesize.right,
8511 vdec_msg->msgdata.output_frame.framesize.bottom);
8518 if (vdec_msg->msgdata.output_frame.len <= omxhdr->nAllocLen) {
8519 omxhdr->nFilledLen = vdec_msg->msgdata.output_frame.len;
8520 omxhdr->nOffset = vdec_msg->msgdata.output_frame.offset;
8521 omxhdr->nTimeStamp = vdec_msg->msgdata.output_frame.time_stamp;
8597 vdec_msg->msgdata.output_frame.bufferaddr =
8605 || (omx->drv_ctx.frame_size.left != vdec_msg->msgdata.output_frame.framesize.left)
8606 || (omx->drv_ctx.frame_size.top != vdec_msg->msgdata.output_frame.framesize.top)
8607 || (omx->drv_ctx.frame_size.right != vdec_msg->msgdata.output_frame.framesize.right)
8608 || (omx->drv_ctx.frame_size.bottom != vdec_msg->msgdata.output_frame.framesize.bottom)
8609 || (omx->drv_ctx.video_resolution.frame_width != vdec_msg->msgdata.output_frame.picsize.frame_width)
8610 || (omx->drv_ctx.video_resolution.frame_height != vdec_msg->msgdata.output_frame.picsize.frame_height) )) {
8618 omxhdr->nFilledLen, vdec_msg->msgdata.output_frame.picsize.frame_width,
8619 vdec_msg->msgdata.output_frame.picsize.frame_height,
8620 vdec_msg->msgdata.output_frame.framesize.left,
8621 vdec_msg->msgdata.output_frame.framesize.top,
8622 vdec_msg->msgdata.output_frame.framesize.right,
8623 vdec_msg->msgdata.output_frame.framesize.bottom);
8626 vdec_msg->msgdata.output_frame.picsize.frame_width;
8628 vdec_msg->msgdata.output_frame.picsize.frame_height;
8642 &vdec_msg->msgdata.output_frame.framesize,
8659 output_respbuf->len = vdec_msg->msgdata.output_frame.len;
8660 output_respbuf->offset = vdec_msg->msgdata.output_frame.offset;
8675 vdec_msg->msgdata.output_frame.bufferaddr)
8677 ((unsigned long)vdec_msg->msgdata.output_frame.bufferaddr +
8678 (unsigned long)vdec_msg->msgdata.output_frame.offset),
8679 vdec_msg->msgdata.output_frame.len);
8682 (unsigned int)vdec_msg->msgdata.output_frame.len,
8687 omx->post_event ((unsigned long)omxhdr, vdec_msg->status_code,
8690 } else if (vdec_msg->msgdata.output_frame.flags & OMX_BUFFERFLAG_EOS) {
8691 omx->post_event ((unsigned long)NULL, vdec_msg->status_code,
8694 omx->post_event ((unsigned int)NULL, vdec_msg->status_code,
8700 omx->m_reconfig_width = vdec_msg->msgdata.output_frame.picsize.frame_width;
8701 omx->m_reconfig_height = vdec_msg->msgdata.output_frame.picsize.frame_height;