Lines Matching refs:vdec_msg
159 struct vdec_msginfo vdec_msg;
165 vdec_msg.msgcode=VDEC_MSG_RESP_OUTPUT_BUFFER_DONE;
166 vdec_msg.status_code=VDEC_S_SUCCESS;
167 vdec_msg.msgdata.output_frame.client_data=(void*)&v4l2_buf;
168 vdec_msg.msgdata.output_frame.len=plane[0].bytesused;
169 vdec_msg.msgdata.output_frame.bufferaddr=(void*)plane[0].m.userptr;
170 vdec_msg.msgdata.output_frame.time_stamp= ((uint64_t)v4l2_buf.timestamp.tv_sec * (uint64_t)1000000) +
172 if (vdec_msg.msgdata.output_frame.len) {
173 vdec_msg.msgdata.output_frame.framesize.left = plane[0].reserved[2];
174 vdec_msg.msgdata.output_frame.framesize.top = plane[0].reserved[3];
175 vdec_msg.msgdata.output_frame.framesize.right = plane[0].reserved[4];
176 vdec_msg.msgdata.output_frame.framesize.bottom = plane[0].reserved[5];
178 if (omx->async_message_process(input,&vdec_msg) < 0) {
185 struct vdec_msginfo vdec_msg;
191 vdec_msg.msgcode=VDEC_MSG_RESP_INPUT_BUFFER_DONE;
192 vdec_msg.status_code=VDEC_S_SUCCESS;
193 vdec_msg.msgdata.input_frame_clientdata=(void*)&v4l2_buf;
194 if (omx->async_message_process(input,&vdec_msg) < 0) {
203 struct vdec_msginfo vdec_msg;
204 vdec_msg.msgcode=VDEC_MSG_EVT_CONFIG_CHANGED;
205 vdec_msg.status_code=VDEC_S_SUCCESS;
207 if (omx->async_message_process(input,&vdec_msg) < 0) {
212 struct vdec_msginfo vdec_msg;
213 vdec_msg.msgcode=VDEC_MSG_EVT_INFO_CONFIG_CHANGED;
214 vdec_msg.status_code=VDEC_S_SUCCESS;
216 if (omx->async_message_process(input,&vdec_msg) < 0) {
221 struct vdec_msginfo vdec_msg;
222 vdec_msg.msgcode=VDEC_MSG_RESP_FLUSH_INPUT_DONE;
223 vdec_msg.status_code=VDEC_S_SUCCESS;
225 if (omx->async_message_process(input,&vdec_msg) < 0) {
229 vdec_msg.msgcode=VDEC_MSG_RESP_FLUSH_OUTPUT_DONE;
230 vdec_msg.status_code=VDEC_S_SUCCESS;
232 if (omx->async_message_process(input,&vdec_msg) < 0) {
240 struct vdec_msginfo vdec_msg;
241 vdec_msg.msgcode=VDEC_MSG_EVT_HW_ERROR;
242 vdec_msg.status_code=VDEC_S_SUCCESS;
244 if (omx->async_message_process(input,&vdec_msg) < 0) {
6049 struct vdec_msginfo *vdec_msg = NULL;
6058 vdec_msg = (struct vdec_msginfo *)message;
6062 switch (vdec_msg->msgcode) {
6065 omx->post_event ((unsigned)NULL, vdec_msg->status_code,\
6070 omx->post_event ((unsigned)NULL, vdec_msg->status_code,\
6075 omx->post_event ((unsigned)NULL, vdec_msg->status_code,\
6080 omx->post_event ((unsigned)NULL, vdec_msg->status_code,\
6085 omx->post_event ((unsigned)NULL, vdec_msg->status_code,\
6090 omx->post_event ((unsigned)NULL, vdec_msg->status_code,\
6094 omx->post_event ((unsigned)NULL, vdec_msg->status_code,\
6101 vdec_msg->msgdata.input_frame_clientdata; */
6103 v4l2_buf_ptr = (v4l2_buffer*)vdec_msg->msgdata.input_frame_clientdata;
6108 vdec_msg->status_code = VDEC_S_EFATAL;
6111 omx->post_event ((unsigned int)omxhdr,vdec_msg->status_code,
6118 *timestamp = vdec_msg->msgdata.output_frame.time_stamp;
6119 omx->post_event ((unsigned int)timestamp, vdec_msg->status_code,
6122 vdec_msg->msgdata.output_frame.time_stamp);
6128 v4l2_buf_ptr = (v4l2_buffer*)vdec_msg->msgdata.output_frame.client_data;
6131 omxhdr, vdec_msg->msgdata.output_frame.time_stamp,
6132 vdec_msg->msgdata.output_frame.pic_type);
6138 if ( vdec_msg->msgdata.output_frame.len <= omxhdr->nAllocLen) {
6139 omxhdr->nFilledLen = vdec_msg->msgdata.output_frame.len;
6140 omxhdr->nOffset = vdec_msg->msgdata.output_frame.offset;
6141 omxhdr->nTimeStamp = vdec_msg->msgdata.output_frame.time_stamp;
6151 vdec_msg->msgdata.output_frame.bufferaddr =
6154 vdec_msg->msgdata.output_frame.framesize.left)
6155 || ((unsigned)omx->rectangle.nTop != vdec_msg->msgdata.output_frame.framesize.top)
6156 || (omx->rectangle.nWidth != vdec_msg->msgdata.output_frame.framesize.right)
6157 || (omx->rectangle.nHeight != vdec_msg->msgdata.output_frame.framesize.bottom))) {
6158 omx->rectangle.nLeft = vdec_msg->msgdata.output_frame.framesize.left;
6159 omx->rectangle.nTop = vdec_msg->msgdata.output_frame.framesize.top;
6160 omx->rectangle.nWidth = vdec_msg->msgdata.output_frame.framesize.right;
6161 omx->rectangle.nHeight = vdec_msg->msgdata.output_frame.framesize.bottom;
6168 output_respbuf->len = vdec_msg->msgdata.output_frame.len;
6169 output_respbuf->offset = vdec_msg->msgdata.output_frame.offset;
6182 ((unsigned long)vdec_msg->msgdata.output_frame.bufferaddr +
6183 (unsigned long)vdec_msg->msgdata.output_frame.offset),
6184 vdec_msg->msgdata.output_frame.len);
6187 omx->post_event ((unsigned int)omxhdr, vdec_msg->status_code,
6189 } else if (vdec_msg->msgdata.output_frame.flags & OMX_BUFFERFLAG_EOS)
6190 omx->post_event ((unsigned int)NULL, vdec_msg->status_code,
6193 omx->post_event ((unsigned int)NULL, vdec_msg->status_code,
6215 omx->post_event ((unsigned)NULL, vdec_msg->status_code,\