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"
#include "colorspace.h"
Go to the source code of this file.
Data Structures | |
struct | ColorPrimaries |
struct | TransferCharacteristics |
struct | ColorSpaceContext |
struct | ThreadData |
Used for passing data between threads. More... | |
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_DCI, WP_E, 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 } |
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 double | ycgco_matrix [3][3] |
static const double | gbr_matrix [3][3] |
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 38 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 44 of file vf_colorspace.c.
enum Whitepoint |
Enumerator | |
---|---|
WP_D65 | |
WP_C | |
WP_DCI | |
WP_E | |
WP_NB |
Definition at line 57 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 65 of file vf_colorspace.c.
|
static |
Definition at line 205 of file vf_colorspace.c.
Referenced by create_filtergraph().
|
static |
Definition at line 218 of file vf_colorspace.c.
Referenced by create_filtergraph().
|
static |
Definition at line 261 of file vf_colorspace.c.
Referenced by create_filtergraph().
|
static |
Definition at line 295 of file vf_colorspace.c.
Referenced by create_filtergraph().
|
static |
Definition at line 308 of file vf_colorspace.c.
Referenced by create_filtergraph().
|
static |
Definition at line 352 of file vf_colorspace.c.
Referenced by create_filtergraph().
|
static |
Definition at line 389 of file vf_colorspace.c.
Referenced by convert().
|
static |
Definition at line 412 of file vf_colorspace.c.
Referenced by filter_frame().
|
static |
Definition at line 482 of file vf_colorspace.c.
Referenced by create_filtergraph().
|
static |
Definition at line 512 of file vf_colorspace.c.
Referenced by filter_frame().
|
static |
Definition at line 807 of file vf_colorspace.c.
|
static |
Definition at line 816 of file vf_colorspace.c.
Referenced by filter_frame().
|
static |
Definition at line 834 of file vf_colorspace.c.
|
static |
Definition at line 945 of file vf_colorspace.c.
|
static |
Definition at line 973 of file vf_colorspace.c.
AVFILTER_DEFINE_CLASS | ( | colorspace | ) |
|
static |
Definition at line 73 of file vf_colorspace.c.
Referenced by create_filtergraph(), and filter_frame().
|
static |
Definition at line 86 of file vf_colorspace.c.
Referenced by create_filtergraph(), and filter_frame().
|
static |
Definition at line 99 of file vf_colorspace.c.
Referenced by create_filtergraph(), and filter_frame().
|
static |
Definition at line 173 of file vf_colorspace.c.
Referenced by fill_rgb2yuv_table().
|
static |
Definition at line 180 of file vf_colorspace.c.
Referenced by fill_rgb2yuv_table().
|
static |
Definition at line 193 of file vf_colorspace.c.
|
static |
Definition at line 248 of file vf_colorspace.c.
Referenced by color_config(), parse_color_config(), sequence_display_extension(), vui_parameters(), and vui_parameters_default().
|
static |
Definition at line 274 of file vf_colorspace.c.
|
static |
Definition at line 281 of file vf_colorspace.c.
Referenced by color_config(), mov_read_colr(), mov_read_vpcc(), and parse_color_config().
|
static |
Definition at line 996 of file vf_colorspace.c.
|
static |
Definition at line 1113 of file vf_colorspace.c.
|
static |
Definition at line 1122 of file vf_colorspace.c.
AVFilter ff_vf_colorspace |
Definition at line 1131 of file vf_colorspace.c.