|
FFmpeg
|
Go to the source code of this file.
Data Structures | |
| struct | SwsColor |
| struct | SwsFormat |
| struct | SwsFrame |
| Represents a view into a single field of frame data. More... | |
Typedefs | |
| typedef enum SwsPixelType | SwsPixelType |
Enumerations | |
| enum | { FIELD_TOP, FIELD_BOTTOM } |
Functions | |
| static int | ff_q_isnan (const AVRational a) |
| static int | ff_q_equal (const AVRational a, const AVRational b) |
| static int | ff_cie_xy_equal (const AVCIExy a, const AVCIExy b) |
| static int | ff_prim_equal (const AVPrimaryCoefficients *a, const AVPrimaryCoefficients *b) |
| static void | ff_color_update_dynamic (SwsColor *dst, const SwsColor *src) |
| static void | ff_fmt_clear (SwsFormat *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... | |
| void | ff_fmt_from_pixfmt (enum AVPixelFormat pixfmt, SwsFormat *fmt) |
| Subset of ff_fmt_from_frame() that sets default metadata for the format. More... | |
| static int | ff_color_equal (const SwsColor *c1, const SwsColor *c2) |
| static int | ff_props_equal (const SwsFormat *fmt1, const SwsFormat *fmt2) |
| static int | ff_fmt_equal (const SwsFormat *fmt1, const SwsFormat *fmt2) |
| static int | ff_fmt_align (enum AVPixelFormat fmt) |
| int | ff_test_fmt (const SwsFormat *fmt, int output) |
| bool | ff_infer_colors (SwsColor *src, SwsColor *dst) |
| int | ff_sws_decode_pixfmt (SwsOpList *ops, enum AVPixelFormat fmt) |
| Append a set of operations for decoding/encoding raw pixels. More... | |
| int | ff_sws_encode_pixfmt (SwsOpList *ops, enum AVPixelFormat fmt) |
| int | ff_sws_decode_colors (SwsContext *ctx, SwsPixelType type, SwsOpList *ops, const SwsFormat *fmt, bool *incomplete) |
| Append a set of operations for transforming decoded pixel values to/from normalized RGB in the specified gamut and pixel type. More... | |
| int | ff_sws_encode_colors (SwsContext *ctx, SwsPixelType type, SwsOpList *ops, const SwsFormat *src, const SwsFormat *dst, bool *incomplete) |
| void | ff_sws_frame_from_avframe (SwsFrame *dst, const AVFrame *src) |
| Initialize a SwsFrame from an AVFrame. More... | |
| typedef enum SwsPixelType SwsPixelType |
|
inlinestatic |
Definition at line 31 of file format.h.
Referenced by ff_q_equal().
|
inlinestatic |
Definition at line 37 of file format.h.
Referenced by ff_cie_xy_equal(), and ff_color_equal().
Definition at line 42 of file format.h.
Referenced by apply_chromatic_adaptation(), and ff_prim_equal().
|
inlinestatic |
Definition at line 47 of file format.h.
Referenced by ff_color_equal(), and ff_sws_color_map_noop().
Definition at line 70 of file format.h.
Referenced by ff_sws_graph_update_metadata().
|
inlinestatic |
Definition at line 89 of file format.h.
Referenced by ff_fmt_from_pixfmt(), and ff_sws_op_list_alloc().
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 348 of file format.c.
Referenced by sws_frame_setup(), sws_is_noop(), and sws_test_frame().
| void ff_fmt_from_pixfmt | ( | enum AVPixelFormat | pixfmt, |
| SwsFormat * | fmt | ||
| ) |
Subset of ff_fmt_from_frame() that sets default metadata for the format.
Definition at line 482 of file format.c.
Referenced by enum_ops_fmt().
Definition at line 114 of file format.h.
Referenced by ff_props_equal().
Definition at line 124 of file format.h.
Referenced by ff_fmt_equal(), and sws_frame_setup().
Definition at line 135 of file format.h.
Referenced by ff_sws_graph_reinit(), init_passes(), and sws_is_noop().
|
inlinestatic |
| int ff_test_fmt | ( | const SwsFormat * | fmt, |
| int | output | ||
| ) |
Definition at line 613 of file format.c.
Referenced by sws_frame_setup(), and sws_test_frame().
Definition at line 539 of file format.c.
Referenced by adapt_colors(), and enum_ops_fmt().
| int ff_sws_decode_pixfmt | ( | SwsOpList * | ops, |
| enum AVPixelFormat | fmt | ||
| ) |
Append a set of operations for decoding/encoding raw pixels.
This will handle input read/write, swizzling, shifting and byte swapping.
Returns 0 on success, or a negative error code on failure.
Referenced by enum_ops_fmt().
| int ff_sws_encode_pixfmt | ( | SwsOpList * | ops, |
| enum AVPixelFormat | fmt | ||
| ) |
Referenced by enum_ops_fmt().
| int ff_sws_decode_colors | ( | SwsContext * | ctx, |
| SwsPixelType | type, | ||
| SwsOpList * | ops, | ||
| const SwsFormat * | fmt, | ||
| bool * | incomplete | ||
| ) |
Append a set of operations for transforming decoded pixel values to/from normalized RGB in the specified gamut and pixel type.
Returns 0 on success, or a negative error code on failure.
Referenced by enum_ops_fmt().
| int ff_sws_encode_colors | ( | SwsContext * | ctx, |
| SwsPixelType | type, | ||
| SwsOpList * | ops, | ||
| const SwsFormat * | src, | ||
| const SwsFormat * | dst, | ||
| bool * | incomplete | ||
| ) |
Referenced by enum_ops_fmt().
Initialize a SwsFrame from an AVFrame.
Definition at line 652 of file format.c.
Referenced by get_field(), and pass_alloc_output().
1.8.17