MAX_CARLINK_A270S/MXC_A27-PCB4.5-270S/lib/hx170dec/include/workaround.h

63 lines
2.4 KiB
C

/*------------------------------------------------------------------------------
-- --
-- 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 : Header file for stream decoding utilities
--
--------------------------------------------------------------------------------
--
-- Version control information, please leave untouched.
--
-- $RCSfile: workaround.h,v $
-- $Date: 2010/06/11 06:25:28 $
-- $Revision: 1.3 $
--
------------------------------------------------------------------------------*/
#ifndef WORKAROUND_H_DEFINED
#define WORKAROUND_H_DEFINED
#include "basetype.h"
/* Union containing structures to hold different formats' workarounds. */
typedef union workaround_s
{
struct {
u32 stuffing;
u32 startCode;
} mpeg;
struct {
u32 multibuffer;
} rv;
} workaround_t;
#ifndef HANTRO_TRUE
#define HANTRO_TRUE (1)
#endif /* HANTRO_TRUE */
#ifndef HANTRO_FALSE
#define HANTRO_FALSE (0)
#endif /* HANTRO_FALSE*/
void InitWorkarounds(u32 decMode, workaround_t *pWorkarounds );
void PrepareStuffingWorkaround( u8 *pDecOut, u32 vopWidth, u32 vopHeight );
u32 ProcessStuffingWorkaround( u8 * pDecOut, u8 * pRefPic, u32 vopWidth,
u32 vopHeight );
void PrepareStartCodeWorkaround( u8 *pDecOut, u32 vopWidth, u32 vopHeight,
u32 topField );
u32 ProcessStartCodeWorkaround( u8 *pDecOut, u32 vopWidth, u32 vopHeight,
u32 topField );
#endif /* WORKAROUND_H_DEFINED */