FFmpeg
|
#include "libavutil/avassert.h"
#include "libavutil/hdr_dynamic_metadata.h"
#include "libavutil/mastering_display_metadata.h"
#include "format.h"
Go to the source code of this file.
Data Structures | |
struct | FormatEntry |
Functions | |
int | sws_isSupportedInput (enum AVPixelFormat pix_fmt) |
Return a positive value if pix_fmt is a supported input format, 0 otherwise. More... | |
int | sws_isSupportedOutput (enum AVPixelFormat pix_fmt) |
Return a positive value if pix_fmt is a supported output format, 0 otherwise. More... | |
int | sws_isSupportedEndiannessConversion (enum AVPixelFormat pix_fmt) |
SwsFormat | ff_fmt_from_frame (const AVFrame *frame, int field) |
This function also sanitizes and strips the input data, removing irrelevant fields for certain formats. More... | |
static int | infer_prim_ref (SwsColor *csp, const SwsColor *ref) |
static int | infer_trc_ref (SwsColor *csp, const SwsColor *ref) |
int | ff_infer_colors (SwsColor *src, SwsColor *dst) |
int | sws_test_format (enum AVPixelFormat format, int output) |
Test if a given pixel format is supported. More... | |
int | sws_test_colorspace (enum AVColorSpace csp, int output) |
Test if a given color space is supported. More... | |
int | sws_test_primaries (enum AVColorPrimaries prim, int output) |
Test if a given set of color primaries is supported. More... | |
int | sws_test_transfer (enum AVColorTransferCharacteristic trc, int output) |
Test if a given color transfer function is supported. More... | |
static int | test_range (enum AVColorRange range) |
static int | test_loc (enum AVChromaLocation loc) |
int | ff_test_fmt (const SwsFormat *fmt, int output) |
int | sws_test_frame (const AVFrame *frame, int output) |
Helper function to run all sws_test_* against a frame, as well as testing the basic frame properties for sanity. More... | |
int | sws_is_noop (const AVFrame *dst, const AVFrame *src) |
Check if a given conversion is a noop. More... | |
Variables | |
static const FormatEntry | format_entries [] |
This function also sanitizes and strips the input data, removing irrelevant fields for certain formats.
Calculate largest value from histogram to use as fallback for clips with missing MaxSCL information. Note that this may end up picking the "reserved" value at the 5% percentile, which in practice appears to track the brightest pixel in the scene.
Definition at line 283 of file format.c.
Referenced by sws_frame_setup(), sws_is_noop(), and sws_test_frame().
Definition at line 435 of file format.c.
Referenced by ff_infer_colors().
Definition at line 459 of file format.c.
Referenced by ff_infer_colors().
Definition at line 484 of file format.c.
Referenced by adapt_colors().
|
static |
Definition at line 536 of file format.c.
Referenced by ff_test_fmt().
|
static |
Definition at line 541 of file format.c.
Referenced by ff_test_fmt().
int ff_test_fmt | ( | const SwsFormat * | fmt, |
int | output | ||
) |
Definition at line 546 of file format.c.
Referenced by sws_frame_setup(), and sws_test_frame().
|
static |
Definition at line 34 of file format.c.
Referenced by sws_isSupportedEndiannessConversion(), sws_isSupportedInput(), and sws_isSupportedOutput().