-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
media: venus: hfi_plat: Add hfi platform buffers ops
>From Venus v6 and beyond the buffer size and count have to be calculated in the v4l2 driver instead of getting them from firmware. Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
- Loading branch information
Stanimir Varbanov
authored and
Mauro Carvalho Chehab
committed
Jan 13, 2021
1 parent
869d77e
commit 05ec881
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters