Home | History | Annotate | Download | only in src

Lines Matching refs:vdec_msg

155             struct vdec_msginfo vdec_msg;
161 vdec_msg.msgcode=VDEC_MSG_RESP_OUTPUT_BUFFER_DONE;
162 vdec_msg.status_code=VDEC_S_SUCCESS;
163 vdec_msg.msgdata.output_frame.client_data=(void*)&v4l2_buf;
164 vdec_msg.msgdata.output_frame.len=plane[0].bytesused;
165 vdec_msg.msgdata.output_frame.bufferaddr=(void*)plane[0].m.userptr;
166 vdec_msg.msgdata.output_frame.time_stamp= ((uint64_t)v4l2_buf.timestamp.tv_sec * (uint64_t)1000000) +
168 if (vdec_msg.msgdata.output_frame.len) {
169 vdec_msg.msgdata.output_frame.framesize.left = plane[0].reserved[2];
170 vdec_msg.msgdata.output_frame.framesize.top = plane[0].reserved[3];
171 vdec_msg.msgdata.output_frame.framesize.right = plane[0].reserved[4];
172 vdec_msg.msgdata.output_frame.framesize.bottom = plane[0].reserved[5];
174 if (omx->async_message_process(input,&vdec_msg) < 0) {
181 struct vdec_msginfo vdec_msg;
187 vdec_msg.msgcode=VDEC_MSG_RESP_INPUT_BUFFER_DONE;
188 vdec_msg.status_code=VDEC_S_SUCCESS;
189 vdec_msg.msgdata.input_frame_clientdata=(void*)&v4l2_buf;
190 if (omx->async_message_process(input,&vdec_msg) < 0) {
199 struct vdec_msginfo vdec_msg;
200 vdec_msg.msgcode=VDEC_MSG_EVT_CONFIG_CHANGED;
201 vdec_msg.status_code=VDEC_S_SUCCESS;
203 if (omx->async_message_process(input,&vdec_msg) < 0) {
208 struct vdec_msginfo vdec_msg;
209 vdec_msg.msgcode=VDEC_MSG_RESP_FLUSH_INPUT_DONE;
210 vdec_msg.status_code=VDEC_S_SUCCESS;
212 if (omx->async_message_process(input,&vdec_msg) < 0) {
216 vdec_msg.msgcode=VDEC_MSG_RESP_FLUSH_OUTPUT_DONE;
217 vdec_msg.status_code=VDEC_S_SUCCESS;
219 if (omx->async_message_process(input,&vdec_msg) < 0) {
227 struct vdec_msginfo vdec_msg;
228 vdec_msg.msgcode=VDEC_MSG_EVT_HW_ERROR;
229 vdec_msg.status_code=VDEC_S_SUCCESS;
231 if (omx->async_message_process(input,&vdec_msg) < 0) {
241 struct vdec_msginfo vdec_msg;
252 vdec_msg.msgcode = VDEC_MSG_RESP_OUTPUT_BUFFER_DONE;
253 vdec_msg.status_code = VDEC_S_SUCCESS;
254 vdec_msg.msgdata.output_frame.client_data = (void*)&v4l2_buf;
255 vdec_msg.msgdata.output_frame.len = 0;
256 vdec_msg.msgdata.output_frame.bufferaddr = (void*)ptr[2];
257 vdec_msg.msgdata.output_frame.time_stamp = ((uint64_t)ptr[3] * (uint64_t)1000000) +
259 if (omx->async_message_process(input,&vdec_msg) < 0) {
7254 struct vdec_msginfo *vdec_msg = NULL;
7264 vdec_msg = (struct vdec_msginfo *)message;
7268 switch (vdec_msg->msgcode)
7272 omx->post_event ((unsigned)NULL, vdec_msg->status_code,\
7277 omx->post_event ((unsigned)NULL, vdec_msg->status_code,\
7282 omx->post_event ((unsigned)NULL, vdec_msg->status_code,\
7287 omx->post_event ((unsigned)NULL, vdec_msg->status_code,\
7292 omx->post_event ((unsigned)NULL, vdec_msg->status_code,\
7297 omx->post_event ((unsigned)NULL, vdec_msg->status_code,\
7303 omx->post_event ((unsigned)NULL, vdec_msg->status_code,\
7308 omx->post_event ((unsigned)NULL, vdec_msg->status_code,\
7316 vdec_msg->msgdata.input_frame_clientdata; */
7318 v4l2_buf_ptr = (v4l2_buffer*)vdec_msg->msgdata.input_frame_clientdata;
7324 vdec_msg->status_code = VDEC_S_EFATAL;
7331 vdec_msg->status_code = VDEC_S_INPUT_BITSTREAM_ERR;
7333 omx->post_event ((unsigned int)omxhdr,vdec_msg->status_code,
7340 *timestamp = vdec_msg->msgdata.output_frame.time_stamp;
7341 omx->post_event ((unsigned int)timestamp, vdec_msg->status_code,
7344 vdec_msg->msgdata.output_frame.time_stamp);
7359 v4l2_buf_ptr = (v4l2_buffer*)vdec_msg->msgdata.output_frame.client_data;
7362 omxhdr, omxhdr->pBuffer, v4l2_buf_ptr->index, vdec_msg->msgdata.output_frame.time_stamp,
7363 vdec_msg->msgdata.output_frame.pic_type, vdec_msg->msgdata.output_frame.len);
7372 vdec_msg->msgdata.output_frame.len)
7374 vdec_msg->msgdata.output_frame.len = omxhdr->nAllocLen;
7376 if ( vdec_msg->msgdata.output_frame.len <= omxhdr->nAllocLen)
7378 omxhdr->nFilledLen = vdec_msg->msgdata.output_frame.len;
7379 omxhdr->nOffset = vdec_msg->msgdata.output_frame.offset;
7380 omxhdr->nTimeStamp = vdec_msg->msgdata.output_frame.time_stamp;
7419 vdec_msg->msgdata.output_frame.bufferaddr =
7424 if ((vdec_msg->msgdata.output_frame.framesize.bottom != omx->drv_ctx.video_resolution.frame_height) ||
7425 (vdec_msg->msgdata.output_frame.framesize.right != omx->drv_ctx.video_resolution.frame_width)) {
7427 omx->drv_ctx.video_resolution.frame_height = vdec_msg->msgdata.output_frame.framesize.bottom;
7428 omx->drv_ctx.video_resolution.frame_width = vdec_msg->msgdata.output_frame.framesize.right;
7433 vdec_msg->msgdata.output_frame.framesize.left)
7434 || ((unsigned)omx->rectangle.nTop != vdec_msg->msgdata.output_frame.framesize.top)
7435 || (omx->rectangle.nWidth != vdec_msg->msgdata.output_frame.framesize.right)
7436 || (omx->rectangle.nHeight != vdec_msg->msgdata.output_frame.framesize.bottom))) {
7437 if ((vdec_msg->msgdata.output_frame.framesize.bottom != omx->drv_ctx.video_resolution.frame_height) ||
7438 (vdec_msg->msgdata.output_frame.framesize.right != omx->drv_ctx.video_resolution.frame_width)) {
7439 omx->drv_ctx.video_resolution.frame_height = vdec_msg->msgdata.output_frame.framesize.bottom;
7440 omx->drv_ctx.video_resolution.frame_width = vdec_msg->msgdata.output_frame.framesize.right;
7442 omx->drv_ctx.video_resolution.frame_width, vdec_msg->msgdata.output_frame.framesize.right,
7443 omx->drv_ctx.video_resolution.frame_height, vdec_msg->msgdata.output_frame.framesize.bottom);
7446 omx->rectangle.nWidth, vdec_msg->msgdata.output_frame.framesize.right,
7447 omx->rectangle.nHeight, vdec_msg->msgdata.output_frame.framesize.bottom);
7448 if (vdec_msg->msgdata.output_frame.framesize.left + vdec_msg->msgdata.output_frame.framesize.right >=
7450 vdec_msg->msgdata.output_frame.framesize.left = 0;
7451 if (vdec_msg->msgdata.output_frame.framesize.right > omx->drv_ctx.video_resolution.frame_width) {
7452 vdec_msg->msgdata.output_frame.framesize.right = omx->drv_ctx.video_resolution.frame_width;
7455 if (vdec_msg->msgdata.output_frame.framesize.top + vdec_msg->msgdata.output_frame.framesize.bottom >=
7457 vdec_msg->msgdata.output_frame.framesize.top = 0;
7458 if (vdec_msg->msgdata.output_frame.framesize.bottom > omx->drv_ctx.video_resolution.frame_height) {
7459 vdec_msg->msgdata.output_frame.framesize.bottom = omx->drv_ctx.video_resolution.frame_height;
7463 vdec_msg->msgdata.output_frame.framesize.left,
7464 vdec_msg->msgdata.output_frame.framesize.top,
7465 vdec_msg->msgdata.output_frame.framesize.right,
7466 vdec_msg->msgdata.output_frame.framesize.bottom,
7469 omx->rectangle.nLeft = vdec_msg->msgdata.output_frame.framesize.left;
7470 omx->rectangle.nTop = vdec_msg->msgdata.output_frame.framesize.top;
7471 omx->rectangle.nWidth = vdec_msg->msgdata.output_frame.framesize.right;
7472 omx->rectangle.nHeight = vdec_msg->msgdata.output_frame.framesize.bottom;
7476 vdec_msg->msgdata.output_frame.framesize.left,vdec_msg->msgdata.output_frame.framesize.right,
7477 vdec_msg->msgdata.output_frame.framesize.top, vdec_msg->msgdata.output_frame.framesize.bottom);
7480 omx->post_event (0, vdec_msg->status_code,
7495 output_respbuf->len = vdec_msg->msgdata.output_frame.len;
7496 output_respbuf->offset = vdec_msg->msgdata.output_frame.offset;
7509 ((unsigned long)vdec_msg->msgdata.output_frame.bufferaddr +
7510 (unsigned long)vdec_msg->msgdata.output_frame.offset),
7511 vdec_msg->msgdata.output_frame.len);
7516 omx->post_event ((unsigned int)omxhdr, vdec_msg->status_code,
7521 omx->post_event ((unsigned int)omxhdr, vdec_msg->status_code,
7525 else if (vdec_msg->msgdata.output_frame.flags & OMX_BUFFERFLAG_EOS)
7526 omx->post_event ((unsigned int)NULL, vdec_msg->status_code,
7529 omx->post_event ((unsigned int)NULL, vdec_msg->status_code,