Lines Matching refs:vdec_msg
163 struct vdec_msginfo vdec_msg;
169 vdec_msg.msgcode=VDEC_MSG_RESP_OUTPUT_BUFFER_DONE;
170 vdec_msg.status_code=VDEC_S_SUCCESS;
171 vdec_msg.msgdata.output_frame.client_data=(void*)&v4l2_buf;
172 vdec_msg.msgdata.output_frame.len=plane[0].bytesused;
173 vdec_msg.msgdata.output_frame.bufferaddr=(void*)plane[0].m.userptr;
174 vdec_msg.msgdata.output_frame.time_stamp= ((uint64_t)v4l2_buf.timestamp.tv_sec * (uint64_t)1000000) +
176 if (vdec_msg.msgdata.output_frame.len) {
177 vdec_msg.msgdata.output_frame.framesize.left = plane[0].reserved[2];
178 vdec_msg.msgdata.output_frame.framesize.top = plane[0].reserved[3];
179 vdec_msg.msgdata.output_frame.framesize.right = plane[0].reserved[4];
180 vdec_msg.msgdata.output_frame.framesize.bottom = plane[0].reserved[5];
182 if (omx->async_message_process(input,&vdec_msg) < 0) {
189 struct vdec_msginfo vdec_msg;
195 vdec_msg.msgcode=VDEC_MSG_RESP_INPUT_BUFFER_DONE;
196 vdec_msg.status_code=VDEC_S_SUCCESS;
197 vdec_msg.msgdata.input_frame_clientdata=(void*)&v4l2_buf;
198 if (omx->async_message_process(input,&vdec_msg) < 0) {
207 struct vdec_msginfo vdec_msg;
208 vdec_msg.msgcode=VDEC_MSG_EVT_CONFIG_CHANGED;
209 vdec_msg.status_code=VDEC_S_SUCCESS;
211 if (omx->async_message_process(input,&vdec_msg) < 0) {
216 struct vdec_msginfo vdec_msg;
217 vdec_msg.msgcode=VDEC_MSG_EVT_INFO_CONFIG_CHANGED;
218 vdec_msg.status_code=VDEC_S_SUCCESS;
220 if (omx->async_message_process(input,&vdec_msg) < 0) {
225 struct vdec_msginfo vdec_msg;
226 vdec_msg.msgcode=VDEC_MSG_RESP_FLUSH_INPUT_DONE;
227 vdec_msg.status_code=VDEC_S_SUCCESS;
229 if (omx->async_message_process(input,&vdec_msg) < 0) {
233 vdec_msg.msgcode=VDEC_MSG_RESP_FLUSH_OUTPUT_DONE;
234 vdec_msg.status_code=VDEC_S_SUCCESS;
236 if (omx->async_message_process(input,&vdec_msg) < 0) {
244 struct vdec_msginfo vdec_msg;
245 vdec_msg.msgcode=VDEC_MSG_EVT_HW_ERROR;
246 vdec_msg.status_code=VDEC_S_SUCCESS;
248 if (omx->async_message_process(input,&vdec_msg) < 0) {
6085 struct vdec_msginfo *vdec_msg = NULL;
6094 vdec_msg = (struct vdec_msginfo *)message;
6098 switch (vdec_msg->msgcode) {
6101 omx->post_event ((unsigned)NULL, vdec_msg->status_code,\
6106 omx->post_event ((unsigned)NULL, vdec_msg->status_code,\
6111 omx->post_event ((unsigned)NULL, vdec_msg->status_code,\
6116 omx->post_event ((unsigned)NULL, vdec_msg->status_code,\
6121 omx->post_event ((unsigned)NULL, vdec_msg->status_code,\
6126 omx->post_event ((unsigned)NULL, vdec_msg->status_code,\
6130 omx->post_event ((unsigned)NULL, vdec_msg->status_code,\
6137 vdec_msg->msgdata.input_frame_clientdata; */
6139 v4l2_buf_ptr = (v4l2_buffer*)vdec_msg->msgdata.input_frame_clientdata;
6144 vdec_msg->status_code = VDEC_S_EFATAL;
6147 omx->post_event ((unsigned int)omxhdr,vdec_msg->status_code,
6154 *timestamp = vdec_msg->msgdata.output_frame.time_stamp;
6155 omx->post_event ((unsigned int)timestamp, vdec_msg->status_code,
6158 vdec_msg->msgdata.output_frame.time_stamp);
6164 v4l2_buf_ptr = (v4l2_buffer*)vdec_msg->msgdata.output_frame.client_data;
6167 omxhdr, vdec_msg->msgdata.output_frame.time_stamp,
6168 vdec_msg->msgdata.output_frame.pic_type);
6174 if ( vdec_msg->msgdata.output_frame.len <= omxhdr->nAllocLen) {
6175 omxhdr->nFilledLen = vdec_msg->msgdata.output_frame.len;
6176 omxhdr->nOffset = vdec_msg->msgdata.output_frame.offset;
6177 omxhdr->nTimeStamp = vdec_msg->msgdata.output_frame.time_stamp;
6187 vdec_msg->msgdata.output_frame.bufferaddr =
6190 vdec_msg->msgdata.output_frame.framesize.left)
6191 || ((unsigned)omx->rectangle.nTop != vdec_msg->msgdata.output_frame.framesize.top)
6192 || (omx->rectangle.nWidth != vdec_msg->msgdata.output_frame.framesize.right)
6193 || (omx->rectangle.nHeight != vdec_msg->msgdata.output_frame.framesize.bottom))) {
6194 omx->rectangle.nLeft = vdec_msg->msgdata.output_frame.framesize.left;
6195 omx->rectangle.nTop = vdec_msg->msgdata.output_frame.framesize.top;
6196 omx->rectangle.nWidth = vdec_msg->msgdata.output_frame.framesize.right;
6197 omx->rectangle.nHeight = vdec_msg->msgdata.output_frame.framesize.bottom;
6204 output_respbuf->len = vdec_msg->msgdata.output_frame.len;
6205 output_respbuf->offset = vdec_msg->msgdata.output_frame.offset;
6218 ((unsigned long)vdec_msg->msgdata.output_frame.bufferaddr +
6219 (unsigned long)vdec_msg->msgdata.output_frame.offset),
6220 vdec_msg->msgdata.output_frame.len);
6223 omx->post_event ((unsigned int)omxhdr, vdec_msg->status_code,
6225 } else if (vdec_msg->msgdata.output_frame.flags & OMX_BUFFERFLAG_EOS)
6226 omx->post_event ((unsigned int)NULL, vdec_msg->status_code,
6229 omx->post_event ((unsigned int)NULL, vdec_msg->status_code,
6251 omx->post_event ((unsigned)NULL, vdec_msg->status_code,\