Ejemplo n.º 1
1
static int fimc_m2m_dqbuf(struct file *file, void *fh,
			  struct v4l2_buffer *buf)
{
	struct fimc_ctx *ctx = fh_to_ctx(fh);

	return v4l2_m2m_dqbuf(file, ctx->m2m_ctx, buf);
}
Ejemplo n.º 2
0
int v4l2_m2m_ioctl_dqbuf(struct file *file, void *priv,
                         struct v4l2_buffer *buf)
{
    struct v4l2_fh *fh = file->private_data;

    return v4l2_m2m_dqbuf(file, fh->m2m_ctx, buf);
}
Ejemplo n.º 3
0
/*
 * msm_jpegdma_dqbuf - V4l2 ioctl dequeue buffer handler.
 * @file: Pointer to file struct.
 * @fh: V4l2 File handle.
 * @buf: Pointer to v4l2_buffer struct.
 */
static int msm_jpegdma_dqbuf(struct file *file,
	void *fh, struct v4l2_buffer *buf)
{
	struct jpegdma_ctx *ctx = msm_jpegdma_ctx_from_fh(fh);

	return v4l2_m2m_dqbuf(file, ctx->m2m_ctx, buf);
}
Ejemplo n.º 4
0
static int vidioc_venc_dqbuf(struct file *file, void *priv,
			     struct v4l2_buffer *buf)
{
	struct mtk_vcodec_ctx *ctx = fh_to_ctx(priv);

	if (ctx->state == MTK_STATE_ABORT) {
		mtk_v4l2_err("[%d] Call on QBUF after unrecoverable error",
				ctx->id);
		return -EIO;
	}

	return v4l2_m2m_dqbuf(file, ctx->m2m_ctx, buf);
}
Ejemplo n.º 5
0
static int jpeg_dec_m2m_dqbuf(struct file *file, void *priv,
			   struct v4l2_buffer *buf)
{
	struct jpeg_ctx *ctx = priv;
	return v4l2_m2m_dqbuf(file, ctx->m2m_ctx, buf);
}
Ejemplo n.º 6
0
static int vidioc_dqbuf(struct file *file, void *priv, struct v4l2_buffer *buf)
{
    struct g2d_ctx *ctx = priv;
    return v4l2_m2m_dqbuf(file, ctx->m2m_ctx, buf);
}