swscale.h File Reference


Detailed Description

external api for the swscale stuff

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 SwsContextsws_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)
SwsVectorsws_getGaussianVec (double variance, double quality)
 returns a normalized gaussian curve used to filter stuff quality=3 is high quality, lowwer is lowwer quality
SwsVectorsws_getConstVec (double c, int length)
SwsVectorsws_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)
SwsVectorsws_cloneVec (SwsVector *a)
void sws_printVec (SwsVector *a)
void sws_freeVec (SwsVector *a)
SwsFiltersws_getDefaultFilter (float lumaGBlur, float chromaGBlur, float lumaSarpen, float chromaSharpen, float chromaHShift, float chromaVShift, int verbose)
void sws_freeFilter (SwsFilter *filter)
struct SwsContextsws_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.


Function Documentation

void sws_freeContext ( struct SwsContext swsContext  ) 

Definition at line 549 of file imgresample.c.

Referenced by doTest(), and sws_getCachedContext().

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

Definition at line 2580 of file swscale.c.

int sws_setColorspaceDetails ( SwsContext c,
const int  inv_table[4],
int  srcRange,
const int  table[4],
int  dstRange,
int  brightness,
int  contrast,
int  saturation 
)

Parameters:
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
Returns:
-1 if not supported

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 
)

Returns:
-1 if not supported

Definition at line 1990 of file swscale.c.

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 
)

Definition at line 2668 of file swscale.c.

Referenced by sws_getIdentityVec().

SwsVector* sws_getIdentityVec ( void   ) 

Definition at line 2683 of file swscale.c.

Referenced by sws_getDefaultFilter().

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_convVec ( SwsVector a,
SwsVector b 
)

Definition at line 2808 of file swscale.c.

void sws_addVec ( SwsVector a,
SwsVector b 
)

Definition at line 2792 of file swscale.c.

Referenced by sws_getDefaultFilter().

void sws_subVec ( SwsVector a,
SwsVector b 
)

Definition at line 2800 of file swscale.c.

void sws_shiftVec ( SwsVector a,
int  shift 
)

Definition at line 2784 of file swscale.c.

Referenced by sws_getDefaultFilter().

SwsVector* sws_cloneVec ( SwsVector a  ) 

Definition at line 2816 of file swscale.c.

void sws_printVec ( SwsVector a  ) 

Definition at line 2829 of file swscale.c.

Referenced by sws_getDefaultFilter().

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 
)

Definition at line 2585 of file swscale.c.

void sws_freeFilter ( SwsFilter filter  ) 

Definition at line 2860 of file swscale.c.

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.


Generated on Sat Dec 18 05:15:56 2010 for MythTV by  doxygen 1.5.5