1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Raspberry Pi HEVC driver
5 * Copyright (C) 2020 Raspberry Pi (Trading) Ltd
7 * Based on the Cedrus VPU driver, that is:
9 * Copyright (C) 2016 Florent Revest <florent.revest@free-electrons.com>
10 * Copyright (C) 2018 Paul Kocialkowski <paul.kocialkowski@bootlin.com>
11 * Copyright (C) 2018 Bootlin
14 #ifndef _RPIVID_VIDEO_H_
15 #define _RPIVID_VIDEO_H_
17 struct rpivid_format {
20 unsigned int capabilities;
23 extern const struct v4l2_ioctl_ops rpivid_ioctl_ops;
25 int rpivid_queue_init(void *priv, struct vb2_queue *src_vq,
26 struct vb2_queue *dst_vq);
28 size_t rpivid_bit_buf_size(unsigned int w, unsigned int h, unsigned int bits_minus8);
29 size_t rpivid_round_up_size(const size_t x);
31 void rpivid_prepare_src_format(struct v4l2_pix_format_mplane *pix_fmt);