hantrodecoderwrapper.h

来自「freescale i.mx31 BSP CE5.0全部源码」· C头文件 代码 · 共 61 行

H
61
字号
/*------------------------------------------------------------------------------
--                                                                            --
--       This software is confidential and proprietary and may be used        --
--        only as expressly authorized by a licensing agreement from          --
--                                                                            --
--                            Hantro Products Oy.                             --
--                                                                            --
--      In the event of publication, the following notice is applicable:      --
--                                                                            --
--                   (C) COPYRIGHT 2005 HANTRO PRODUCTS OY                    --
--                            ALL RIGHTS RESERVED                             --
--                                                                            --
--         The entire notice above must be reproduced on all copies.          --
--                                                                            --
--------------------------------------------------------------------------------
--
--  Description : Hantro MPEG-4/H.263 Video Decoder DirectX Media Object 
--
------------------------------------------------------------------------------*/

#pragma once

/*------------------------------------------------------------------------------
    1. Include headers
------------------------------------------------------------------------------*/

#include "MP4SwDecApi.h"
#include "HantroDecoderUtils.h"
#include <windows.h> // windows definitions
#include <streams.h> // directshow structures

/*------------------------------------------------------------------------------
    2. Module defines
------------------------------------------------------------------------------*/

#define INVALID_REFTIME 0xFFFFFFFFFFFFFFFF

/*------------------------------------------------------------------------------
    3. CHantroDecoderWrapper class
------------------------------------------------------------------------------*/

class CHantroDecoderWrapper
{
public:
	CHantroDecoderWrapper(GUID outputColorSpace);
	~CHantroDecoderWrapper(void);

	HRESULT StartStream(void);
	HRESULT EndStream(void);
	HRESULT DecodeStream( BYTE* pInputData, LONG inputSize, REFERENCE_TIME timeStamp, REFERENCE_TIME dur,
	                      BYTE* pOutputData, BOOL* pStreamNotEmpty, LONG* pWidth, LONG* pHeight,
	                      REFERENCE_TIME* pOutputStart, REFERENCE_TIME* pOutputDuration );

private:
	MP4SwDecInst         m_pDecInst;     // Decoder instance
	CHtrPostProc*		 m_pPostProcessor;
	REFERENCE_TIME       m_prevVopTime;  // Helper variable for bookkeeping of timing
	GUID                 m_OutputColorSpace;
	ULONG                m_prevTimeIncr;
};

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?