mirror of
https://github.com/nyanmisaka/mpp.git
synced 2026-01-24 02:50:38 +01:00
[mpp_dec_cfg]: Add mpp_dec_cfg header
Change-Id: I98830f3e8466ffee0d3232a8bb44694cb46b8fff Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
This commit is contained in:
parent
570478924c
commit
a5afd38076
1 changed files with 56 additions and 0 deletions
56
mpp/inc/mpp_dec_cfg.h
Normal file
56
mpp/inc/mpp_dec_cfg.h
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
/*
|
||||
* Copyright 2020 Rockchip Electronics Co. LTD
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef __MPP_DEC_CFG_H__
|
||||
#define __MPP_DEC_CFG_H__
|
||||
|
||||
#include "mpp_frame.h"
|
||||
|
||||
typedef enum MppDecCfgChange_e {
|
||||
MPP_DEC_CFG_CHANGE_OUTPUT_FORMAT = (1 << 0),
|
||||
MPP_DEC_CFG_CHANGE_FAST_OUT = (1 << 1),
|
||||
MPP_DEC_CFG_CHANGE_FAST_PARSE = (1 << 2),
|
||||
MPP_DEC_CFG_CHANGE_SPLIT_PARSE = (1 << 3),
|
||||
MPP_DEC_CFG_CHANGE_INTERNAL_PTS = (1 << 4),
|
||||
MPP_DEC_CFG_CHANGE_ALL = (0xFFFFFFFF),
|
||||
} MppDecCfgChange;
|
||||
|
||||
typedef struct MppDecBaseCfg_t {
|
||||
RK_U64 change;
|
||||
|
||||
MppFrameFormat out_fmt;
|
||||
RK_U32 fast_out;
|
||||
RK_U32 fast_parse;
|
||||
RK_U32 split_parse;
|
||||
RK_U32 internal_pts;
|
||||
} MppDecBaseCfg;
|
||||
|
||||
typedef struct MppDecCfgSet_t {
|
||||
MppDecBaseCfg base;
|
||||
} MppDecCfgSet;
|
||||
|
||||
/*
|
||||
* MppDecCfgApi is the function set for configure MppDecCfgSet by name
|
||||
*/
|
||||
typedef struct MppDecCfgApi_t {
|
||||
const char *name;
|
||||
RK_S32 type_set;
|
||||
RK_S32 type_get;
|
||||
void *api_set;
|
||||
void *api_get;
|
||||
} MppDecCfgApi;
|
||||
|
||||
#endif /* __MPP_DEC_CFG_H__ */
|
||||
Loading…
Add table
Add a link
Reference in a new issue