libpromeki main
PROfessional MEdia toolKIt
 
Loading...
Searching...
No Matches
Frame Class Reference

A media frame containing images, audio, and metadata. More...

#include <frame.h>

Public Types

using Ptr = SharedPtr< Frame >
 Shared pointer type for Frame.
 
using List = promeki::List< Frame >
 Plain value list of Frame objects.
 
using PtrList = promeki::List< Ptr >
 List of shared pointers to Frame objects.
 

Public Member Functions

 Frame ()=default
 Constructs an empty frame with no images, audio, or metadata.
 
const Image::PtrListimageList () const
 Returns a const reference to the list of image planes.
 
Image::PtrListimageList ()
 Returns a mutable reference to the list of image planes.
 
const Audio::PtrListaudioList () const
 Returns a const reference to the list of audio tracks.
 
Audio::PtrListaudioList ()
 Returns a mutable reference to the list of audio tracks.
 
const Metadatametadata () const
 Returns a const reference to the frame metadata.
 
Metadatametadata ()
 Returns a mutable reference to the frame metadata.
 

Detailed Description

A media frame containing images, audio, and metadata.

Aggregates one or more image planes, one or more audio tracks, and a metadata container into a single unit that represents a frame of

Example
Frame::Ptr frame = Frame::Ptr::create(vdesc);
frame->setTimecode(Timecode(Timecode::NDF24, 1, 0, 0, 0));
Image img = frame->image(0);
promeki::List< Frame > List
Plain value list of Frame objects.
Definition frame.h:42
Raster image with pixel format, planes, and metadata.
Definition image.h:48
A smart pointer class with reference counting and optional copy-on-write semantics.
Definition sharedptr.h:252
Class for holding and manipulating timecode.
Definition timecode.h:45
@ NDF24
24 fps non-drop-frame (maps to VTC_FORMAT_24)
Definition timecode.h:53
Describes a video format including frame rate, image layers, audio channels, and metadata.
Definition videodesc.h:25
media content.

Member Function Documentation

◆ audioList() [1/2]

Audio::PtrList & Frame::audioList ( )
inline

Returns a mutable reference to the list of audio tracks.

Returns
The audio pointer list.

◆ audioList() [2/2]

const Audio::PtrList & Frame::audioList ( ) const
inline

Returns a const reference to the list of audio tracks.

Returns
The audio pointer list.

◆ imageList() [1/2]

Image::PtrList & Frame::imageList ( )
inline

Returns a mutable reference to the list of image planes.

Returns
The image pointer list.

◆ imageList() [2/2]

const Image::PtrList & Frame::imageList ( ) const
inline

Returns a const reference to the list of image planes.

Returns
The image pointer list.

◆ metadata() [1/2]

Metadata & Frame::metadata ( )
inline

Returns a mutable reference to the frame metadata.

Returns
The metadata container.

◆ metadata() [2/2]

const Metadata & Frame::metadata ( ) const
inline

Returns a const reference to the frame metadata.

Returns
The metadata container.

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