#include <video.h>
Inherits RTP_Stream.
Inheritance diagram for Video:
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 |
Definition at line 12 of file video.h.
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] |
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 | ) |
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 | ) |
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.
int Video::fd_ctl [protected] |
int Video::fd_ioctl [protected] |
unsigned long Video::prev_jpeg_wp [protected] |
int Video::f_width [protected] |
int Video::f_height [protected] |
int Video::f_quality [protected] |
bool Video::qtables_include [protected] |
unsigned char Video::qtable[128] [protected] |
long Video::buffer_length [protected] |
unsigned long* Video::buffer_ptr [protected] |
unsigned long* Video::buffer_ptr_s [protected] |
void* Video::frame_ptr [protected] |
long Video::v_t_sec [protected] |
long Video::v_t_usec [protected] |
int Video::v_frames [protected] |