Video Class Reference

#include <video.h>

Inherits RTP_Stream.

Inheritance diagram for Video:

Inheritance graph
[legend]
Collaboration diagram for Video:

Collaboration graph
[legend]

Public Member Functions

 Video (void)
virtual ~Video (void)
int width (void)
int height (void)
int quality (void)
float fps (void)
void fps (float)
void Start (string ip, long port)
void Stop (void)

Protected Member Functions

long capture (void)
bool process (void)

Protected Attributes

int fd_ctl
int fd_ioctl
unsigned long prev_jpeg_wp
int f_width
int f_height
int f_quality
bool qtables_include
unsigned char qtable [128]
long buffer_length
unsigned long * buffer_ptr
unsigned long * buffer_ptr_s
void * frame_ptr
long v_t_sec
long v_t_usec
int v_frames

Detailed Description

Definition at line 12 of file video.h.


Constructor & Destructor Documentation

Video::Video ( void   ) 

Definition at line 26 of file video.cpp.

References RTP_Stream::_fd, RTP_Stream::_play, RTP_Stream::_ptype, buffer_length, f_quality, fd_circbuf, fd_ctl, fd_ioctl, fd_stream, RTP_Stream::init_pthread(), prev_jpeg_wp, qtables_include, RTP_Stream::rtcp_socket, RTP_Stream::rtp_socket, RTP_Stream::SSRC, and RTP_Stream::stream_name.

Video::~Video ( void   )  [virtual]

Definition at line 65 of file video.cpp.

References fd_circbuf, fd_ioctl, and fd_stream.


Member Function Documentation

int Video::width ( void   ) 

Definition at line 111 of file video.cpp.

References _CCCMD, CCAM_RPARS, fd_ioctl, and P_ACTUAL_WIDTH.

Referenced by Streamer::Main(), and Start().

int Video::height ( void   ) 

Definition at line 115 of file video.cpp.

References _CCCMD, CCAM_RPARS, fd_ioctl, and P_ACTUAL_HEIGHT.

Referenced by Streamer::Main(), and Start().

int Video::quality ( void   ) 

Definition at line 119 of file video.cpp.

References _CCCMD, CCAM_RPARS, fd_ioctl, and P_QUALITY.

Referenced by capture().

float Video::fps ( void   ) 

Definition at line 123 of file video.cpp.

References _CCCMD, CCAM_RPARS, fd_ioctl, and P_FP100S.

Referenced by capture(), Streamer::Main(), and Streamer::Streamer().

void Video::fps ( float   ) 

Definition at line 129 of file video.cpp.

References fd_stream, and IOC_STREAM_SET_FPS.

void Video::Start ( string  ip,
long  port 
)

Definition at line 74 of file video.cpp.

References RTP_Stream::_play, buffer_length, buffer_ptr, buffer_ptr_s, CAMSEQ_RUN, CMOSCAM_IOCTYPE, f_height, f_width, fd_circbuf, fd_ctl, fd_ioctl, height(), IO_CCAM_JPEG, IO_CCAM_MONITOR_SEQ, JPEG_CMD_START, RTP_Stream::Start(), v_frames, v_t_sec, v_t_usec, and width().

Referenced by Streamer::handler(), and Streamer::Main().

void Video::Stop ( void   )  [virtual]

Reimplemented from RTP_Stream.

Definition at line 101 of file video.cpp.

References RTP_Stream::_play, buffer_length, buffer_ptr, buffer_ptr_s, prev_jpeg_wp, and RTP_Stream::Stop().

Referenced by Streamer::handler().

long Video::capture ( void   )  [protected]

Definition at line 134 of file video.cpp.

References buf, buffer_length, buffer_ptr, CCAM_MMAP_META, CCAM_MMAP_META_SEC, CIRCLSEEK_TOWP, CIRCLSEEK_WAIT, f_quality, RTP_Stream::f_tv, fd_circbuf, fd_stream, fps(), frame_ptr, Streamer::instance(), IOC_STREAM_GET_QTABLES, IOC_STREAM_GET_TIME, memcpy(), qtable, qtables_include, frame_params_t::quality, quality(), v_frames, v_t_sec, and v_t_usec.

Referenced by process().

bool Video::process ( void   )  [protected, virtual]

Implements RTP_Stream.

Definition at line 211 of file video.cpp.

References RTP_Stream::_play, RTP_Stream::_ptype, capture(), data, f_height, f_quality, RTP_Stream::f_tv, f_width, frame_ptr, memcpy(), RTP_Stream::packet_num, qtable, qtables_include, RTP_Stream::rtp_octets, RTP_Stream::rtp_packets, RTP_Stream::rtp_socket, Socket::send2v(), Socket::send3v(), RTP_Stream::SSRC, and RTP_Stream::timestamp.


Field Documentation

int Video::fd_ctl [protected]

Definition at line 26 of file video.h.

Referenced by Start(), and Video().

int Video::fd_ioctl [protected]

Definition at line 27 of file video.h.

Referenced by fps(), height(), quality(), Start(), Video(), width(), and ~Video().

unsigned long Video::prev_jpeg_wp [protected]

Definition at line 28 of file video.h.

Referenced by Stop(), and Video().

int Video::f_width [protected]

Definition at line 31 of file video.h.

Referenced by process(), and Start().

int Video::f_height [protected]

Definition at line 32 of file video.h.

Referenced by process(), and Start().

int Video::f_quality [protected]

Definition at line 33 of file video.h.

Referenced by capture(), process(), and Video().

bool Video::qtables_include [protected]

Definition at line 34 of file video.h.

Referenced by capture(), process(), and Video().

unsigned char Video::qtable[128] [protected]

Definition at line 35 of file video.h.

Referenced by capture(), and process().

long Video::buffer_length [protected]

Definition at line 37 of file video.h.

Referenced by capture(), Start(), Stop(), and Video().

unsigned long* Video::buffer_ptr [protected]

Definition at line 38 of file video.h.

Referenced by capture(), Start(), and Stop().

unsigned long* Video::buffer_ptr_s [protected]

Definition at line 39 of file video.h.

Referenced by Start(), and Stop().

void* Video::frame_ptr [protected]

Definition at line 40 of file video.h.

Referenced by capture(), and process().

long Video::v_t_sec [protected]

Definition at line 45 of file video.h.

Referenced by capture(), and Start().

long Video::v_t_usec [protected]

Definition at line 46 of file video.h.

Referenced by capture(), and Start().

int Video::v_frames [protected]

Definition at line 47 of file video.h.

Referenced by capture(), and Start().


The documentation for this class was generated from the following files:
Generated on Thu Aug 7 16:21:13 2008 for elphel by  doxygen 1.5.1