3272
|
1
|
|
2 #define SWS_FAST_BILINEAR 0
|
|
3 #define SWS_BILINEAR 1
|
|
4 #define SWS_BICUBIC 2
|
2217
|
5
|
2519
|
6 // *** bilinear scaling and yuv->rgb & yuv->yuv conversion of yv12 slices:
|
2217
|
7 // *** Note: it's called multiple times while decoding a frame, first time y==0
|
|
8 // *** Designed to upscale, but may work for downscale too.
|
2519
|
9 // dstbpp == 12 -> yv12 output
|
3209
|
10 void SwScale_YV12slice(unsigned char* srcptr[],int stride[], int srcSliceY,
|
|
11 int srcSliceH, uint8_t* dstptr[], int dststride, int dstbpp,
|
|
12 int srcW, int srcH, int dstW, int dstH);
|
2217
|
13 // generating tables
|
3344
|
14 void SwScale_Init(); |