2217
|
1
|
2519
|
2 // *** bilinear scaling and yuv->rgb & yuv->yuv conversion of yv12 slices:
|
2217
|
3 // *** Note: it's called multiple times while decoding a frame, first time y==0
|
|
4 // *** Designed to upscale, but may work for downscale too.
|
|
5 // s_xinc = (src_width << 8) / dst_width
|
|
6 // s_yinc = (src_height << 16) / dst_height
|
2519
|
7 // dstbpp == 12 -> yv12 output
|
|
8 void SwScale_YV12slice(unsigned char* srcptr[],int stride[], int y, int h,
|
|
9 uint8_t* dstptr[], int dststride, int dstw, int dstbpp,
|
|
10 unsigned int s_xinc,unsigned int s_yinc);
|
2217
|
11
|
|
12 // generating tables
|
|
13 void SwScale_Init();
|