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
556B

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