📄 umc_mp4_spl.h
字号:
/*////////////////////////////////////////////////////////////////////////////////// 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) 2004-2005 Intel Corporation. All Rights Reserved.//*/#ifndef __UMC_MP4_SPLITTER_H__#define __UMC_MP4_SPLITTER_H__#include "umc_splitter.h"#include "umc_splitter_ex.h"namespace UMC{ class SplitterMP4; class MP4Splitter : public Splitter { DYNAMIC_CAST_DECL_BASE(MP4Splitter) public: typedef struct { unsigned int total_audio; unsigned int total_video; } sMp4_stream_info; //////////////////Constructor/destructor//////////////// MP4Splitter() {p_spl = NULL;}; ~MP4Splitter(); /////////////////////////////////////////////////////// /////////////////////Interface overrided functions//// Status Init (SplitterParams& init); Status Close (); //Close splitter Status Stop (); //Stop splitter Status GetNextVideoData (MediaData* data, vm_var32 track_idx = 0); Status GetNextAudioData (MediaData* data, vm_var32 track_idx = 0); ///////////////////////////////////////////////////////// sInfo_sample GetSamplePositionAudio(vm_var32 track_idx, vm_var32 nsample); sInfo_sample GetSamplePositionVideo(vm_var32 track_idx, vm_var32 nsample); /////////////////////////////////////////////////////////////// /////next features will be implemented in next version////////// /////////////////////////////////////////////////////////////// Status SetPosition (double pos); // pos from 0.0 to 1.0 Status GetPosition (double& pos);// return current position /////////////////////////////////////////////////////////////// // Valid after splitter initialization Status GetInfo (SplitterInfo* info); protected: SplitterMP4 *p_spl; };}#endif //__UMC_MP4_SPLITTER_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -