|
FFmpeg 9.0
|
Main external API structure. More...
#include <libswscale/swscale.h>
Data Fields | |
| const AVClass * | av_class |
| void * | opaque |
| Private data of the user, can be used to carry app specific stuff. | |
| unsigned | flags |
| Bitmask of SWS_*. | |
| double | scaler_params [SWS_NUM_SCALER_PARAMS] |
| int | threads |
| How many threads to use for processing, or 0 for automatic selection. | |
| SwsDither | dither |
| Dither mode. | |
| SwsAlphaBlend | alpha_blend |
| Alpha blending mode. | |
| int | gamma_flag |
| Use gamma correct scaling. | |
| int | src_w |
| Deprecated frame property overrides, for the legacy API only. | |
| int | src_h |
| Width and height of the source frame. | |
| int | dst_w |
| int | dst_h |
| Width and height of the destination frame. | |
| int | src_format |
| Source pixel format. | |
| int | dst_format |
| Destination pixel format. | |
| int | src_range |
| Source is full range. | |
| int | dst_range |
| Destination is full range. | |
| int | src_v_chr_pos |
| Source vertical chroma position in luma grid / 256. | |
| int | src_h_chr_pos |
| Source horizontal chroma position. | |
| int | dst_v_chr_pos |
| Destination vertical chroma position. | |
| int | dst_h_chr_pos |
| Destination horizontal chroma position. | |
| int | intent |
| Desired ICC intent for color space conversions. | |
| SwsScaler | scaler |
| Scaling filter. | |
| SwsScaler | scaler_sub |
| Scaler used specifically for up/downsampling subsampled (chroma) planes. | |
| SwsBackend | backends |
| Bitmask of SWS_BACKEND_*. | |
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.
| void* SwsContext::opaque |
| unsigned SwsContext::flags |
| double SwsContext::scaler_params[SWS_NUM_SCALER_PARAMS] |
| int SwsContext::threads |
| SwsAlphaBlend SwsContext::alpha_blend |
| 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.
Definition at line 272 of file swscale.h.
Referenced by main().
| int SwsContext::src_h |
Width and height of the source frame.
Definition at line 272 of file swscale.h.
Referenced by main().
| int SwsContext::dst_w |
| int SwsContext::dst_h |
Width and height of the destination frame.
Definition at line 273 of file swscale.h.
Referenced by main().
| int SwsContext::src_v_chr_pos |
| int SwsContext::src_h_chr_pos |
| int SwsContext::dst_v_chr_pos |
| int SwsContext::dst_h_chr_pos |
| int SwsContext::intent |
| SwsScaler SwsContext::scaler |
Scaling filter.
If set to something other than SWS_SCALE_AUTO, this will override the filter implied by SwsContext.flags.
Note: Does not affect the legacy (stateful) API.
| SwsScaler SwsContext::scaler_sub |
Scaler used specifically for up/downsampling subsampled (chroma) planes.
If set to something other than SWS_SCALE_AUTO, this will override the filter implied by SwsContext.scaler. Otherwise, the same filter will be used for both main scaling and chroma subsampling.
| SwsBackend SwsContext::backends |
Bitmask of SWS_BACKEND_*.
If non-zero, this will restrict the available backends to the specified set. If left as zero, a default set of backends will be selected automatically (based on SWS_UNSTABLE).
Note: This is only relevant for the new API (sws_scale_frame()). The stateful legacy API always implies SWS_BACKEND_LEGACY.