MediaProcessors
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | List of all members
SimpleFramedSource Class Reference
Inheritance diagram for SimpleFramedSource:
Inheritance graph
[legend]
Collaboration diagram for SimpleFramedSource:
Collaboration graph
[legend]

Public Member Functions

void deliverFrame ()
 

Static Public Member Functions

static SimpleFramedSourcecreateNew (UsageEnvironment &env, log_ctx_t *log_ctx)
 

Public Attributes

fifo_ctx_tm_fifo_ctx
 
volatile EventTriggerId m_eventTriggerId
 

Protected Member Functions

 SimpleFramedSource (UsageEnvironment &, log_ctx_t *)
 

Detailed Description

So-called "framed-source" class prototype.

Definition at line 324 of file live555_rtsp.cpp.

Member Function Documentation

void SimpleFramedSource::deliverFrame ( )

This function is called when new frame data is available from the device.

This function is called when new frame data is available from the device. We deliver this data by copying it to the 'downstream' object, using the following parameters (class members): **** 'in' parameters (these should not be modified by this function): ** fTo: The frame data is copied to this address. (Note that the variable "fTo" is not modified. Instead, the frame data is copied to the address pointed to by "fTo".) ** fMaxSize: This is the maximum number of bytes that can be copied (If the actual frame is larger than this, then it should be truncated, and "fNumTruncatedBytes" set accordingly.) ***** 'out' parameters (these are modified by this function): ** fFrameSize: Should be set to the delivered frame size (<= fMaxSize). ** fNumTruncatedBytes: Should be set iff the delivered frame would have been bigger than "fMaxSize", in which case it's set to the number of bytes that have been omitted. ** fPresentationTime: Should be set to the frame's presentation time (seconds, microseconds). This time must be aligned with 'wall-clock time' -i.e., the time that you would get by calling "gettimeofday()". ** fDurationInMicroseconds: Should be set to the frame's duration, if known. If, however, the device is a 'live source' (e.g., encoded from a camera or microphone), then we probably don't need to set this variable, because -in this case- data will never arrive 'early'.

Definition at line 1879 of file live555_rtsp.cpp.

Member Data Documentation

volatile EventTriggerId SimpleFramedSource::m_eventTriggerId

Unambiguous frame consuming method event trigger identifier.

Definition at line 341 of file live555_rtsp.cpp.

fifo_ctx_t* SimpleFramedSource::m_fifo_ctx

Input frames FIFO buffer.

Definition at line 337 of file live555_rtsp.cpp.


The documentation for this class was generated from the following file: