MLT  7.38.0
Multimedia Framework
Public Member Functions | Private Attributes
Mlt::Image Class Reference

C++ wrapper for mlt_image – a decoded video frame buffer. More...

#include <MltImage.h>

Collaboration diagram for Mlt::Image:
Collaboration graph
[legend]

Public Member Functions

void alloc (int width, int height, mlt_image_format format, bool alpha=false)
 
int colorspace ()
 
mlt_image_format format ()
 
int height ()
 
 Image ()
 
 Image (int width, int height, mlt_image_format format)
 
 Image (mlt_image image)
 
void init_alpha ()
 
uint8_t * plane (int plane)
 
void set_colorspace (int colorspace)
 
int stride (int plane)
 
int width ()
 
virtual ~Image ()
 

Private Attributes

mlt_image instance
 

Detailed Description

C++ wrapper for mlt_image – a decoded video frame buffer.

Holds a raw pixel buffer together with its format metadata (width, height, image format, colorspace). Supports multi-plane formats via plane() and stride(). Use alloc() to allocate a new buffer, or construct from an existing mlt_image handle obtained from a Frame.

See also
mlt_image_s

Constructor & Destructor Documentation

◆ Image() [1/3]

Image::Image ( )

◆ Image() [2/3]

Image::Image ( mlt_image  image)

◆ Image() [3/3]

Image::Image ( int  width,
int  height,
mlt_image_format  format 
)

◆ ~Image()

Image::~Image ( )
virtual

Member Function Documentation

◆ alloc()

void Image::alloc ( int  width,
int  height,
mlt_image_format  format,
bool  alpha = false 
)

◆ colorspace()

int Image::colorspace ( )

◆ format()

mlt_image_format Image::format ( )

◆ height()

int Image::height ( )

◆ init_alpha()

void Image::init_alpha ( )

◆ plane()

uint8_t * Image::plane ( int  plane)

◆ set_colorspace()

void Image::set_colorspace ( int  colorspace)

◆ stride()

int Image::stride ( int  plane)

◆ width()

int Image::width ( )

Field Documentation

◆ instance

mlt_image Mlt::Image::instance
private

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