blob: 065f02ae26a14a6d169e2236703b402de233b627 [file] [log] [blame]
Srinu Gorlecf8c6752018-01-19 18:36:13 +05301/* Copyright (c) 2012, 2015, 2018 The Linux Foundation. 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_ext_ctrl(void *instance, struct v4l2_ext_controls *a);
26int msm_vdec_reqbufs(void *instance, struct v4l2_requestbuffers *b);
27int msm_vdec_prepare_buf(struct msm_vidc_inst *inst, struct v4l2_buffer *b);
28int msm_vdec_release_buf(struct msm_vidc_inst *inst, struct v4l2_buffer *b);
29int msm_vdec_qbuf(struct msm_vidc_inst *inst, struct v4l2_buffer *b);
30int msm_vdec_dqbuf(struct msm_vidc_inst *inst, struct v4l2_buffer *b);
31int msm_vdec_streamon(struct msm_vidc_inst *inst, enum v4l2_buf_type i);
32int msm_vdec_streamoff(struct msm_vidc_inst *inst, enum v4l2_buf_type i);
33int msm_vdec_cmd(struct msm_vidc_inst *inst, struct v4l2_decoder_cmd *dec);
34int msm_vdec_s_parm(struct msm_vidc_inst *inst, struct v4l2_streamparm *a);
35struct vb2_ops *msm_vdec_get_vb2q_ops(void);
36
37#endif