|
FFmpeg
|
#include "libavutil/avassert.h"#include "libavutil/opt.h"#include "libavutil/pixdesc.h"#include "libavutil/pixfmt.h"#include "avfilter.h"#include "colorspacedsp.h"#include "formats.h"#include "internal.h"#include "video.h"Go to the source code of this file.
Data Structures | |
| struct | ColorPrimaries |
| struct | TransferCharacteristics |
| struct | LumaCoefficients |
| struct | WhitepointCoefficients |
| struct | ColorSpaceContext |
| struct | ThreadData |
Macros | |
| #define | supported_depth(d) ((d) == 8 || (d) == 10 || (d) == 12) |
| #define | supported_subsampling(lcw, lch) (((lcw) == 0 && (lch) == 0) || ((lcw) == 1 && (lch) == 0) || ((lcw) == 1 && (lch) == 1)) |
| #define | supported_format(d) |
| #define | OFFSET(x) offsetof(ColorSpaceContext, x) |
| #define | FLAGS AV_OPT_FLAG_FILTERING_PARAM | AV_OPT_FLAG_VIDEO_PARAM |
| #define | ENUM(x, y, z) { x, "", 0, AV_OPT_TYPE_CONST, { .i64 = y }, INT_MIN, INT_MAX, FLAGS, z } |
Enumerations | |
| enum | DitherMode { DITHER_NONE, DITHER_FSB, DITHER_NB } |
| enum | Colorspace { CS_UNSPECIFIED, CS_BT470M, CS_BT470BG, CS_BT601_6_525, CS_BT601_6_625, CS_BT709, CS_SMPTE170M, CS_SMPTE240M, CS_BT2020, CS_NB } |
| enum | Whitepoint { WP_D65, WP_C, WP_NB } |
| enum | WhitepointAdaptation { WP_ADAPT_BRADFORD, WP_ADAPT_VON_KRIES, NB_WP_ADAPT_NON_IDENTITY, WP_ADAPT_IDENTITY = NB_WP_ADAPT_NON_IDENTITY, NB_WP_ADAPT } |
Functions | |
| static const struct LumaCoefficients * | get_luma_coefficients (enum AVColorSpace csp) |
| static void | fill_rgb2yuv_table (const struct LumaCoefficients *coeffs, double rgb2yuv[3][3]) |
| static const struct TransferCharacteristics * | get_transfer_characteristics (enum AVColorTransferCharacteristic trc) |
| static const struct ColorPrimaries * | get_color_primaries (enum AVColorPrimaries prm) |
| static void | invert_matrix3x3 (const double in[3][3], double out[3][3]) |
| static int | fill_gamma_table (ColorSpaceContext *s) |
| static void | fill_rgb2xyz_table (const struct ColorPrimaries *coeffs, double rgb2xyz[3][3]) |
| static void | mul3x3 (double dst[3][3], const double src1[3][3], const double src2[3][3]) |
| static void | fill_whitepoint_conv_table (double out[3][3], enum WhitepointAdaptation wp_adapt, enum Whitepoint src, enum Whitepoint dst) |
| static void | apply_lut (int16_t *buf[3], ptrdiff_t stride, int w, int h, const int16_t *lut) |
| static int | convert (AVFilterContext *ctx, void *data, int job_nr, int n_jobs) |
| static int | get_range_off (int *off, int *y_rng, int *uv_rng, enum AVColorRange rng, int depth) |
| static int | create_filtergraph (AVFilterContext *ctx, const AVFrame *in, const AVFrame *out) |
| static int | init (AVFilterContext *ctx) |
| static void | uninit (AVFilterContext *ctx) |
| static int | filter_frame (AVFilterLink *link, AVFrame *in) |
| static int | query_formats (AVFilterContext *ctx) |
| static int | config_props (AVFilterLink *outlink) |
| AVFILTER_DEFINE_CLASS (colorspace) | |
Variables | |
| static enum AVColorTransferCharacteristic | default_trc [CS_NB+1] |
| static enum AVColorPrimaries | default_prm [CS_NB+1] |
| static enum AVColorSpace | default_csp [CS_NB+1] |
| static const struct LumaCoefficients | luma_coefficients [AVCOL_SPC_NB] |
| static const struct TransferCharacteristics | transfer_characteristics [AVCOL_TRC_NB] |
| static const struct WhitepointCoefficients | whitepoint_coefficients [WP_NB] |
| static const struct ColorPrimaries | color_primaries [AVCOL_PRI_NB] |
| static const AVOption | colorspace_options [] |
| static const AVFilterPad | inputs [] |
| static const AVFilterPad | outputs [] |
| AVFilter | ff_vf_colorspace |
| #define supported_depth | ( | d | ) | ((d) == 8 || (d) == 10 || (d) == 12) |
| #define supported_subsampling | ( | lcw, | |
| lch | |||
| ) | (((lcw) == 0 && (lch) == 0) || ((lcw) == 1 && (lch) == 0) || ((lcw) == 1 && (lch) == 1)) |
| #define supported_format | ( | d | ) |
Referenced by create_filtergraph().
| #define OFFSET | ( | x | ) | offsetof(ColorSpaceContext, x) |
Definition at line 992 of file vf_colorspace.c.
| #define FLAGS AV_OPT_FLAG_FILTERING_PARAM | AV_OPT_FLAG_VIDEO_PARAM |
Definition at line 993 of file vf_colorspace.c.
| #define ENUM | ( | x, | |
| y, | |||
| z | |||
| ) | { x, "", 0, AV_OPT_TYPE_CONST, { .i64 = y }, INT_MIN, INT_MAX, FLAGS, z } |
Definition at line 994 of file vf_colorspace.c.
| enum DitherMode |
| Enumerator | |
|---|---|
| DITHER_NONE | |
| DITHER_FSB | |
| DITHER_NB | |
Definition at line 37 of file vf_colorspace.c.
| enum Colorspace |
| Enumerator | |
|---|---|
| CS_UNSPECIFIED | |
| CS_BT470M | |
| CS_BT470BG | |
| CS_BT601_6_525 | |
| CS_BT601_6_625 | |
| CS_BT709 | |
| CS_SMPTE170M | |
| CS_SMPTE240M | |
| CS_BT2020 | |
| CS_NB | |
Definition at line 43 of file vf_colorspace.c.
| enum Whitepoint |
| Enumerator | |
|---|---|
| WP_D65 | |
| WP_C | |
| WP_NB | |
Definition at line 56 of file vf_colorspace.c.
| enum WhitepointAdaptation |
| Enumerator | |
|---|---|
| WP_ADAPT_BRADFORD | |
| WP_ADAPT_VON_KRIES | |
| NB_WP_ADAPT_NON_IDENTITY | |
| WP_ADAPT_IDENTITY | |
| NB_WP_ADAPT | |
Definition at line 62 of file vf_colorspace.c.
|
static |
Definition at line 192 of file vf_colorspace.c.
Referenced by create_filtergraph().
|
static |
Definition at line 205 of file vf_colorspace.c.
Referenced by create_filtergraph().
|
static |
Definition at line 237 of file vf_colorspace.c.
Referenced by create_filtergraph().
|
static |
Definition at line 264 of file vf_colorspace.c.
Referenced by create_filtergraph().
|
static |
Definition at line 277 of file vf_colorspace.c.
Referenced by create_filtergraph(), fill_rgb2xyz_table(), and fill_whitepoint_conv_table().
|
static |
Definition at line 304 of file vf_colorspace.c.
Referenced by create_filtergraph().
|
static |
Definition at line 347 of file vf_colorspace.c.
Referenced by create_filtergraph().
|
static |
Definition at line 376 of file vf_colorspace.c.
Referenced by create_filtergraph(), and fill_whitepoint_conv_table().
|
static |
Definition at line 391 of file vf_colorspace.c.
Referenced by create_filtergraph().
|
static |
Definition at line 428 of file vf_colorspace.c.
Referenced by convert().
|
static |
Definition at line 451 of file vf_colorspace.c.
Referenced by filter_frame().
|
static |
Definition at line 521 of file vf_colorspace.c.
Referenced by create_filtergraph().
|
static |
Definition at line 541 of file vf_colorspace.c.
Referenced by filter_frame().
|
static |
Definition at line 819 of file vf_colorspace.c.
|
static |
Definition at line 828 of file vf_colorspace.c.
Referenced by filter_frame().
|
static |
Definition at line 846 of file vf_colorspace.c.
|
static |
Definition at line 953 of file vf_colorspace.c.
|
static |
Definition at line 980 of file vf_colorspace.c.
| AVFILTER_DEFINE_CLASS | ( | colorspace | ) |
|
static |
Definition at line 70 of file vf_colorspace.c.
Referenced by filter_frame().
|
static |
Definition at line 83 of file vf_colorspace.c.
Referenced by filter_frame().
|
static |
Definition at line 96 of file vf_colorspace.c.
Referenced by filter_frame().
|
static |
Definition at line 182 of file vf_colorspace.c.
|
static |
Definition at line 226 of file vf_colorspace.c.
Referenced by vaapi_encode_h265_write_vui_parameters().
|
static |
Definition at line 250 of file vf_colorspace.c.
|
static |
Definition at line 255 of file vf_colorspace.c.
Referenced by mov_read_colr().
|
static |
Definition at line 996 of file vf_colorspace.c.
|
static |
Definition at line 1081 of file vf_colorspace.c.
|
static |
Definition at line 1090 of file vf_colorspace.c.
| AVFilter ff_vf_colorspace |
Definition at line 1099 of file vf_colorspace.c.
1.8.6