unsigned long remained_size;
dma_addr_t y_addr_for_pb;
- enum v4l2_memory dst_memtype;
int sei_parse;
int cr_left, cr_right, cr_top, cr_bot;
if (vq->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) {
mfc_debug(2, "[BUFINFO] ctx[%d] add src index:%d, addr: 0x%08llx\n",
ctx->num, vb->index, buf->addr[0][0]);
- if (dec->dst_memtype == V4L2_MEMORY_DMABUF &&
+ if (vb->memory == V4L2_MEMORY_DMABUF &&
ctx->state < MFCINST_HEAD_PARSED && !ctx->is_drm)
stream_vir = vb2_plane_vaddr(vb, 0);
ctx->num, vb->index, i, buf->addr[0][i]);
mfc_store_dpb(ctx, vb);
- if ((dec->dst_memtype == V4L2_MEMORY_USERPTR || dec->dst_memtype == V4L2_MEMORY_DMABUF) &&
+ if ((vb->memory == V4L2_MEMORY_USERPTR || vb->memory == V4L2_MEMORY_DMABUF) &&
mfc_is_queue_count_same(&ctx->buf_queue_lock,
&ctx->dst_buf_queue, dec->total_dpb_count))
ctx->capture_state = QUEUE_BUFS_MMAPED;
if (src_mb) {
stream_vir = src_mb->vir_addr;
strm_size = src_mb->vb.vb2_buf.planes[0].bytesused;
- if (strm_size > 32)
- strm_size = 32;
+ if (strm_size > 640)
+ strm_size = 640;
if (stream_vir && strm_size)
print_hex_dump(KERN_ERR, "No header: ",
- DUMP_PREFIX_ADDRESS, strm_size, 0,
+ DUMP_PREFIX_ADDRESS, 32, 4,
stream_vir, strm_size, false);
vb2_buffer_done(&src_mb->vb.vb2_buf, VB2_BUF_STATE_DONE);