comparison imgconvert.c @ 12320:035ca6548e29 libavcodec

Use av_fill_image_pointers/linesizes in place of ff_fill_pointer/linesize, and drop the the ff_ variants at the next major bump.
author stefano
date Sat, 31 Jul 2010 16:46:20 +0000
parents 0046ee0d227c
children 914f484bb476
comparison
equal deleted inserted replaced
12319:014e19fbfae7 12320:035ca6548e29
496 } 496 }
497 497
498 return 0; 498 return 0;
499 } 499 }
500 500
501 #if LIBAVCODEC_VERSION_MAJOR < 53
501 int ff_fill_linesize(AVPicture *picture, enum PixelFormat pix_fmt, int width) 502 int ff_fill_linesize(AVPicture *picture, enum PixelFormat pix_fmt, int width)
502 { 503 {
503 return av_fill_image_linesizes(picture->linesize, pix_fmt, width); 504 return av_fill_image_linesizes(picture->linesize, pix_fmt, width);
504 } 505 }
505 506
506 int ff_fill_pointer(AVPicture *picture, uint8_t *ptr, enum PixelFormat pix_fmt, 507 int ff_fill_pointer(AVPicture *picture, uint8_t *ptr, enum PixelFormat pix_fmt,
507 int height) 508 int height)
508 { 509 {
509 return av_fill_image_pointers(picture->data, pix_fmt, height, ptr, picture->linesize); 510 return av_fill_image_pointers(picture->data, pix_fmt, height, ptr, picture->linesize);
510 } 511 }
512 #endif
511 513
512 int avpicture_fill(AVPicture *picture, uint8_t *ptr, 514 int avpicture_fill(AVPicture *picture, uint8_t *ptr,
513 enum PixelFormat pix_fmt, int width, int height) 515 enum PixelFormat pix_fmt, int width, int height)
514 { 516 {
515 517