umc_h263_video_encoder.h
来自「这是在PCA下的基于IPP库示例代码例子,在网上下了IPP的库之后,设置相关参数」· C头文件 代码 · 共 64 行
H
64 行
/*////////////////////////////////////////////////////////////////////////////////// INTEL CORPORATION PROPRIETARY INFORMATION// This software is supplied under the terms of a license agreement or// nondisclosure agreement with Intel Corporation and may not be copied// or disclosed except in accordance with the terms of that agreement.// Copyright(c) 2005 Intel Corporation. All Rights Reserved.//*/#ifndef _ENCODER_H263_H_#define _ENCODER_H263_H_#include "umc_video_encoder.h"#include "umc_dynamic_cast.h"#include "vm_strings.h"#include "h263_enc.hpp"namespace UMC{#define STR_LEN 511class H263EncoderParams : public VideoEncoderParams{ DYNAMIC_CAST_DECL(H263EncoderParams, VideoEncoderParams)public: h263_Param m_Param; vm_char m_SourceFileName[STR_LEN+1]; H263EncoderParams() { ippsZero_8u((Ipp8u*)(&m_Param), sizeof(m_Param)); }; Status ReadParamFile(const vm_char *FileName);};class H263VideoEncoder: public VideoEncoder{public: ippVideoEncoderH263 h263enc; bool m_IsInit; int m_FrameCount; H263VideoEncoder(); ~H263VideoEncoder(); virtual Status Init(BaseCodecParams *init); virtual Status GetFrame(MediaData *in, MediaData *out); virtual Status GetInfo(BaseCodecParams *info); virtual Status Close(); virtual Status Reset(); virtual Status SetParams(BaseCodecParams* params); int GetNumMacroBlockPerRow() { return h263enc.GetNumMacroBlockPerRow(); } int GetNumMacroBlockPerCol() { return h263enc.GetNumMacroBlockPerCol(); } Ipp8u* GetFrameQuant() { return h263enc.GetFrameQuant(); }; IppMotionVector* GetFrameMVpred() { return h263enc.GetFrameMVpred(); }; Ipp32u* GetFrameMBpos() { return h263enc.GetFrameMBpos(); };protected: H263EncoderParams m_Param;};VideoEncoder* createH263VideoEncoder();} //namespace UMC#endif /*_ENCODER_H263_H_*/
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?