PrivMX Endpoint v2.8.0
Loading...
Searching...
No Matches
privmx::endpoint::stream::Frame Class Referenceabstract

#include <stream/webrtc/include_pub/privmx/endpoint/stream/webrtc/OnTrackInterface.hpp>

Public Member Functions

virtual int ConvertToRGBA (uint8_t *dst_argb, int dst_stride_argb, int dest_width, int dest_height)=0

Detailed Description

Holds a single video frame.

Member Function Documentation

◆ ConvertToRGBA()

virtual int privmx::endpoint::stream::Frame::ConvertToRGBA ( uint8_t * dst_argb,
int dst_stride_argb,
int dest_width,
int dest_height )
pure virtual

Converts the frame into an RGBA image.

Parameters
dst_argbbuffer to write the image to
dst_stride_argbnumber of bytes between the beginnings of two consecutive rows of the buffer
dest_widthwidth of the resulting image in pixels
dest_heightheight of the resulting image in pixels
Returns
0 on success

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