Main external API structure.
More...
#include <libswscale/swscale.h>
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 191 of file swscale.h.
◆ av_class
| const AVClass* SwsContext::av_class |
◆ opaque
Private data of the user, can be used to carry app specific stuff.
Definition at line 197 of file swscale.h.
◆ flags
| unsigned SwsContext::flags |
Bitmask of SWS_*.
See SwsFlags for details.
Definition at line 202 of file swscale.h.
◆ scaler_params
| double SwsContext::scaler_params[2] |
Extra parameters for fine-tuning certain scalers.
Definition at line 207 of file swscale.h.
◆ threads
How many threads to use for processing, or 0 for automatic selection.
Definition at line 212 of file swscale.h.
◆ dither
◆ alpha_blend
Alpha blending mode.
See SwsAlphaBlend for details.
Definition at line 222 of file swscale.h.
◆ gamma_flag
| int SwsContext::gamma_flag |
Use gamma correct scaling.
Definition at line 227 of file swscale.h.
◆ 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 235 of file swscale.h.
Referenced by main().
◆ src_h
◆ dst_w
◆ dst_h
◆ src_format
| int SwsContext::src_format |
Source pixel format.
Definition at line 237 of file swscale.h.
◆ dst_format
| int SwsContext::dst_format |
Destination pixel format.
Definition at line 238 of file swscale.h.
◆ src_range
| int SwsContext::src_range |
Source is full range.
Definition at line 239 of file swscale.h.
◆ dst_range
| int SwsContext::dst_range |
Destination is full range.
Definition at line 240 of file swscale.h.
◆ src_v_chr_pos
| int SwsContext::src_v_chr_pos |
Source vertical chroma position in luma grid / 256.
Definition at line 241 of file swscale.h.
◆ src_h_chr_pos
| int SwsContext::src_h_chr_pos |
Source horizontal chroma position.
Definition at line 242 of file swscale.h.
◆ dst_v_chr_pos
| int SwsContext::dst_v_chr_pos |
Destination vertical chroma position.
Definition at line 243 of file swscale.h.
◆ dst_h_chr_pos
| int SwsContext::dst_h_chr_pos |
Destination horizontal chroma position.
Definition at line 244 of file swscale.h.
◆ intent
Desired ICC intent for color space conversions.
Definition at line 249 of file swscale.h.
The documentation for this struct was generated from the following file: