12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- /*------------------------------------------------------------------------------
- -- --
- -- This software is confidential and proprietary and may be used --
- -- only as expressly authorized by a licensing agreement from --
- -- --
- -- Hantro Products Oy. --
- -- --
- -- (C) COPYRIGHT 2006 HANTRO PRODUCTS OY --
- -- ALL RIGHTS RESERVED --
- -- --
- -- The entire notice above must be reproduced --
- -- on all copies and should not be removed. --
- -- --
- --------------------------------------------------------------------------------
- --
- -- Abstract: api internal defines
- --
- --------------------------------------------------------------------------------
- --
- -- Version control information, please leave untouched.
- --
- -- $RCSfile: mp4decapi_internal.h,v $
- -- $Date: 2009/08/12 13:22:13 $
- -- $Revision: 1.4 $
- ------------------------------------------------------------------------------*/
- /*------------------------------------------------------------------------------
- Table of contents
- 1. Include headers
- 2. Internal Definitions
- 3. Prototypes of Decoder API internal functions
- ------------------------------------------------------------------------------*/
- #ifndef _MP4DECAPI_INTERNAL_H_
- #define _MP4DECAPI_INTERNAL_H_
- /*------------------------------------------------------------------------------
- 1. Include headers
- ------------------------------------------------------------------------------*/
- #include "mp4deccfg.h"
- #include "mp4dechwd_utils.h"
- #include "mp4decapi.h"
- /*------------------------------------------------------------------------------
- 2. Internal Definitions
- ------------------------------------------------------------------------------*/
- /*
- * Size of internal frame buffers (in 32bit-words) per macro block
- */
- #define MP4API_DEC_FRAME_BUFF_SIZE 96
- /*
- * Size of CTRL buffer (macroblks * 4 * 32bit-words/Mb), same for MV and DC
- */
- #define MP4API_DEC_CTRL_BUFF_SIZE NBR_OF_WORDS_MB * MP4API_DEC_MBS
- #define MPAPI_DEC_MV_BUFF_SIZE NBR_MV_WORDS_MB * MP4API_DEC_MBS
- #define MPAPI_DEC_DC_BUFF_SIZE NBR_DC_WORDS_MB * MP4API_DEC_MBS
- #define MP4API_DEC_NBOFRLC_BUFF_SIZE MP4API_DEC_MBS * 6
- #ifndef NULL
- #define NULL 0
- #endif
- #define SWAP_POINTERS(A, B, T) T = A; A = B; B = T;
- #define INVALID_ANCHOR_PICTURE ((u32)-1)
- #define MP4DEC_QUANT_TABLE_SIZE (2*64)
- /*------------------------------------------------------------------------------
- 3. Prototypes of Decoder API internal functions
- ------------------------------------------------------------------------------*/
- /*void regDump(MP4DecInst decInst);*/
- void MP4NotCodedVop(DecContainer * pDecContainer);
- void MP4API_InitDataStructures(DecContainer * pDecCont);
- void MP4DecTimeCode(DecContainer * pDecCont, MP4DecTime * timeCode);
- MP4DecRet MP4AllocateBuffers(DecContainer * pDecCont);
- void MP4FreeBuffers(DecContainer * pDecCont);
- MP4DecRet MP4AllocateRlcBuffers(DecContainer * pDecCont);
- MP4DecRet MP4DecCheckSupport(DecContainer * pDecCont);
- void MP4DecPixelAspectRatio(DecContainer * pDecCont, MP4DecInfo * pDecInfo);
- void MP4DecBufferPicture(DecContainer *pDecCont, u32 picId,
- u32 vopType, u32 nbrErrMbs);
- MP4DecRet MP4DecAllocExtraBPic(DecContainer * pDecCont);
- u32 * MP4DecResolveVirtual(DecContainer * pDecCont, u32 index );
- u32 MP4DecResolveBus(DecContainer * pDecCont, u32 index );
- void MP4DecChangeDataIndex( DecContainer * pDecCont, u32 to, u32 from);
- u32 MP4DecBFrameSupport(DecContainer * pDecCont);
- #endif /* _MP4DECAPI_INTERNAL_H_ */
|