Mercurial > libavcodec.hg
comparison imgconvert.c @ 396:fce0a2520551 libavcodec
removed useless header includes - use av memory functions
author | glantau |
---|---|
date | Sat, 18 May 2002 23:03:29 +0000 |
parents | 40d8092e2ff0 |
children | 718a22dc121f |
comparison
equal
deleted
inserted
replaced
395:80518daaab05 | 396:fce0a2520551 |
---|---|
479 { | 479 { |
480 UINT8 *src, *ptr; | 480 UINT8 *src, *ptr; |
481 int y, y1, i; | 481 int y, y1, i; |
482 UINT8 *buf; | 482 UINT8 *buf; |
483 | 483 |
484 buf= (UINT8*) malloc(5 * width); | 484 buf = (UINT8*)av_malloc(5 * width); |
485 | 485 |
486 src = src1; | 486 src = src1; |
487 for(y=0;y<height;y+=2) { | 487 for(y=0;y<height;y+=2) { |
488 /* copy top field line */ | 488 /* copy top field line */ |
489 memcpy(dst, src, width); | 489 memcpy(dst, src, width); |
509 deinterlace_line(dst, buf, width, width); | 509 deinterlace_line(dst, buf, width, width); |
510 } | 510 } |
511 dst += dst_wrap; | 511 dst += dst_wrap; |
512 src += (2 + 1) * src_wrap; | 512 src += (2 + 1) * src_wrap; |
513 } | 513 } |
514 free(buf); | 514 av_free(buf); |
515 } | 515 } |
516 | 516 |
517 | 517 |
518 /* deinterlace, return -1 if format not handled */ | 518 /* deinterlace, return -1 if format not handled */ |
519 int avpicture_deinterlace(AVPicture *dst, AVPicture *src, | 519 int avpicture_deinterlace(AVPicture *dst, AVPicture *src, |