blob: 1242fb47726c8b8de59dfe6fbb2d9f4d9cde099b [file] [log] [blame]
Vinay Kalia3766b1e2012-01-11 18:58:41 -08001/* Copyright (c) 2012, Code Aurora Forum. All rights reserved.
2 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 *
12 */
13#ifndef _MSM_VDEC_H_
14#define _MSM_VDEC_H_
15
16#include <media/msm_vidc.h>
17#include "msm_vidc_internal.h"
18
19int msm_vdec_inst_init(struct msm_vidc_inst *inst);
20int msm_vdec_ctrl_init(struct msm_vidc_inst *inst);
21int msm_vdec_querycap(void *instance, struct v4l2_capability *cap);
22int msm_vdec_enum_fmt(void *instance, struct v4l2_fmtdesc *f);
23int msm_vdec_s_fmt(void *instance, struct v4l2_format *f);
24int msm_vdec_g_fmt(void *instance, struct v4l2_format *f);
25int msm_vdec_s_ctrl(void *instance, struct v4l2_control *a);
26int msm_vdec_g_ctrl(void *instance, struct v4l2_control *a);
27int msm_vdec_reqbufs(void *instance, struct v4l2_requestbuffers *b);
28int msm_vdec_prepare_buf(struct msm_vidc_inst *inst, struct v4l2_buffer *b);
Praneeth Paladuguf2acb852012-05-07 17:44:53 -070029int msm_vdec_release_buf(struct msm_vidc_inst *inst, struct v4l2_buffer *b);
Vinay Kalia3766b1e2012-01-11 18:58:41 -080030int msm_vdec_qbuf(struct msm_vidc_inst *inst, struct v4l2_buffer *b);
31int msm_vdec_dqbuf(struct msm_vidc_inst *inst, struct v4l2_buffer *b);
32int msm_vdec_streamon(struct msm_vidc_inst *inst, enum v4l2_buf_type i);
33int msm_vdec_streamoff(struct msm_vidc_inst *inst, enum v4l2_buf_type i);
34struct vb2_ops *msm_vdec_get_vb2q_ops(void);
35
36#endif