video_frame
Module: Media Recorder API
The interface that wraps decoded video frames received from and to be injected into WebRTC.
#include <media_engine.h>
Public Types
Name | |
---|---|
enum | Format { kNative, kI444, kI420A, kI420, kI010} The available raw video formats. |
Public Functions
Name | |
---|---|
virtual | ~video_frame() =default |
virtual int | width() const =0 Gets the width of the frame. |
virtual int | height() const =0 Gets the height of the video frame. |
virtual const uint8_t * | getY() const =0 Gets the Y component. |
virtual const uint8_t * | getV() const =0 Gets the V component for YUV. |
virtual const uint8_t * | getU() const =0 Gets the U component. |
virtual Format | format() const =0 Gets the frame format. |
virtual int | StrideY() const =0 Returns the Y component stride. |
virtual int | StrideV() const =0 Returns the V component stride. |
virtual int | StrideU() const =0 Returns the U component stride. |
class dolbyio::comms::video_frame;
Public Types Documentation
enum Format
Enumerator | Description |
---|---|
kNative | The native format. |
kI444 | The I444 format. |
kI420A | The I420A format. |
kI420 | The I420 format. |
kI010 | The I010 format. |
The available raw video formats.
Public Functions Documentation
function ~video_frame
virtual ~video_frame() =default
function width
virtual int width() const =0
Gets the width of the frame.
Return: The width of the frame.
function height
virtual int height() const =0
Gets the height of the video frame.
Return: The height of the frame.
function getY
virtual const uint8_t * getY() const =0
Gets the Y component.
Return: The pointer to the Y data buffer.
function getV
virtual const uint8_t * getV() const =0
Gets the V component for YUV.
Return: The pointer to the V data buffer.
function getU
virtual const uint8_t * getU() const =0
Gets the U component.
Return: The pointer to the U data buffer.
function format
virtual Format format() const =0
Gets the frame format.
Return: The frame format.
function StrideY
virtual int StrideY() const =0
Returns the Y component stride.
Return: An integer representing the Y component stride.
function StrideV
virtual int StrideV() const =0
Returns the V component stride.
Return: An integer representing the V component stride.
function StrideU
virtual int StrideU() const =0
Returns the U component stride.
Return: An integer representing the U component stride.
Updated 3 months ago