comparison libswscale/swscale-example.c @ 29505:fa1ad0b67187

swscale-example: Use SWS_BILINEAR instead of hardcoded value.
author ramiro
date Sun, 23 Aug 2009 20:29:49 +0000
parents a3e1ef1c76d0
children b7d639772e17
comparison
equal deleted inserted replaced
29504:940fb22fd9dd 29505:fa1ad0b67187
223 int stride[4]={W, W, W, W}; 223 int stride[4]={W, W, W, W};
224 int x, y; 224 int x, y;
225 struct SwsContext *sws; 225 struct SwsContext *sws;
226 AVLFG rand; 226 AVLFG rand;
227 227
228 sws= sws_getContext(W/12, H/12, PIX_FMT_RGB32, W, H, PIX_FMT_YUVA420P, 2, NULL, NULL, NULL); 228 sws= sws_getContext(W/12, H/12, PIX_FMT_RGB32, W, H, PIX_FMT_YUVA420P, SWS_BILINEAR, NULL, NULL, NULL);
229 229
230 av_lfg_init(&rand, 1); 230 av_lfg_init(&rand, 1);
231 231
232 for (y=0; y<H; y++) { 232 for (y=0; y<H; y++) {
233 for (x=0; x<W*4; x++) { 233 for (x=0; x<W*4; x++) {