Definition in file swscale.h.
Go to the source code of this file.
Classes | |
| struct | SwsVector |
| struct | SwsFilter |
Functions | |
| void | sws_freeContext (struct SwsContext *swsContext) |
| struct SwsContext * | sws_getContext (int srcW, int srcH, int srcFormat, int dstW, int dstH, int dstFormat, int flags, SwsFilter *srcFilter, SwsFilter *dstFilter, double *param) |
| int | sws_scale (struct SwsContext *context, uint8_t *src[], int srcStride[], int srcSliceY, int srcSliceH, uint8_t *dst[], int dstStride[]) |
| swscale warper, so we don't need to export the SwsContext. | |
| int | sws_scale_ordered (struct SwsContext *context, uint8_t *src[], int srcStride[], int srcSliceY, int srcSliceH, uint8_t *dst[], int dstStride[]) attribute_deprecated |
| swscale warper, so we don't need to export the SwsContext | |
| int | sws_setColorspaceDetails (struct SwsContext *c, const int inv_table[4], int srcRange, const int table[4], int dstRange, int brightness, int contrast, int saturation) |
| int | sws_getColorspaceDetails (struct SwsContext *c, int **inv_table, int *srcRange, int **table, int *dstRange, int *brightness, int *contrast, int *saturation) |
| SwsVector * | sws_getGaussianVec (double variance, double quality) |
| returns a normalized gaussian curve used to filter stuff quality=3 is high quality, lowwer is lowwer quality | |
| SwsVector * | sws_getConstVec (double c, int length) |
| SwsVector * | sws_getIdentityVec (void) |
| void | sws_scaleVec (SwsVector *a, double scalar) |
| void | sws_normalizeVec (SwsVector *a, double height) |
| void | sws_convVec (SwsVector *a, SwsVector *b) |
| void | sws_addVec (SwsVector *a, SwsVector *b) |
| void | sws_subVec (SwsVector *a, SwsVector *b) |
| void | sws_shiftVec (SwsVector *a, int shift) |
| SwsVector * | sws_cloneVec (SwsVector *a) |
| void | sws_printVec (SwsVector *a) |
| void | sws_freeVec (SwsVector *a) |
| SwsFilter * | sws_getDefaultFilter (float lumaGBlur, float chromaGBlur, float lumaSarpen, float chromaSharpen, float chromaHShift, float chromaVShift, int verbose) |
| void | sws_freeFilter (SwsFilter *filter) |
| struct SwsContext * | sws_getCachedContext (struct SwsContext *context, int srcW, int srcH, int srcFormat, int dstW, int dstH, int dstFormat, int flags, SwsFilter *srcFilter, SwsFilter *dstFilter, double *param) |
| Checks if context is valid or reallocs a new one instead. | |
| void sws_freeContext | ( | struct SwsContext * | swsContext | ) |
| struct SwsContext* sws_getContext | ( | int | srcW, | |
| int | srcH, | |||
| int | srcFormat, | |||
| int | dstW, | |||
| int | dstH, | |||
| int | dstFormat, | |||
| int | flags, | |||
| SwsFilter * | srcFilter, | |||
| SwsFilter * | dstFilter, | |||
| double * | param | |||
| ) | [read] |
Definition at line 515 of file imgresample.c.
Referenced by doTest(), main(), and sws_getCachedContext().
| int sws_scale | ( | SwsContext * | c, | |
| uint8_t * | src[], | |||
| int | srcStride[], | |||
| int | srcSliceY, | |||
| int | srcSliceH, | |||
| uint8_t * | dst[], | |||
| int | dstStride[] | |||
| ) |
swscale warper, so we don't need to export the SwsContext.
assumes planar YUV to be in YUV order instead of YVU
Definition at line 599 of file imgresample.c.
Referenced by doTest(), main(), and sws_scale_ordered().
| int sws_scale_ordered | ( | struct SwsContext * | context, | |
| uint8_t * | src[], | |||
| int | srcStride[], | |||
| int | srcSliceY, | |||
| int | srcSliceH, | |||
| uint8_t * | dst[], | |||
| int | dstStride[] | |||
| ) |
swscale warper, so we don't need to export the SwsContext
| int sws_setColorspaceDetails | ( | SwsContext * | c, | |
| const int | inv_table[4], | |||
| int | srcRange, | |||
| const int | table[4], | |||
| int | dstRange, | |||
| int | brightness, | |||
| int | contrast, | |||
| int | saturation | |||
| ) |
| inv_table | the yuv2rgb coeffs, normally Inverse_Table_6_9[x] | |
| fullRange | if 1 then the luma range is 0..255 if 0 it is 16..235 |
Definition at line 1931 of file swscale.c.
Referenced by sws_getContext().
| int sws_getColorspaceDetails | ( | SwsContext * | c, | |
| int ** | inv_table, | |||
| int * | srcRange, | |||
| int ** | table, | |||
| int * | dstRange, | |||
| int * | brightness, | |||
| int * | contrast, | |||
| int * | saturation | |||
| ) |
| SwsVector* sws_getGaussianVec | ( | double | variance, | |
| double | quality | |||
| ) |
returns a normalized gaussian curve used to filter stuff quality=3 is high quality, lowwer is lowwer quality
Definition at line 2647 of file swscale.c.
Referenced by sws_getDefaultFilter().
| SwsVector* sws_getConstVec | ( | double | c, | |
| int | length | |||
| ) |
| SwsVector* sws_getIdentityVec | ( | void | ) |
| void sws_scaleVec | ( | SwsVector * | a, | |
| double | scalar | |||
| ) |
Definition at line 2697 of file swscale.c.
Referenced by sws_getDefaultFilter(), and sws_normalizeVec().
| void sws_normalizeVec | ( | SwsVector * | a, | |
| double | height | |||
| ) |
Definition at line 2704 of file swscale.c.
Referenced by sws_getDefaultFilter(), and sws_getGaussianVec().
| void sws_shiftVec | ( | SwsVector * | a, | |
| int | shift | |||
| ) |
| void sws_printVec | ( | SwsVector * | a | ) |
| void sws_freeVec | ( | SwsVector * | a | ) |
Definition at line 2852 of file swscale.c.
Referenced by initFilter(), sws_freeFilter(), and sws_getDefaultFilter().
| SwsFilter* sws_getDefaultFilter | ( | float | lumaGBlur, | |
| float | chromaGBlur, | |||
| float | lumaSarpen, | |||
| float | chromaSharpen, | |||
| float | chromaHShift, | |||
| float | chromaVShift, | |||
| int | verbose | |||
| ) |
| struct SwsContext* sws_getCachedContext | ( | struct SwsContext * | context, | |
| int | srcW, | |||
| int | srcH, | |||
| int | srcFormat, | |||
| int | dstW, | |||
| int | dstH, | |||
| int | dstFormat, | |||
| int | flags, | |||
| SwsFilter * | srcFilter, | |||
| SwsFilter * | dstFilter, | |||
| double * | param | |||
| ) | [read] |
Checks if context is valid or reallocs a new one instead.
If context is NULL, just calls sws_getContext() to get a new one. Otherwise, checks if the parameters are the same already saved in context. If that is the case, returns the current context. Otherwise, frees context and gets a new one.
Be warned that srcFilter, dstFilter are not checked, they are asumed to remain valid.
Definition at line 574 of file imgresample.c.
1.5.5