comparison imgconvert.c @ 1023:e61be5796027 libavcodec

img_convert() (YUV to YUV) patch by (Max Krasnyansky <maxk at qualcomm dot com>)
author michaelni
date Mon, 20 Jan 2003 22:41:48 +0000
parents d651df667898
children e76fb91de4cc
comparison
equal deleted inserted replaced
1022:d651df667898 1023:e61be5796027
1188 } 1188 }
1189 1189
1190 img_copy(dst->data[0], dst->linesize[0], 1190 img_copy(dst->data[0], dst->linesize[0],
1191 src->data[0], src->linesize[0], 1191 src->data[0], src->linesize[0],
1192 dst_width, dst_height); 1192 dst_width, dst_height);
1193
1193 for(i = 1;i <= 2; i++) 1194 for(i = 1;i <= 2; i++)
1194 resize_func(dst->data[1], dst->linesize[1], 1195 resize_func(dst->data[i], dst->linesize[i],
1195 src->data[1], src->linesize[1], 1196 src->data[i], src->linesize[i],
1196 w, h); 1197 w, h);
1198 return 0;
1197 } 1199 }
1198 1200
1199 /* try to use an intermediate format */ 1201 /* try to use an intermediate format */
1200 if (src_pix_fmt == PIX_FMT_MONOWHITE || 1202 if (src_pix_fmt == PIX_FMT_MONOWHITE ||
1201 src_pix_fmt == PIX_FMT_MONOBLACK || 1203 src_pix_fmt == PIX_FMT_MONOBLACK ||