Lines Matching refs:v4l2_buf_ptr
8381 struct v4l2_buffer *v4l2_buf_ptr = NULL;
8443 v4l2_buf_ptr = (v4l2_buffer*)vdec_msg->msgdata.input_frame_clientdata;
8444 if (omx->m_inp_mem_ptr == NULL || v4l2_buf_ptr == NULL ||
8445 v4l2_buf_ptr->index >= omx->drv_ctx.ip_buf.actualcount) {
8451 omxhdr = omx->m_inp_mem_ptr + v4l2_buf_ptr->index;
8453 if (v4l2_buf_ptr->flags & V4L2_QCOM_BUF_INPUT_UNSUPPORTED) {
8458 if (v4l2_buf_ptr->flags & V4L2_QCOM_BUF_DATA_CORRUPT) {
8472 if (v4l2_buf_ptr->flags & V4L2_BUF_FLAG_KEYFRAME ||
8473 v4l2_buf_ptr->flags & V4L2_QCOM_BUF_FLAG_IDRFRAME) {
8493 v4l2_buf_ptr = (v4l2_buffer*)vdec_msg->msgdata.output_frame.client_data;
8495 if (v4l2_buf_ptr == NULL || omx->m_out_mem_ptr == NULL ||
8496 v4l2_buf_ptr->index >= omx->drv_ctx.op_buf.actualcount) {
8502 omxhdr = omx->m_out_mem_ptr + v4l2_buf_ptr->index;
8506 vdec_msg->msgdata.output_frame.pic_type, v4l2_buf_ptr->flags,
8524 if (v4l2_buf_ptr->flags & V4L2_QCOM_BUF_FLAG_EOS) {
8531 if (v4l2_buf_ptr->flags & V4L2_BUF_FLAG_KEYFRAME || v4l2_buf_ptr->flags & V4L2_QCOM_BUF_FLAG_IDRFRAME) {
8536 if (v4l2_buf_ptr->flags & V4L2_QCOM_BUF_FLAG_EOSEQ) {
8539 if (v4l2_buf_ptr->flags & V4L2_QCOM_BUF_FLAG_DECODEONLY) {
8543 if (v4l2_buf_ptr->flags & V4L2_MSM_BUF_FLAG_MBAFF) {
8547 if (v4l2_buf_ptr->flags & V4L2_QCOM_BUF_FLAG_READONLY) {
8550 omx->drv_ctx.ptr_outputbuffer[v4l2_buf_ptr->index].pmem_fd);
8553 if (omxhdr && (v4l2_buf_ptr->flags & V4L2_QCOM_BUF_DROP_FRAME) &&
8555 !(v4l2_buf_ptr->flags & V4L2_QCOM_BUF_FLAG_DECODEONLY) &&
8556 !(v4l2_buf_ptr->flags & V4L2_QCOM_BUF_FLAG_EOS)) {
8557 unsigned int index = v4l2_buf_ptr->index;
8559 struct v4l2_plane *plane = v4l2_buf_ptr->m.planes;
8571 v4l2_buf_ptr->flags = 0x0;
8579 plane[extra_idx].reserved[1] = v4l2_buf_ptr->index * omx->drv_ctx.extradata_info.buffer_size;
8588 if(ioctl(omx->drv_ctx.video_driver_fd, VIDIOC_QBUF, v4l2_buf_ptr)) {
8589 DEBUG_PRINT_ERROR("Failed to queue buffer back to driver: %d, %d, %d", v4l2_buf_ptr->length, v4l2_buf_ptr->m.planes[0].reserved[0], v4l2_buf_ptr->m.planes[1].reserved[0]);
8594 if (v4l2_buf_ptr->flags & V4L2_QCOM_BUF_DATA_CORRUPT) {
8598 omx->drv_ctx.ptr_outputbuffer[v4l2_buf_ptr->index].bufferaddr;
8662 if (v4l2_buf_ptr->flags & V4L2_BUF_FLAG_KEYFRAME) {
8665 if (v4l2_buf_ptr->flags & V4L2_BUF_FLAG_PFRAME) {
8668 if (v4l2_buf_ptr->flags & V4L2_BUF_FLAG_BFRAME) {