Lines Matching refs:src_buf

1067 	struct vb2_v4l2_buffer *src_buf, *dst_buf;  in coda9_jpeg_prepare_encode()  local
1077 src_buf = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in coda9_jpeg_prepare_encode()
1081 if (vb2_get_plane_payload(&src_buf->vb2_buf, 0) == 0) in coda9_jpeg_prepare_encode()
1082 vb2_set_plane_payload(&src_buf->vb2_buf, 0, in coda9_jpeg_prepare_encode()
1083 vb2_plane_size(&src_buf->vb2_buf, 0)); in coda9_jpeg_prepare_encode()
1085 src_buf->sequence = ctx->osequence; in coda9_jpeg_prepare_encode()
1089 src_buf->flags |= V4L2_BUF_FLAG_KEYFRAME; in coda9_jpeg_prepare_encode()
1090 src_buf->flags &= ~V4L2_BUF_FLAG_PFRAME; in coda9_jpeg_prepare_encode()
1184 coda_write_base(ctx, q_data_src, src_buf, CODA9_GDI_INFO_BASE_Y); in coda9_jpeg_prepare_encode()
1193 trace_coda_jpeg_run(ctx, src_buf); in coda9_jpeg_prepare_encode()
1202 struct vb2_v4l2_buffer *src_buf, *dst_buf; in coda9_jpeg_finish_encode() local
1218 src_buf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in coda9_jpeg_finish_encode()
1239 dst_buf->flags |= src_buf->flags & V4L2_BUF_FLAG_LAST; in coda9_jpeg_finish_encode()
1241 v4l2_m2m_buf_copy_metadata(src_buf, dst_buf, false); in coda9_jpeg_finish_encode()
1243 v4l2_m2m_buf_done(src_buf, VB2_BUF_STATE_DONE); in coda9_jpeg_finish_encode()
1310 struct vb2_v4l2_buffer *src_buf, *dst_buf; in coda9_jpeg_prepare_decode() local
1313 src_buf = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in coda9_jpeg_prepare_decode()
1319 if (vb2_get_plane_payload(&src_buf->vb2_buf, 0) == 0) in coda9_jpeg_prepare_decode()
1320 vb2_set_plane_payload(&src_buf->vb2_buf, 0, in coda9_jpeg_prepare_decode()
1321 vb2_plane_size(&src_buf->vb2_buf, 0)); in coda9_jpeg_prepare_decode()
1329 ret = coda_jpeg_decode_header(ctx, &src_buf->vb2_buf); in coda9_jpeg_prepare_decode()
1334 src_buf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in coda9_jpeg_prepare_decode()
1336 v4l2_m2m_buf_done(src_buf, VB2_BUF_STATE_DONE); in coda9_jpeg_prepare_decode()
1387 coda9_jpeg_dec_bbc_gbu_setup(ctx, &src_buf->vb2_buf, in coda9_jpeg_prepare_decode()
1419 trace_coda_jpeg_run(ctx, src_buf); in coda9_jpeg_prepare_decode()
1429 struct vb2_v4l2_buffer *dst_buf, *src_buf; in coda9_jpeg_finish_decode() local
1445 src_buf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in coda9_jpeg_finish_decode()
1453 dst_buf->flags |= src_buf->flags & V4L2_BUF_FLAG_LAST; in coda9_jpeg_finish_decode()
1455 v4l2_m2m_buf_copy_metadata(src_buf, dst_buf, false); in coda9_jpeg_finish_decode()
1460 v4l2_m2m_buf_done(src_buf, VB2_BUF_STATE_DONE); in coda9_jpeg_finish_decode()