⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hantrodecoderwrapper.h

📁 Freescale ARM11系列CPU MX31的WINCE 5.0下的BSP
💻 H
字号:
/*------------------------------------------------------------------------------
--                                                                            --
--       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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -