You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
#ifndef __VIDEOAVLIBSOURCE_H_INCL__
#define __VIDEOAVLIBSOURCE_H_INCL__
#include "../../../components/base/basicLIBAV.h"
#include "../../../components/base/basicMediaSource.h"
#include "../../../components/base/basicSettings.h"
#include "../../../components/base/basicThread.h"
#include "../../../components/base/basicLogCollection.h"
#include "../../../alg/generic/md5.h"
/**
* TODO: Add class description * * @author Gagua */class videoAVLIBSource : public basicMediaSource, public basicThread { private: basicLogCollection * m_pLog; config_setting_t * m_pConfig; char m_pCookie[33]; VideoState * m_pVideoState; void * m_pOpaque; uint8_t m_bSrcType; //uint8_t * m_pOut_buffer;
int m_nInWidth; int m_nInHeight; int m_nOutWidth; int m_nOutHeight; int m_iY_size;#ifndef _NOAUDIO_
mediaBus * m_pAudioBus; static void * m_tAudioProc( void *args );#endif
bool m_bSizeIsAutomatic; protected: void m_fThreadProc( void ); public: virtual bool _open( CSTR URI, bool ShowDeviceMenu = false, float framerate=-1.0f, int inputPin = -1, int width = -1, int height = -1 , int s_width=-1, int s_height=-1 ); virtual bool _close( void ); virtual bool _stop( void ); virtual bool _restart( void ); bool isFinished( void ); MediaStateStatus getStatus( void ); videoAVLIBSource( void *opaque=NULL ); videoAVLIBSource( CSTR URI, void *opaque=NULL ); //videoAVLIBSource( config_setting_t *CFG, void *opaque=NULL );
virtual ~videoAVLIBSource(); bool setOutputSize( int Width, int Height ); bool setProportionalByWidth( int Width ); bool setProportionalByHeight( int Height ); bool setFPS( int ); bool setName( CSTR Name ); bool setFrameAspectRatio( FrameAspectRatio AspectRatio );};
#endif // __VIDEOAVLIBSOURCE_H_INCL__
|