Lines Matching refs:src_buf
936 struct vb2_v4l2_buffer *src_buf, *dst_buf;
965 while ((src_buf = v4l2_m2m_src_buf_remove(ctx->m2m_ctx))) {
966 if (src_buf != &ctx->empty_flush_buf.vb)
967 v4l2_m2m_buf_done(src_buf, VB2_BUF_STATE_ERROR);
1022 struct vb2_v4l2_buffer *src_buf, *dst_buf;
1052 src_buf = v4l2_m2m_next_src_buf(ctx->m2m_ctx);
1053 if (src_buf) {
1054 dst_buf->vb2_buf.timestamp = src_buf->vb2_buf.timestamp;
1055 dst_buf->timecode = src_buf->timecode;
1142 struct vb2_v4l2_buffer *src_buf, *dst_buf;
1158 src_buf = v4l2_m2m_src_buf_remove(ctx->m2m_ctx);
1165 if (src_buf == &ctx->empty_flush_buf.vb) {
1174 for (i = 0; i < src_buf->vb2_buf.num_planes ; i++) {
1176 vb2_dma_contig_plane_dma_addr(&src_buf->vb2_buf, i);
1178 (size_t)src_buf->vb2_buf.planes[i].length;
1193 dst_buf->vb2_buf.timestamp = src_buf->vb2_buf.timestamp;
1194 dst_buf->timecode = src_buf->timecode;
1200 v4l2_m2m_buf_done(src_buf, VB2_BUF_STATE_ERROR);
1205 v4l2_m2m_buf_done(src_buf, VB2_BUF_STATE_DONE);
1214 mtk_v4l2_venc_dbg(1, ctx, "<=== src_buf[%d] dst_buf[%d] venc_if_encode ret=%d Size=%u===>",
1215 src_buf->vb2_buf.index, dst_buf->vb2_buf.index, ret, enc_result.bs_size);