📄 mv_decl.h
字号:
/*==========================================================================*/
/* (Copyright (C) 2003 Koninklijke Philips Electronics N.V. */
/* All rights reserved. */
/* This source code and any compilation or derivative thereof is the */
/* proprietary information of Koninklijke Philips Electronics N.V. */
/* and is confidential in nature. */
/* Under no circumstances is this software to be exposed to or placed */
/* under an Open Source License of any type without the expressed */
/* written permission of Koninklijke Philips Electronics N.V. */
/*==========================================================================*/
/*==========================================================================*/
/*
INCLUDE_FILE: MV_DECL.H
PACKAGE: DECODING
COMPONENT: MPEG VIDEO
(C) 1998: Philips Semiconductors
*/
/*==========================================================================*/
#ifndef _MV_DECL_INCLUDED_
#define _MV_DECL_INCLUDED_
#ifdef __cplusplus
extern "C" {
#endif
/*==========================================================================*/
/* I N C L U D E S */
/*==========================================================================*/
#include "tmosal.h"
#include "mv_dec.h"
/*==========================================================================*/
/* G L O B A L S Y M B O L D E F I N I T I O N S */
/*==========================================================================*/
/*MDP=======================================================================*/
/*
ITEM NAME: MV_DEC_BUFFER_NUMBER_ONE_FULL_SIZE_PICTURE
PACKAGE: MV_DEC
DESCRIPTION:
This is the biggest picture size in buffer number stored in a Full
Frame Store in SDRAM.
DEFINITION:
*/
#define MV_DEC_BUFFER_NUMBER_ONE_FULL_SIZE_PICTURE 36
/*EMP=======================================================================*/
/*MDP=======================================================================*/
/*
ITEM NAME: MV_DEC_MAX_PICTURE_SIZE
PACKAGE: MV_DEC
DESCRIPTION:
This is the biggest picture size that the video decoder will
have to handle. The corresponding buffer size will be request
by the video_decoder.
For standard frame_rate, MP@ML insure the maximum following size.
720*576 for a 25frames/sec frame rate.
720*480 for a 30frames/sec frame rate.
DEFINITION:
*/
#define MV_DEC_MAX_HOR_PICTURE_SIZE 720
#define MV_DEC_MAX_VER_PICTURE_SIZE 576
/*EMP=======================================================================*/
/*MDP=======================================================================*/
/*
ITEM NAME: MV_DEC_STC_USED
PACKAGE: DEC
DESCRIPTION: Enum for Stc currently used for decoding
DEFINITION:
*/
typedef enum
{
MV_DEC_STC_A = 0,
MV_DEC_STC_B
} MV_DEC_STC_USED;
/*EMP=======================================================================*/
/*MDP=======================================================================*/
/*
ITEM NAME: MV_DEC_SETUP_BUFFER_NUMBER
PACKAGE: DEC
DESCRIPTION: Enable/disable .
DEFINITION:
*/
typedef enum
{
MV_DEC_SETUP_BUFFER_NUMBER_60HZ = 29,
MV_DEC_SETUP_BUFFER_NUMBER_50HZ_3_0FS = 35,
MV_DEC_SETUP_BUFFER_NUMBER_50HZ_2_6FS = 21
} MV_DEC_SETUP_BUFFER_NUMBER;
/*EMP=======================================================================*/
/*MDP=======================================================================*/
/*
ITEM NAME: NB_TICKS_VS_IN_50HZ
PACKAGE: Video Decoding
DESCRIPTION: nb of ticks between 2 Vs in 50 Hz standard
DEFINITION:
*/
#define NB_TICKS_VS_IN_50HZ 1800
/*EMP=======================================================================*/
/*MDP=======================================================================*/
/*
ITEM NAME: NB_TICKS_VS_IN_60HZ
PACKAGE: Video Decoding
DESCRIPTION: nb of ticks between 2 Vs in 60 Hz standard
DEFINITION:
*/
#define NB_TICKS_VS_IN_60HZ 1500
/*EMP=======================================================================*/
/*MDP=======================================================================*/
/*
ITEM NAME: SDRAM_ROW_SIZE
PACKAGE: Video Decoding
DESCRIPTION:
DEFINITION:
*/
#define SDRAM_ROW_SIZE 1024 /* (256 * 32 / 8 ) */
/*EMP=======================================================================*/
/*MDP=======================================================================*/
/*
ITEM NAME: MV_DEC_PES_HEADER
PACKAGE: MV_DEC
DESCRIPTION: MPEG2 code used in PES header.
DEFINITION:
*/
/* PES header lenght in bytes */
#define MVD_DEC_PES_HEADER_SIZE 12
/* PES header start code value */
#define MVD_DEC_PES_HEADER_START_CODE 0x000001E0
/* following of the PES header */
#define MVD_DEC_PES_HEADER_MPG1_2 0x0000FFFF
#define MVD_DEC_PES_HEADER_MPG1_3 0xFFFFFF0F
#define MVD_DEC_PES_HEADER_MPG2_2 0x00008000
#define MVD_DEC_PES_HEADER_MPG2_3 0x03FFFFFF
/*EMP=======================================================================*/
/*MDP=======================================================================*/
/*
ITEM NAME: MV_DEC_SEQ_HEADER
PACKAGE: MV_DEC
DESCRIPTION: MPEG2 code used in SEQ header.
DEFINITION:
*/
/* SEQ header lenght in bytes */
#define MVD_DEC_SEQ_HEADER_SIZE 12
/* SEQ header start code value */
#define MVD_DEC_SEQ_HEADER_START_CODE 0x000001B3
#define MVD_DEC_SEQ_HEADER_3 0x00000FF8
/*EMP=======================================================================*/
/*MDP=======================================================================*/
/*
ITEM NAME: MV_DEC_SEQ_EXT
PACKAGE: MV_DEC
DESCRIPTION: MPEG2 code used in SEQ extension.
DEFINITION:
*/
/* SEQ header lenght in bytes */
#define MVD_DEC_SEQ_EXT_SIZE 12
/* SEQ header start code value */
#define MVD_DEC_SEQ_EXT_START_CODE 0x000001B5
/* following of the Sequence extension */
#define MVD_DEC_SEQ_EXT_2 0x14820001
#define MVD_DEC_SEQ_EXT_3 0x0000FFFF
/*EMP=======================================================================*/
/*MDP=======================================================================*/
/*
ITEM NAME: MV_DEC_GOP_HEADER
PACKAGE: MV_DEC
DESCRIPTION: MPEG2 code used in GOP header.
DEFINITION:
*/
/* GOP header lenght in bytes */
#define MVD_DEC_GOP_HEADER_SIZE 12
/* GOP header start code value */
#define MVD_DEC_GOP_HEADER_START_CODE 0x000001B8
/* following of the GOP header */
#define MVD_DEC_GOP_HEADER_2 0x00000000
#define MVD_DEC_GOP_HEADER_3 0xFFFFFFFF
/*EMP=======================================================================*/
/*MDP=======================================================================*/
/*
ITEM NAME: MV_DEC_PICT_D99_HEADER
PACKAGE: MV_DEC
DESCRIPTION: MPEG2 code used in picture D99 header.
DEFINITION:
*/
/* GOP header lenght in bytes */
#define MVD_DEC_PICT_D99_HEADER_SIZE 12
/* GOP header start code value */
#define MVD_DEC_PICT_D99_HEADER_START_CODE 0x00000100
/* following of the GOP header */
#define MVD_DEC_PICT_D99_HEADER_2 0x18E2FA28
#define MVD_DEC_PICT_D99_HEADER_3 0x00000101
/*EMP=======================================================================*/
/*MDP=======================================================================*/
/*
ITEM NAME: OFFSET_FOR_FS_SECTION_ALIGNMENT
PACKAGE: Video Decoding
DESCRIPTION:
DEFINITION:
*/
#define OFFSET_FOR_FS_SECTION_ALIGNMENT 3072 /* (256 * 32 / 8 * 3) */
/*EMP=======================================================================*/
/*MDP=======================================================================*/
/*
ITEM NAME: BYTE_2_BIT
PACKAGE: Video Decoding
DESCRIPTION:
DEFINITION:
*/
#define BYTE_2_BIT 8
/*EMP=======================================================================*/
/*MDP=======================================================================*/
/*
ITEM NAME: NB_LUMA_BITS_PER_PELS
PACKAGE: Video Decoding
DESCRIPTION:
DEFINITION:
*/
#define NB_LUMA_BITS_PER_PELS 8
/*EMP=======================================================================*/
/*MDP=======================================================================*/
/*
ITEM NAME: NB_CHROMA_BITS_PER_PELS
PACKAGE: Video Decoding
DESCRIPTION:
DEFINITION:
*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -