Srinu Gorle | cf8c675 | 2018-01-19 18:36:13 +0530 | [diff] [blame] | 1 | /* 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 | |
| 19 | int msm_vdec_inst_init(struct msm_vidc_inst *inst); |
| 20 | int msm_vdec_ctrl_init(struct msm_vidc_inst *inst); |
| 21 | int msm_vdec_querycap(void *instance, struct v4l2_capability *cap); |
| 22 | int msm_vdec_enum_fmt(void *instance, struct v4l2_fmtdesc *f); |
| 23 | int msm_vdec_s_fmt(void *instance, struct v4l2_format *f); |
| 24 | int msm_vdec_g_fmt(void *instance, struct v4l2_format *f); |
| 25 | int msm_vdec_s_ext_ctrl(void *instance, struct v4l2_ext_controls *a); |
| 26 | int msm_vdec_reqbufs(void *instance, struct v4l2_requestbuffers *b); |
| 27 | int msm_vdec_prepare_buf(struct msm_vidc_inst *inst, struct v4l2_buffer *b); |
| 28 | int msm_vdec_release_buf(struct msm_vidc_inst *inst, struct v4l2_buffer *b); |
| 29 | int msm_vdec_qbuf(struct msm_vidc_inst *inst, struct v4l2_buffer *b); |
| 30 | int msm_vdec_dqbuf(struct msm_vidc_inst *inst, struct v4l2_buffer *b); |
| 31 | int msm_vdec_streamon(struct msm_vidc_inst *inst, enum v4l2_buf_type i); |
| 32 | int msm_vdec_streamoff(struct msm_vidc_inst *inst, enum v4l2_buf_type i); |
| 33 | int msm_vdec_cmd(struct msm_vidc_inst *inst, struct v4l2_decoder_cmd *dec); |
| 34 | int msm_vdec_s_parm(struct msm_vidc_inst *inst, struct v4l2_streamparm *a); |
| 35 | struct vb2_ops *msm_vdec_get_vb2q_ops(void); |
| 36 | |
| 37 | #endif |