FFmpeg
Data Fields
SwsContext Struct Reference

Main external API structure. More...

#include <swscale.h>

Data Fields

const AVClassav_class
 
void * opaque
 Private data of the user, can be used to carry app specific stuff. More...
 
unsigned flags
 Bitmask of SWS_*. More...
 
double scaler_params [2]
 Extra parameters for fine-tuning certain scalers. More...
 
int threads
 How many threads to use for processing, or 0 for automatic selection. More...
 
SwsDither dither
 Dither mode. More...
 
SwsAlphaBlend alpha_blend
 Alpha blending mode. More...
 
int gamma_flag
 Use gamma correct scaling. More...
 
int src_w
 Deprecated frame property overrides, for the legacy API only. More...
 
int src_h
 Width and height of the source frame. More...
 
int dst_w
 
int dst_h
 Width and height of the destination frame. More...
 
int src_format
 Source pixel format. More...
 
int dst_format
 Destination pixel format. More...
 
int src_range
 Source is full range. More...
 
int dst_range
 Destination is full range. More...
 
int src_v_chr_pos
 Source vertical chroma position in luma grid / 256. More...
 
int src_h_chr_pos
 Source horizontal chroma position. More...
 
int dst_v_chr_pos
 Destination vertical chroma position. More...
 
int dst_h_chr_pos
 Destination horizontal chroma position. More...
 
int intent
 Desired ICC intent for color space conversions. More...
 

Detailed Description

Main external API structure.

New fields can be added to the end with minor version bumps. Removal, reordering and changes to existing fields require a major version bump. sizeof(SwsContext) is not part of the ABI.

Examples
mux.c, and scale_video.c.

Definition at line 182 of file swscale.h.

Field Documentation

◆ av_class

const AVClass* SwsContext::av_class

Definition at line 185 of file swscale.h.

◆ opaque

void* SwsContext::opaque

Private data of the user, can be used to carry app specific stuff.

Definition at line 190 of file swscale.h.

◆ flags

unsigned SwsContext::flags

◆ scaler_params

double SwsContext::scaler_params[2]

Extra parameters for fine-tuning certain scalers.

Definition at line 200 of file swscale.h.

Referenced by alloc_set_opts(), ff_sws_init_single_context(), sws_getCachedContext(), and sws_setColorspaceDetails().

◆ threads

int SwsContext::threads

How many threads to use for processing, or 0 for automatic selection.

Definition at line 205 of file swscale.h.

Referenced by context_init_threaded(), run_test(), scale_legacy(), and sws_init_context().

◆ dither

SwsDither SwsContext::dither

◆ alpha_blend

SwsAlphaBlend SwsContext::alpha_blend

Alpha blending mode.

See SwsAlphaBlend for details.

Definition at line 215 of file swscale.h.

Referenced by add_legacy_sws_pass(), ff_sws_init_single_context(), and sws_setColorspaceDetails().

◆ gamma_flag

int SwsContext::gamma_flag

Use gamma correct scaling.

Definition at line 220 of file swscale.h.

Referenced by add_legacy_sws_pass(), ff_sws_init_single_context(), and scale_internal().

◆ src_w

int SwsContext::src_w

Deprecated frame property overrides, for the legacy API only.

Ignored by sws_scale_frame() when used in dynamic mode, in which case all properties are instead taken from the frame directly.

Examples
scale_video.c.

Definition at line 228 of file swscale.h.

Referenced by add_legacy_sws_pass(), alloc_set_opts(), ff_scale_image(), ff_sws_init_single_context(), init_legacy_subpass(), main(), scale_internal(), scale_legacy(), sws_getCachedContext(), and sws_setColorspaceDetails().

◆ src_h

int SwsContext::src_h

◆ dst_w

int SwsContext::dst_w

◆ dst_h

int SwsContext::dst_h

◆ src_format

int SwsContext::src_format

◆ dst_format

int SwsContext::dst_format

◆ src_range

int SwsContext::src_range

◆ dst_range

int SwsContext::dst_range

◆ src_v_chr_pos

int SwsContext::src_v_chr_pos

Source vertical chroma position in luma grid / 256.

Definition at line 234 of file swscale.h.

Referenced by add_legacy_sws_pass(), and ff_sws_init_single_context().

◆ src_h_chr_pos

int SwsContext::src_h_chr_pos

Source horizontal chroma position.

Definition at line 235 of file swscale.h.

Referenced by add_legacy_sws_pass(), and ff_sws_init_single_context().

◆ dst_v_chr_pos

int SwsContext::dst_v_chr_pos

Destination vertical chroma position.

Definition at line 236 of file swscale.h.

Referenced by add_legacy_sws_pass(), and ff_sws_init_single_context().

◆ dst_h_chr_pos

int SwsContext::dst_h_chr_pos

Destination horizontal chroma position.

Definition at line 237 of file swscale.h.

Referenced by add_legacy_sws_pass(), and ff_sws_init_single_context().

◆ intent

int SwsContext::intent

Desired ICC intent for color space conversions.

Definition at line 242 of file swscale.h.

Referenced by adapt_colors().


The documentation for this struct was generated from the following file: