Agora  1.2.0
Agora project
VideoReceiver Class Reference

The Video Receiver class creates a UDP server to receive a video stream tested with VLC streaming application. More...

#include <video_receiver.h>

Inheritance diagram for VideoReceiver:
Collaboration diagram for VideoReceiver:

Public Member Functions

 VideoReceiver (uint16_t port)
 
 ~VideoReceiver () override=default
 
size_t Load (unsigned char *destination, size_t requested_bytes) final
 

Static Public Attributes

static constexpr size_t kVideoStreamRxPort = 1350u
 
static constexpr size_t kVideoStreamRxSize = (1316u)
 
static constexpr size_t kVideoStreamSocketRxBufSize
 
static constexpr size_t kVideoStreamMaxRxSize = 2048u
 
static constexpr size_t kVideoStreamLocalRxBufSize
 

Private Attributes

UDPServer udp_video_receiver_
 
std::array< std::byte, VideoReceiver::kVideoStreamLocalRxBufSizelocal_rx_buffer_
 
size_t data_available_
 
size_t data_start_offset_
 

Additional Inherited Members

- Protected Member Functions inherited from MacDataReceiver
 MacDataReceiver ()=default
 
virtual ~MacDataReceiver ()=default
 

Detailed Description

The Video Receiver class creates a UDP server to receive a video stream tested with VLC streaming application.

Constructor & Destructor Documentation

◆ VideoReceiver()

VideoReceiver::VideoReceiver ( uint16_t  port)
explicit

◆ ~VideoReceiver()

VideoReceiver::~VideoReceiver ( )
overridedefault

Member Function Documentation

◆ Load()

size_t VideoReceiver::Load ( unsigned char *  destination,
size_t  requested_bytes 
)
finalvirtual

Implements MacDataReceiver.

Here is the call graph for this function:

Member Data Documentation

◆ data_available_

size_t VideoReceiver::data_available_
private

◆ data_start_offset_

size_t VideoReceiver::data_start_offset_
private

◆ kVideoStreamLocalRxBufSize

constexpr size_t VideoReceiver::kVideoStreamLocalRxBufSize
staticconstexpr
Initial value:

◆ kVideoStreamMaxRxSize

constexpr size_t VideoReceiver::kVideoStreamMaxRxSize = 2048u
staticconstexpr

◆ kVideoStreamRxPort

constexpr size_t VideoReceiver::kVideoStreamRxPort = 1350u
staticconstexpr

◆ kVideoStreamRxSize

constexpr size_t VideoReceiver::kVideoStreamRxSize = (1316u)
staticconstexpr

◆ kVideoStreamSocketRxBufSize

constexpr size_t VideoReceiver::kVideoStreamSocketRxBufSize
staticconstexpr
Initial value:

◆ local_rx_buffer_

std::array<std::byte, VideoReceiver::kVideoStreamLocalRxBufSize> VideoReceiver::local_rx_buffer_
private

◆ udp_video_receiver_

UDPServer VideoReceiver::udp_video_receiver_
private

The documentation for this class was generated from the following files:
VideoReceiver::kVideoStreamRxSize
static constexpr size_t kVideoStreamRxSize
Definition: video_receiver.h:22
u
Plot Rx waveform for u
Definition: inspect_single_frame.m:108
VideoReceiver::kVideoStreamMaxRxSize
static constexpr size_t kVideoStreamMaxRxSize
Definition: video_receiver.h:26