Module: Media Recorder API

The interface that wraps decoded video frames received from WebRTC.

#include <media_engine.h>

Public Types

Name
enumFormat { kNative, kI444, kI420A, kI420, kI010}
The available raw video formats.

Public Functions

Name
virtual~frame()
virtual intwidth() const =0
Gets the width of the frame.
virtual intheight() 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 Formatformat() const =0
Gets the frame format.
virtual intStrideY() const =0
Returns the Y component stride.
virtual intStrideV() const =0
Returns the V component stride.
virtual intStrideU() const =0
Returns the U component stride.
class dolbyio::comms::frame;

Public Types Documentation

enum Format

EnumeratorDescription
kNativeThe native format.
kI444The I444 format.
kI420AThe I420A format.
kI420The I420 format.
kI010The I010 format.

The available raw video formats.

Public Functions Documentation

function ~frame

virtual ~frame()

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.



Did this page help you?