MLT  7.28.0
Data Structures | Macros | Functions
mlt_image.h File Reference

Image class. More...

#include "mlt_types.h"

Go to the source code of this file.

Data Structures

struct  mlt_image_s
 

Macros

#define MLT_IMAGE_MAX_PLANES   4
 Image class. More...
 

Functions

void mlt_image_alloc_alpha (mlt_image self)
 
void mlt_image_alloc_data (mlt_image self)
 
int mlt_image_calculate_size (mlt_image self)
 
void mlt_image_close (mlt_image self)
 
void mlt_image_fill_black (mlt_image self)
 
void mlt_image_fill_checkerboard (mlt_image self, double sample_aspect_ratio)
 
void mlt_image_fill_opaque (mlt_image self)
 
void mlt_image_fill_white (mlt_image self, int full_range)
 
mlt_image_format mlt_image_format_id (const char *name)
 
const char * mlt_image_format_name (mlt_image_format format)
 
void mlt_image_format_planes (mlt_image_format format, int width, int height, void *data, uint8_t *planes[4], int strides[4])
 
int mlt_image_format_size (mlt_image_format format, int width, int height, int *bpp)
 
void mlt_image_get_values (mlt_image self, void **data, mlt_image_format *format, int *width, int *height)
 
mlt_image mlt_image_new ()
 Allocate a new Image object. More...
 
int mlt_image_rgba_opaque (uint8_t *image, int width, int height)
 
void mlt_image_set_values (mlt_image self, void *data, mlt_image_format format, int width, int height)
 

Detailed Description

Image class.

See also
mlt_image_s

Copyright (C) 2022 Meltytech, LLC

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

Macro Definition Documentation

◆ MLT_IMAGE_MAX_PLANES

#define MLT_IMAGE_MAX_PLANES   4

Image class.

Image is the data object that represents image for a period of time.

Function Documentation

◆ mlt_image_alloc_alpha()

void mlt_image_alloc_alpha ( mlt_image  self)

◆ mlt_image_alloc_data()

void mlt_image_alloc_data ( mlt_image  self)

◆ mlt_image_calculate_size()

int mlt_image_calculate_size ( mlt_image  self)

◆ mlt_image_close()

void mlt_image_close ( mlt_image  self)

◆ mlt_image_fill_black()

void mlt_image_fill_black ( mlt_image  self)

◆ mlt_image_fill_checkerboard()

void mlt_image_fill_checkerboard ( mlt_image  self,
double  sample_aspect_ratio 
)

◆ mlt_image_fill_opaque()

void mlt_image_fill_opaque ( mlt_image  self)

◆ mlt_image_fill_white()

void mlt_image_fill_white ( mlt_image  self,
int  full_range 
)

◆ mlt_image_format_id()

mlt_image_format mlt_image_format_id ( const char *  name)

◆ mlt_image_format_name()

const char* mlt_image_format_name ( mlt_image_format  format)

◆ mlt_image_format_planes()

void mlt_image_format_planes ( mlt_image_format  format,
int  width,
int  height,
void *  data,
uint8_t *  planes[4],
int  strides[4] 
)

◆ mlt_image_format_size()

int mlt_image_format_size ( mlt_image_format  format,
int  width,
int  height,
int *  bpp 
)

◆ mlt_image_get_values()

void mlt_image_get_values ( mlt_image  self,
void **  data,
mlt_image_format format,
int *  width,
int *  height 
)

◆ mlt_image_new()

mlt_image mlt_image_new ( )

Allocate a new Image object.

Returns
a new image object with default values set

◆ mlt_image_rgba_opaque()

int mlt_image_rgba_opaque ( uint8_t *  image,
int  width,
int  height 
)

◆ mlt_image_set_values()

void mlt_image_set_values ( mlt_image  self,
void *  data,
mlt_image_format  format,
int  width,
int  height 
)