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.

14 lines
566B

  1. // *** bilinear scaling and yuv->rgb & yuv->yuv 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. // dstbpp == 12 -> yv12 output
  7. void SwScale_YV12slice(unsigned char* srcptr[],int stride[], int y, int h,
  8. uint8_t* dstptr[], int dststride, int dstw, int dstbpp,
  9. unsigned int s_xinc,unsigned int s_yinc);
  10. // generating tables
  11. void SwScale_Init();