class CVideoCapture

Video Capture Class

Inheritance:


Public Fields

[more]int m_threadid
[more]CMediaBuffer* m_MediaBuffer
head of the Media Buffer linked list
[more]CVideoEnc* VideoEnc
Video encoder object

Public Methods

[more] CVideoCapture(int threadid)
constructor
[more]virtual ~CVideoCapture()
destructor
[more]int getStopStatus()
video capture stop status
[more]int setStopStatus()
set the video capture stop status
[more]virtual void SetSettings(int device_no)
set settings for the device number
[more]void Process_Raw_Video(int buffers_ready, int PixFormat, int bufsize, int width, int height, unsigned char* data, int tsinc_usec)
process the video
[more]virtual void getVideoFormat()
get the video format associated with the video capture object
[more]virtual void setVideoFormat()
set the video format associated with the video capture object
[more]virtual void getVideoDeviceProp()
get the video device properties associated with the video capture object
[more]virtual void setMediaBuffer(CCapThreadParams*)
set the MediaBuffer to the video capture object
[more]virtual void start_capture(CCapThreadParams* cparam)
start the capture
[more]virtual int stop_capture()
stop capture

Protected Fields

[more]CUnicapVidCap* ObjVidCap
[more]SDL_Rect rect
display video window rectangle
[more]SDL_Surface* m_screen
SDL surface for video display
[more]int m_stopStatusBase
video capture stop status
[more]pthread_mutex_t* m_capstatus_mutex
capture status mutex
[more]pthread_mutex_t* m_thrstop_mutex
Capture thread stop mutex
[more]pthread_cond_t* m_thrstop_cond
conditional to signal the stopping the capture thread
[more]pthread_cond_t* m_MediaBuffer_Empty_cond[30]
mutex conditionals for the 30 Empty Media Buffers shared with sender thread
[more]pthread_cond_t* m_MediaBuffer_Full_cond[30]
mutex conditionals for the 30 Full Media Buffers shared with sender thread
[more]pthread_mutex_t* m_MediaBuffer_mutex[30]
mutex for the 30 Media Buffers shared with sender thread
[more]pthread_cond_t* m_delMediaBuffer_Empty_cond
mutex conditionals for the Empty Media Buffers for deletion
[more]pthread_cond_t* m_delMediaBuffer_Full_cond
mutex conditionals for the Full Media Buffers for deletion
[more]pthread_mutex_t* m_delMediaBuffer_mutex
mutex for the Media Buffers for deletion
[more]int m_encode_bitrate
Video encode bitrate
[more]int m_fps
video capture frame rate
[more]int m_gopSize
video encoder GOP size
[more]CodecID m_encode_fmt
video encoder codec format


Inherited from IVideoCapture:

Public Methods

ostatic void print_fps( )


Documentation

Video Capture Class
oCUnicapVidCap* ObjVidCap

oSDL_Rect rect
display video window rectangle

oSDL_Surface* m_screen
SDL surface for video display

oint m_stopStatusBase
video capture stop status

opthread_mutex_t* m_capstatus_mutex
capture status mutex

opthread_mutex_t* m_thrstop_mutex
Capture thread stop mutex

opthread_cond_t* m_thrstop_cond
conditional to signal the stopping the capture thread

opthread_cond_t* m_MediaBuffer_Empty_cond[30]
mutex conditionals for the 30 Empty Media Buffers shared with sender thread

opthread_cond_t* m_MediaBuffer_Full_cond[30]
mutex conditionals for the 30 Full Media Buffers shared with sender thread

opthread_mutex_t* m_MediaBuffer_mutex[30]
mutex for the 30 Media Buffers shared with sender thread

opthread_cond_t* m_delMediaBuffer_Empty_cond
mutex conditionals for the Empty Media Buffers for deletion

opthread_cond_t* m_delMediaBuffer_Full_cond
mutex conditionals for the Full Media Buffers for deletion

opthread_mutex_t* m_delMediaBuffer_mutex
mutex for the Media Buffers for deletion

oint m_encode_bitrate
Video encode bitrate

oint m_fps
video capture frame rate

oint m_gopSize
video encoder GOP size

oCodecID m_encode_fmt
video encoder codec format

oint m_threadid

oCMediaBuffer* m_MediaBuffer
head of the Media Buffer linked list

oCVideoEnc* VideoEnc
Video encoder object

o CVideoCapture(int threadid)
constructor

ovirtual ~CVideoCapture()
destructor

oint getStopStatus()
video capture stop status

oint setStopStatus()
set the video capture stop status

ovirtual void SetSettings(int device_no)
set settings for the device number

ovoid Process_Raw_Video(int buffers_ready, int PixFormat, int bufsize, int width, int height, unsigned char* data, int tsinc_usec)
process the video

ovirtual void getVideoFormat()
get the video format associated with the video capture object

ovirtual void setVideoFormat()
set the video format associated with the video capture object

ovirtual void getVideoDeviceProp()
get the video device properties associated with the video capture object

ovirtual void setMediaBuffer(CCapThreadParams*)
set the MediaBuffer to the video capture object

ovirtual void start_capture(CCapThreadParams* cparam)
start the capture

ovirtual int stop_capture()
stop capture


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.