comparison imgconvert.c @ 3558:33d29a80bcac libavcodec

Enable swscale usage in ffmpeg
author lucabe
date Tue, 08 Aug 2006 18:51:38 +0000
parents 54814e15aa3d
children 19c437d6aba5
comparison
equal deleted inserted replaced
3557:8e13ec0f8aa3 3558:33d29a80bcac
2046 } 2046 }
2047 } 2047 }
2048 return 0; 2048 return 0;
2049 } 2049 }
2050 2050
2051 #ifndef CONFIG_SWSCALER
2051 /* XXX: always use linesize. Return -1 if not supported */ 2052 /* XXX: always use linesize. Return -1 if not supported */
2052 int img_convert(AVPicture *dst, int dst_pix_fmt, 2053 int img_convert(AVPicture *dst, int dst_pix_fmt,
2053 const AVPicture *src, int src_pix_fmt, 2054 const AVPicture *src, int src_pix_fmt,
2054 int src_width, int src_height) 2055 int src_width, int src_height)
2055 { 2056 {
2287 ret = 0; 2288 ret = 0;
2288 fail1: 2289 fail1:
2289 avpicture_free(tmp); 2290 avpicture_free(tmp);
2290 return ret; 2291 return ret;
2291 } 2292 }
2293 #endif
2292 2294
2293 /* NOTE: we scan all the pixels to have an exact information */ 2295 /* NOTE: we scan all the pixels to have an exact information */
2294 static int get_alpha_info_pal8(const AVPicture *src, int width, int height) 2296 static int get_alpha_info_pal8(const AVPicture *src, int width, int height)
2295 { 2297 {
2296 const unsigned char *p; 2298 const unsigned char *p;