Home | History | Annotate | Download | only in src

Lines Matching refs:vdec_msg

186             struct vdec_msginfo vdec_msg;
187 memset(&vdec_msg, 0, sizeof(vdec_msg));
193 vdec_msg.msgcode=VDEC_MSG_RESP_OUTPUT_BUFFER_DONE;
194 vdec_msg.status_code=VDEC_S_SUCCESS;
195 vdec_msg.msgdata.output_frame.client_data=(void*)&v4l2_buf;
196 vdec_msg.msgdata.output_frame.len=plane[0].bytesused;
197 vdec_msg.msgdata.output_frame.bufferaddr=(void*)plane[0].m.userptr;
198 vdec_msg.msgdata.output_frame.time_stamp= ((uint64_t)v4l2_buf.timestamp.tv_sec * (uint64_t)1000000) +
201 if (omx->async_message_process(input,&vdec_msg) < 0) {
208 struct vdec_msginfo vdec_msg;
214 vdec_msg.msgcode=VDEC_MSG_RESP_INPUT_BUFFER_DONE;
215 vdec_msg.status_code=VDEC_S_SUCCESS;
216 vdec_msg.msgdata.input_frame_clientdata=(void*)&v4l2_buf;
217 if (omx->async_message_process(input,&vdec_msg) < 0) {
226 struct vdec_msginfo vdec_msg;
229 vdec_msg.msgcode=VDEC_MSG_EVT_CONFIG_CHANGED;
230 vdec_msg.status_code=VDEC_S_SUCCESS;
231 vdec_msg.msgdata.output_frame.picsize.frame_height = ptr[0];
232 vdec_msg.msgdata.output_frame.picsize.frame_width = ptr[1];
241 if (omx->async_message_process(input,&vdec_msg) < 0) {
250 struct vdec_msginfo vdec_msg;
278 vdec_msg.msgcode=VDEC_MSG_EVT_CONFIG_CHANGED;
279 vdec_msg.status_code=VDEC_S_SUCCESS;
280 vdec_msg.msgdata.output_frame.picsize.frame_height = ptr[0];
281 vdec_msg.msgdata.output_frame.picsize.frame_width = ptr[1];
291 vdec_msg.msgcode=VDEC_MSG_EVT_HW_ERROR;
292 vdec_msg.status_code=VDEC_S_SUCCESS;
299 if (omx->async_message_process(input,&vdec_msg) < 0) {
306 struct vdec_msginfo vdec_msg;
311 vdec_msg.status_code=VDEC_S_SUCCESS;
313 vdec_msg.msgcode=VDEC_MSG_RESP_FLUSH_INPUT_DONE;
315 if (omx->async_message_process(input,&vdec_msg) < 0) {
322 vdec_msg.msgcode=VDEC_MSG_RESP_FLUSH_OUTPUT_DONE;
324 if (omx->async_message_process(input,&vdec_msg) < 0) {
330 struct vdec_msginfo vdec_msg;
331 vdec_msg.msgcode=VDEC_MSG_EVT_HW_OVERLOAD;
332 vdec_msg.status_code=VDEC_S_SUCCESS;
334 if (omx->async_message_process(input,&vdec_msg) < 0) {
339 struct vdec_msginfo vdec_msg;
340 vdec_msg.msgcode=VDEC_MSG_EVT_HW_UNSUPPORTED;
341 vdec_msg.status_code=VDEC_S_SUCCESS;
343 if (omx->async_message_process(input,&vdec_msg) < 0) {
348 struct vdec_msginfo vdec_msg;
349 vdec_msg.msgcode = VDEC_MSG_EVT_HW_ERROR;
350 vdec_msg.status_code = VDEC_S_SUCCESS;
352 if (omx->async_message_process(input,&vdec_msg) < 0) {
362 struct vdec_msginfo vdec_msg;
373 vdec_msg.msgcode = VDEC_MSG_RESP_OUTPUT_BUFFER_DONE;
374 vdec_msg.status_code = VDEC_S_SUCCESS;
375 vdec_msg.msgdata.output_frame.client_data = (void*)&v4l2_buf;
376 vdec_msg.msgdata.output_frame.len = 0;
377 vdec_msg.msgdata.output_frame.bufferaddr = (void*)(intptr_t)ptr[2];
378 vdec_msg.msgdata.output_frame.time_stamp = ((uint64_t)ptr[3] * (uint64_t)1000000) +
380 if (omx->async_message_process(input,&vdec_msg) < 0) {
8259 struct vdec_msginfo *vdec_msg = NULL;
8269 vdec_msg = (struct vdec_msginfo *)message;
8273 switch (vdec_msg->msgcode) {
8276 omx->post_event ((unsigned)NULL, vdec_msg->status_code,\
8281 omx->post_event ((unsigned)NULL, vdec_msg->status_code,\
8286 omx->post_event ((unsigned)NULL, vdec_msg->status_code,\
8291 omx->post_event ((unsigned)NULL, vdec_msg->status_code,\
8296 omx->post_event ((unsigned)NULL, vdec_msg->status_code,\
8301 omx->post_event ((unsigned)NULL, vdec_msg->status_code,\
8306 omx->post_event ((unsigned)NULL, vdec_msg->status_code,\
8311 omx->post_event ((unsigned)NULL, vdec_msg->status_code,\
8315 omx->post_event ((unsigned)NULL, vdec_msg->status_code,\
8322 vdec_msg->msgdata.input_frame_clientdata; */
8324 v4l2_buf_ptr = (v4l2_buffer*)vdec_msg->msgdata.input_frame_clientdata;
8328 vdec_msg->status_code = VDEC_S_EFATAL;
8336 omx->post_event ((unsigned)NULL, vdec_msg->status_code,\
8341 vdec_msg->status_code = VDEC_S_INPUT_BITSTREAM_ERR;
8357 omx->post_event ((unsigned long)omxhdr,vdec_msg->status_code,
8364 *timestamp = vdec_msg->msgdata.output_frame.time_stamp;
8365 omx->post_event ((unsigned long)timestamp, vdec_msg->status_code,
8368 (long long)vdec_msg->msgdata.output_frame.time_stamp);
8374 v4l2_buf_ptr = (v4l2_buffer*)vdec_msg->msgdata.output_frame.client_data;
8378 vdec_msg->status_code = VDEC_S_EFATAL;
8389 if (vdec_msg->msgdata.output_frame.len <= omxhdr->nAllocLen) {
8390 omxhdr->nFilledLen = vdec_msg->msgdata.output_frame.len;
8391 omxhdr->nOffset = vdec_msg->msgdata.output_frame.offset;
8392 omxhdr->nTimeStamp = vdec_msg->msgdata.output_frame.time_stamp;
8429 output_respbuf->len = vdec_msg->msgdata.output_frame.len;
8430 output_respbuf->offset = vdec_msg->msgdata.output_frame.offset;
8442 if (vdec_msg->msgdata.output_frame.len) {
8487 vdec_msg->msgdata.output_frame.framesize.left = omx->m_extradata_info.output_crop_rect.nLeft;
8488 vdec_msg->msgdata.output_frame.framesize.top = omx->m_extradata_info.output_crop_rect.nTop;
8489 vdec_msg->msgdata.output_frame.framesize.right = omx->m_extradata_info.output_crop_rect.nWidth;
8490 vdec_msg->msgdata.output_frame.framesize.bottom = omx->m_extradata_info.output_crop_rect.nHeight;
8491 vdec_msg->msgdata.output_frame.picsize.frame_width = omx->m_extradata_info.output_width;
8492 vdec_msg->msgdata.output_frame.picsize.frame_height = omx->m_extradata_info.output_height;
8493 memcpy(vdec_msg->msgdata.output_frame.misrinfo,
8497 vdec_msg->msgdata.output_frame.framesize.left = plane[0].reserved[2];
8498 vdec_msg->msgdata.output_frame.framesize.top = plane[0].reserved[3];
8499 vdec_msg->msgdata.output_frame.framesize.right = plane[0].reserved[2] + plane[0].reserved[4];
8500 vdec_msg->msgdata.output_frame.framesize.bottom = plane[0].reserved[3] + plane[0].reserved[5];
8501 vdec_msg->msgdata.output_frame.picsize.frame_width = plane[0].reserved[6];
8502 vdec_msg->msgdata.output_frame.picsize.frame_height = plane[0].reserved[7];
8506 omx->m_extradata_info.output_crop_rect.nLeft = vdec_msg->msgdata.output_frame.framesize.left;
8507 omx->m_extradata_info.output_crop_rect.nTop = vdec_msg->msgdata.output_frame.framesize.top;
8508 omx->m_extradata_info.output_crop_rect.nWidth = vdec_msg->msgdata.output_frame.framesize.right;
8509 omx->m_extradata_info.output_crop_rect.nHeight = vdec_msg->msgdata.output_frame.framesize.bottom;
8510 omx->m_extradata_info.output_width = vdec_msg->msgdata.output_frame.picsize.frame_width;
8511 omx->m_extradata_info.output_height = vdec_msg->msgdata.output_frame.picsize.frame_height;
8515 vdec_msg->msgdata.output_frame.bufferaddr =
8518 if (vdec_msg->msgdata.output_frame.len)
8520 &vdec_msg->msgdata.output_frame.framesize,
8526 omxhdr, (long long)vdec_msg->msgdata.output_frame.time_stamp,
8527 vdec_msg->msgdata.output_frame.pic_type, v4l2_buf_ptr->flags,
8528 (unsigned int)vdec_msg->msgdata.output_frame.len,
8529 vdec_msg->msgdata.output_frame.framesize.left,
8530 vdec_msg->msgdata.output_frame.framesize.top,
8531 vdec_msg->msgdata.output_frame.framesize.right,
8532 vdec_msg->msgdata.output_frame.framesize.bottom);
8539 || (omx->drv_ctx.frame_size.left != vdec_msg->msgdata.output_frame.framesize.left)
8540 || (omx->drv_ctx.frame_size.top != vdec_msg->msgdata.output_frame.framesize.top)
8541 || (omx->drv_ctx.frame_size.right != vdec_msg->msgdata.output_frame.framesize.right)
8542 || (omx->drv_ctx.frame_size.bottom != vdec_msg->msgdata.output_frame.framesize.bottom)
8543 || (omx->drv_ctx.video_resolution.frame_width != vdec_msg->msgdata.output_frame.picsize.frame_width)
8544 || (omx->drv_ctx.video_resolution.frame_height != vdec_msg->msgdata.output_frame.picsize.frame_height) )) {
8552 omxhdr->nFilledLen, vdec_msg
8553 vdec_msg->msgdata.output_frame.picsize.frame_height,
8554 vdec_msg->msgdata.output_frame.framesize.left,
8555 vdec_msg->msgdata.output_frame.framesize.top,
8556 vdec_msg->msgdata.output_frame.framesize.right,
8557 vdec_msg->msgdata.output_frame.framesize.bottom);
8560 vdec_msg->msgdata.output_frame.picsize.frame_width;
8562 vdec_msg->msgdata.output_frame.picsize.frame_height;
8589 vdec_msg->msgdata.output_frame.bufferaddr)
8591 ((unsigned long)vdec_msg->msgdata.output_frame.bufferaddr +
8592 (unsigned long)vdec_msg->msgdata.output_frame.offset),
8593 vdec_msg->msgdata.output_frame.len);
8596 (unsigned int)vdec_msg->msgdata.output_frame.len,
8601 omx->post_event ((unsigned long)omxhdr, vdec_msg->status_code,
8604 } else if (vdec_msg->msgdata.output_frame.flags & OMX_BUFFERFLAG_EOS) {
8605 omx->post_event ((unsigned long)NULL, vdec_msg->status_code,
8608 omx->post_event ((unsigned int)NULL, vdec_msg->status_code,
8614 omx->m_reconfig_width = vdec_msg->msgdata.output_frame.picsize.frame_width;
8615 omx->m_reconfig_height = vdec_msg->msgdata.output_frame.picsize.frame_height;