Vinay Kalia | 3766b1e | 2012-01-11 18:58:41 -0800 | [diff] [blame] | 1 | /* 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 | |
| 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_ctrl(void *instance, struct v4l2_control *a); |
| 26 | int msm_vdec_g_ctrl(void *instance, struct v4l2_control *a); |
| 27 | int msm_vdec_reqbufs(void *instance, struct v4l2_requestbuffers *b); |
| 28 | int msm_vdec_prepare_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 | struct vb2_ops *msm_vdec_get_vb2q_ops(void); |
| 34 | |
| 35 | #endif |