File was renamed from RtspFace/PL_AndroidMediaCodecFileFrame.h |
| | |
| | | #ifndef _PL_ANDROIDMEDIACODECFILEFRAME_H_
|
| | | #define _PL_ANDROIDMEDIACODECFILEFRAME_H_
|
| | | #ifndef _PL_H264FILEFRAMER_H_
|
| | | #define _PL_H264FILEFRAMER_H_
|
| | |
|
| | | #include "PipeLine.h"
|
| | |
|
| | | struct PL_AndroidMediaCodecFileFrame_Config
|
| | | struct PL_H264FileFramer_Config
|
| | | {
|
| | | char sz_path[256];
|
| | | bool b_loop_play;
|
| | |
|
| | | PL_AndroidMediaCodecFileFrame_Config() :
|
| | | PL_H264FileFramer_Config() :
|
| | | b_loop_play(false)
|
| | | {
|
| | | memset(sz_path,0,256);
|
| | | }
|
| | | };
|
| | |
|
| | | class PL_AndroidMediaCodecFileFrame : public PipeLineElem
|
| | | class PL_H264FileFramer : public PipeLineElem
|
| | | {
|
| | | public:
|
| | | PL_AndroidMediaCodecFileFrame();
|
| | | virtual ~PL_AndroidMediaCodecFileFrame();
|
| | | PL_H264FileFramer();
|
| | | virtual ~PL_H264FileFramer();
|
| | |
|
| | | virtual bool init(void* args);
|
| | | virtual void finit();
|
| | |
| | |
|
| | | private:
|
| | | void* internal;
|
| | | bool m_b_loop_play;
|
| | | bool m_b_loop_play;//#todo move to config
|
| | | std::string m_str_context;
|
| | | std::string m_str_old_context;
|
| | | std::string m_str_buf;
|
| | |
| | | int analyse_context();
|
| | | };
|
| | |
|
| | | PipeLineElem* create_PL_AndroidMediaCodecFileFrame();
|
| | | PipeLineElem* create_PL_H264FileFramer();
|
| | |
|
| | | #endif
|