|
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... | |
Macros | |
| #define | XYZ_TRC AVCOL_TRC_SMPTE428 |
| #define | XYZ_RGB_TRC AVCOL_TRC_GAMMA22 |
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. | |
| void | ff_fmt_from_pixfmt (enum AVPixelFormat pixfmt, SwsFormat *fmt) |
| Subset of ff_fmt_from_frame() that sets default metadata for the format. | |
| static int | ff_color_equal (const SwsColor *c1, const SwsColor *c2) |
| static int | ff_fmt_equal (const SwsFormat *fmt1, const SwsFormat *fmt2) |
| static int | ff_fmt_align (enum AVPixelFormat fmt) |
| int | ff_sws_test_pixfmt_backend (const SwsBackend backends, enum AVPixelFormat format, int output) |
| int | ff_test_fmt (SwsBackend backends, const SwsFormat *fmt, int output) |
| Statically test if a given format is supported by the given set of backends. | |
| bool | ff_infer_colors (SwsColor *src, SwsColor *dst) |
| bool | ff_infer_chroma_loc (SwsFormat *src, SwsFormat *dst) |
| Infers an unspecified chroma location of a subsampled format from the other format. | |
| void | ff_sws_chroma_pos (const SwsFormat *fmt, bool *incomplete, int *out_xpos, int *out_ypos) |
| Wrapper around av_chroma_location_enum_to_pos() that accounts for the per-field offset introduced by interlacing. | |
| int | ff_sws_op_list_generate (SwsContext *ctx, const SwsFormat *src, const SwsFormat *dst, const SwsLut3D *lut3d, SwsOpList **out_ops, bool *incomplete) |
Generate an SwsOpList defining a conversion from src to dst, with an optional 3DLUT for converting between gamuts. | |
| void | ff_sws_frame_from_avframe (SwsFrame *dst, const AVFrame *src) |
| Initialize a SwsFrame from an AVFrame. | |
| #define XYZ_TRC AVCOL_TRC_SMPTE428 |
Definition at line 61 of file format.h.
Referenced by ff_sws_fill_st428_tables(), and init_xyz_tables().
| #define XYZ_RGB_TRC AVCOL_TRC_GAMMA22 |
Definition at line 62 of file format.h.
Referenced by ff_sws_fill_st428_tables(), and init_xyz_tables().
|
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 74 of file format.h.
Referenced by ff_sws_graph_update_metadata().
|
inlinestatic |
Definition at line 94 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 342 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 480 of file format.c.
Referenced by enum_ops_fmt().
Definition at line 119 of file format.h.
Referenced by ff_fmt_equal().
Definition at line 129 of file format.h.
Referenced by ff_sws_graph_reinit(), init_passes(), sws_frame_setup(), and sws_is_noop().
|
inlinestatic |
| int ff_sws_test_pixfmt_backend | ( | const SwsBackend | backends, |
| enum AVPixelFormat | format, | ||
| int | output ) |
Definition at line 623 of file format.c.
Referenced by ff_test_fmt(), sws_test_format(), and test_formats().
| int ff_test_fmt | ( | SwsBackend | backends, |
| const SwsFormat * | fmt, | ||
| int | output ) |
Statically test if a given format is supported by the given set of backends.
This is a heuristic, which may have false positives if a specific backend does not actually implement all operations that would be required to support the format.
Definition at line 689 of file format.c.
Referenced by sws_frame_setup(), and sws_test_frame().
Definition at line 537 of file format.c.
Referenced by enum_ops_fmt(), and generate_3dlut().
Infers an unspecified chroma location of a subsampled format from the other format.
Returns true if a location was inferred, false otherwise.
Definition at line 565 of file format.c.
Referenced by init_passes(), and sws_is_noop().
| void ff_sws_chroma_pos | ( | const SwsFormat * | fmt, |
| bool * | incomplete, | ||
| int * | out_xpos, | ||
| int * | out_ypos ) |
Wrapper around av_chroma_location_enum_to_pos() that accounts for the per-field offset introduced by interlacing.
Definition at line 575 of file format.c.
Referenced by add_legacy_sws_pass().
| int ff_sws_op_list_generate | ( | SwsContext * | ctx, |
| const SwsFormat * | src, | ||
| const SwsFormat * | dst, | ||
| const SwsLut3D * | lut3d, | ||
| SwsOpList ** | out_ops, | ||
| bool * | incomplete ) |
Generate an SwsOpList defining a conversion from src to dst, with an optional 3DLUT for converting between gamuts.
Returns 0 on success, or a negative error code on failure.
Definition at line 1821 of file format.c.
Referenced by add_ops_convert_pass(), and enum_ops_fmt().
Initialize a SwsFrame from an AVFrame.
Definition at line 729 of file format.c.
Referenced by get_field(), and pass_alloc_output().