FFmpeg
Loading...
Searching...
No Matches
hdr_dynamic_metadata.c File Reference
#include <limits.h>
#include <stdio.h>
#include <string.h>
#include "libavutil/error.h"
#include "libavutil/frame.h"
#include "libavutil/hdr_dynamic_metadata.h"
#include "libavutil/mem.h"
#include "libavutil/rational.h"

Go to the source code of this file.

Macros

#define LUMINANCE_DEN   1
 
#define PEAK_LUMINANCE_DEN   15
 
#define RGB_DEN   100000
 
#define FRACTION_PIXEL_DEN   1000
 
#define KNEE_POINT_DEN   4095
 
#define BEZIER_ANCHOR_DEN   1023
 
#define SATURATION_DEN   8
 

Functions

static void print_peak_matrix (const char *label, int rows, int cols, const AVRational m[25][25])
 
static void print_window (int w, const AVHDRPlusColorTransformParams *p, int geometry)
 
static void print_hdr_plus (const char *label, const AVDynamicHDRPlus *s)
 
static void print_app5 (const char *label, const AVDynamicHDRSmpte2094App5 *s)
 
static int hdr_plus_round_trip (const AVDynamicHDRPlus *in, AVDynamicHDRPlus *out)
 
static int app5_round_trip (const AVDynamicHDRSmpte2094App5 *in, AVDynamicHDRSmpte2094App5 *out)
 
static void fill_hdr_plus_conforming (AVDynamicHDRPlus *s)
 
static void fill_hdr_plus_synthetic (AVDynamicHDRPlus *s)
 
static void test_hdr_plus (void)
 
static void fill_app5_minimal (AVDynamicHDRSmpte2094App5 *s)
 
static void fill_app5_reference_white (AVDynamicHDRSmpte2094App5 *s)
 
static void fill_app5_per_image (AVDynamicHDRSmpte2094App5 *s)
 
static void fill_app5_common (AVDynamicHDRSmpte2094App5 *s)
 
static void test_app5 (void)
 
int main (void)
 

Macro Definition Documentation

◆ LUMINANCE_DEN

#define LUMINANCE_DEN   1

Definition at line 33 of file hdr_dynamic_metadata.c.

Referenced by fill_hdr_plus_conforming(), and fill_hdr_plus_synthetic().

◆ PEAK_LUMINANCE_DEN

#define PEAK_LUMINANCE_DEN   15

Definition at line 34 of file hdr_dynamic_metadata.c.

Referenced by fill_hdr_plus_synthetic().

◆ RGB_DEN

#define RGB_DEN   100000

Definition at line 35 of file hdr_dynamic_metadata.c.

Referenced by fill_hdr_plus_conforming(), and fill_hdr_plus_synthetic().

◆ FRACTION_PIXEL_DEN

#define FRACTION_PIXEL_DEN   1000

Definition at line 36 of file hdr_dynamic_metadata.c.

Referenced by fill_hdr_plus_conforming(), and fill_hdr_plus_synthetic().

◆ KNEE_POINT_DEN

#define KNEE_POINT_DEN   4095

Definition at line 37 of file hdr_dynamic_metadata.c.

Referenced by fill_hdr_plus_conforming(), and fill_hdr_plus_synthetic().

◆ BEZIER_ANCHOR_DEN

#define BEZIER_ANCHOR_DEN   1023

Definition at line 38 of file hdr_dynamic_metadata.c.

Referenced by fill_hdr_plus_conforming(), and fill_hdr_plus_synthetic().

◆ SATURATION_DEN

#define SATURATION_DEN   8

Definition at line 39 of file hdr_dynamic_metadata.c.

Referenced by fill_hdr_plus_synthetic().

Function Documentation

◆ print_peak_matrix()

static void print_peak_matrix ( const char * label,
int rows,
int cols,
const AVRational m[25][25] )
static

Definition at line 47 of file hdr_dynamic_metadata.c.

Referenced by print_hdr_plus().

◆ print_window()

static void print_window ( int w,
const AVHDRPlusColorTransformParams * p,
int geometry )
static

Definition at line 57 of file hdr_dynamic_metadata.c.

Referenced by print_hdr_plus().

◆ print_hdr_plus()

static void print_hdr_plus ( const char * label,
const AVDynamicHDRPlus * s )
static

Definition at line 111 of file hdr_dynamic_metadata.c.

Referenced by test_hdr_plus().

◆ print_app5()

static void print_app5 ( const char * label,
const AVDynamicHDRSmpte2094App5 * s )
static

Definition at line 137 of file hdr_dynamic_metadata.c.

Referenced by test_app5().

◆ hdr_plus_round_trip()

static int hdr_plus_round_trip ( const AVDynamicHDRPlus * in,
AVDynamicHDRPlus * out )
static

Definition at line 206 of file hdr_dynamic_metadata.c.

Referenced by test_hdr_plus().

◆ app5_round_trip()

static int app5_round_trip ( const AVDynamicHDRSmpte2094App5 * in,
AVDynamicHDRSmpte2094App5 * out )
static

Definition at line 222 of file hdr_dynamic_metadata.c.

Referenced by test_app5().

◆ fill_hdr_plus_conforming()

static void fill_hdr_plus_conforming ( AVDynamicHDRPlus * s)
static

Definition at line 254 of file hdr_dynamic_metadata.c.

Referenced by test_hdr_plus().

◆ fill_hdr_plus_synthetic()

static void fill_hdr_plus_synthetic ( AVDynamicHDRPlus * s)
static

Definition at line 303 of file hdr_dynamic_metadata.c.

Referenced by test_hdr_plus().

◆ test_hdr_plus()

static void test_hdr_plus ( void )
static

Definition at line 382 of file hdr_dynamic_metadata.c.

Referenced by main().

◆ fill_app5_minimal()

static void fill_app5_minimal ( AVDynamicHDRSmpte2094App5 * s)
static

Definition at line 522 of file hdr_dynamic_metadata.c.

Referenced by test_app5().

◆ fill_app5_reference_white()

static void fill_app5_reference_white ( AVDynamicHDRSmpte2094App5 * s)
static

Definition at line 533 of file hdr_dynamic_metadata.c.

Referenced by test_app5().

◆ fill_app5_per_image()

static void fill_app5_per_image ( AVDynamicHDRSmpte2094App5 * s)
static

Definition at line 545 of file hdr_dynamic_metadata.c.

Referenced by test_app5().

◆ fill_app5_common()

static void fill_app5_common ( AVDynamicHDRSmpte2094App5 * s)
static

Definition at line 581 of file hdr_dynamic_metadata.c.

Referenced by test_app5().

◆ test_app5()

static void test_app5 ( void )
static

Definition at line 603 of file hdr_dynamic_metadata.c.

Referenced by main().

◆ main()

int main ( void )

Definition at line 718 of file hdr_dynamic_metadata.c.