5d27a9f23c57287a8d42f259fd25cc57c0fb8c9b
[firefly-linux-kernel-4.4.55.git] / drivers / media / platform / rockchip-vpu / rockchip_vpu_dec.h
1 /*
2  * Rockchip VPU codec driver
3  *
4  * Copyright (C) 2014 Rockchip Electronics Co., Ltd.
5  *      Hertz Wong <hertz.wong@rock-chips.com>
6  *
7  * Copyright (C) 2014 Google, Inc.
8  *      Tomasz Figa <tfiga@chromium.org>
9  *
10  * Based on s5p-mfc driver by Samsung Electronics Co., Ltd.
11  *
12  * Copyright (C) 2011 Samsung Electronics Co., Ltd.
13  *
14  * This software is licensed under the terms of the GNU General Public
15  * License version 2, as published by the Free Software Foundation, and
16  * may be copied, distributed, and modified under those terms.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21  * GNU General Public License for more details.
22  */
23
24 #ifndef ROCKCHIP_VPU_DEC_H_
25 #define ROCKCHIP_VPU_DEC_H_
26
27 struct vb2_ops *get_dec_queue_ops(void);
28 const struct v4l2_ioctl_ops *get_dec_v4l2_ioctl_ops(void);
29 struct rk3288_vpu_fmt *get_dec_def_fmt(bool src);
30 int rk3288_vpu_dec_init(struct rk3288_vpu_ctx *ctx);
31 void rk3288_vpu_dec_exit(struct rk3288_vpu_ctx *ctx);
32
33 #endif /* ROCKCHIP_VPU_DEC_H_ */