Originally committed as revision 2218 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
Arpi authored on 2001/10/16 04:06:161 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,12 @@ |
0 |
+ |
|
1 |
+// *** bilinear scaling and yuv->rgb conversion of yv12 slices: |
|
2 |
+// *** Note: it's called multiple times while decoding a frame, first time y==0 |
|
3 |
+// *** Designed to upscale, but may work for downscale too. |
|
4 |
+// s_xinc = (src_width << 8) / dst_width |
|
5 |
+// s_yinc = (src_height << 16) / dst_height |
|
6 |
+void SwScale_YV12slice_brg24(unsigned char* srcptr[],int stride[], int y, int h, |
|
7 |
+ unsigned char* dstptr, int dststride, int dstw, int dstbpp, |
|
8 |
+ unsigned int s_xinc,unsigned int s_yinc); |
|
9 |
+ |
|
10 |
+// generating tables |
|
11 |
+void SwScale_Init(); |