summaryrefslogtreecommitdiff
path: root/drivers/media/platform/qcom/venus/hfi_plat_bufs.h
blob: 6dfecaf5b0bdd2fcd721cdbe9cf607c5475b61dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Copyright (c) 2020, The Linux Foundation. All rights reserved.
 */

#ifndef __HFI_PLATFORM_BUFFERS_H__
#define __HFI_PLATFORM_BUFFERS_H__

#include <linux/types.h>
#include "hfi_helper.h"

struct hfi_plat_buffers_params {
	u32 width;
	u32 height;
	u32 codec;
	u32 hfi_color_fmt;
	enum hfi_version version;
	u32 num_vpp_pipes;
	union {
		struct {
			u32 max_mbs_per_frame;
			u32 buffer_size_limit;
			bool is_secondary_output;
			bool is_interlaced;
		} dec;
		struct {
			u32 work_mode;
			u32 rc_type;
			u32 num_b_frames;
			bool is_tenbit;
		} enc;
	};
};

#endif