You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
532B

  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. // generating tables
  10. void SwScale_Init();