MLT  7.36.0
Functions
mlt_types.c File Reference

Mlt types helper functions. More...

#include "mlt_types.h"
#include "mlt_image.h"
#include <math.h>
#include <stdlib.h>
#include <string.h>

Functions

mlt_color mlt_color_convert_trc (mlt_color color, const char *trc_name)
 Convert a standard sRGB color value to the specified TRC (Transfer Characteristics). More...
 
mlt_deinterlacer mlt_deinterlacer_id (const char *name)
 
const char * mlt_deinterlacer_name (mlt_deinterlacer method)
 
static uint8_t srgb_to_linear (uint8_t value)
 

Detailed Description

Mlt types helper functions.

Copyright (C) 2023-2025 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

Function Documentation

◆ mlt_color_convert_trc()

mlt_color mlt_color_convert_trc ( mlt_color  color,
const char *  trc_name 
)

Convert a standard sRGB color value to the specified TRC (Transfer Characteristics).

Parameters
colora standard sRGB color value
trc_namea string representing the TRC to convert to
Returns
the converted color

◆ mlt_deinterlacer_id()

mlt_deinterlacer mlt_deinterlacer_id ( const char *  name)

◆ mlt_deinterlacer_name()

const char* mlt_deinterlacer_name ( mlt_deinterlacer  method)

◆ srgb_to_linear()

static uint8_t srgb_to_linear ( uint8_t  value)
static