mirror of
https://github.com/nyanmisaka/mpp.git
synced 2026-01-24 03:30:40 +01:00
feat[mpp_sys_cfg_st]: Provide packaging for use on products
Change-Id: I41bbd28f4aabce5ba3735a47e65ccb71997262a2 Signed-off-by: Hongjin Li <vic.hong@rock-chips.com>
This commit is contained in:
parent
5931c416d8
commit
07bef12867
5 changed files with 316 additions and 0 deletions
75
inc/mpp_sys_cfg_st.h
Normal file
75
inc/mpp_sys_cfg_st.h
Normal file
|
|
@ -0,0 +1,75 @@
|
|||
/* SPDX-License-Identifier: Apache-2.0 OR MIT */
|
||||
/*
|
||||
* Copyright (c) 2024 Rockchip Electronics Co., Ltd.
|
||||
*/
|
||||
|
||||
#ifndef __MPP_SYS_CFG_ST_H__
|
||||
#define __MPP_SYS_CFG_ST_H__
|
||||
|
||||
#include "rk_type.h"
|
||||
#include "mpp_err.h"
|
||||
|
||||
#include "mpp_frame.h"
|
||||
|
||||
typedef struct MppSysCfgStHStrd_t {
|
||||
/* input args start */
|
||||
MppCodingType type;
|
||||
RK_U32 fmt_fbc;
|
||||
RK_U32 width;
|
||||
|
||||
/* output args start */
|
||||
RK_U32 h_stride_by_pixel;
|
||||
} MppSysCfgStHStrd;
|
||||
|
||||
typedef struct MppSysCfgStHByteStrd_t {
|
||||
/* input args start */
|
||||
MppCodingType type;
|
||||
MppFrameFormat fmt_codec;
|
||||
RK_U32 fmt_fbc;
|
||||
RK_U32 width;
|
||||
|
||||
/* output args start */
|
||||
RK_U32 h_stride_by_byte;
|
||||
} MppSysCfgStHByteStrd;
|
||||
|
||||
typedef struct MppSysCfgStVStrd_t {
|
||||
/* input args start */
|
||||
MppCodingType type;
|
||||
RK_U32 fmt_fbc;
|
||||
RK_U32 height;
|
||||
|
||||
/* output args start */
|
||||
RK_U32 v_stride;
|
||||
} MppSysCfgStVStrd;
|
||||
|
||||
typedef struct MppSysCfgStSize_t {
|
||||
/* input args start */
|
||||
MppCodingType type;
|
||||
MppFrameFormat fmt_codec;
|
||||
RK_U32 fmt_fbc;
|
||||
RK_U32 width;
|
||||
RK_U32 height;
|
||||
|
||||
/* output args start */
|
||||
RK_U32 h_stride_by_pixel;
|
||||
RK_U32 h_stride_by_byte;
|
||||
RK_U32 v_stride;
|
||||
RK_U32 size_total;
|
||||
RK_U32 size_fbc_hdr;
|
||||
RK_U32 size_fbc_bdy;
|
||||
} MppSysCfgStSize;
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
MPP_RET mpp_sys_cfg_st_get_h_stride(MppSysCfgStHStrd *h_stride_cfg);
|
||||
MPP_RET mpp_sys_cfg_st_get_byte_stride(MppSysCfgStHByteStrd *byte_stride_cfg);
|
||||
MPP_RET mpp_sys_cfg_st_get_v_stride(MppSysCfgStVStrd *v_stride_cfg);
|
||||
MPP_RET mpp_sys_cfg_st_get_size(MppSysCfgStSize *size_cfg);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* MPP_SYS_CFGI_H__ */
|
||||
Loading…
Add table
Add a link
Reference in a new issue