comparison avcodec.h @ 1508:5a43bc31c2eb libavcodec

recommit of promote avpicture_alloc to public interface patch by (Drew Hess <dhess at ilm dot com>)
author michael
date Sat, 11 Oct 2003 08:18:05 +0000
parents 010f76d07a27
children ca1da7d99d52
comparison
equal deleted inserted replaced
1507:f4cf270b98ae 1508:5a43bc31c2eb
1522 void img_resample(ImgReSampleContext *s, 1522 void img_resample(ImgReSampleContext *s,
1523 AVPicture *output, const AVPicture *input); 1523 AVPicture *output, const AVPicture *input);
1524 1524
1525 void img_resample_close(ImgReSampleContext *s); 1525 void img_resample_close(ImgReSampleContext *s);
1526 1526
1527 /**
1528 * Allocate memory for a picture. Call avpicture_free to free it.
1529 *
1530 * @param picture the picture to be filled in.
1531 * @param pix_fmt the format of the picture.
1532 * @param width the width of the picture.
1533 * @param height the height of the picture.
1534 * @return 0 if successful, -1 if not.
1535 */
1536 int avpicture_alloc(AVPicture *picture, int pix_fmt, int width, int height);
1537
1538 /* Free a picture previously allocated by avpicture_alloc. */
1539 void avpicture_free(AVPicture *picture);
1540
1527 int avpicture_fill(AVPicture *picture, uint8_t *ptr, 1541 int avpicture_fill(AVPicture *picture, uint8_t *ptr,
1528 int pix_fmt, int width, int height); 1542 int pix_fmt, int width, int height);
1529 int avpicture_layout(const AVPicture* src, int pix_fmt, int width, int height, 1543 int avpicture_layout(const AVPicture* src, int pix_fmt, int width, int height,
1530 unsigned char *dest, int dest_size); 1544 unsigned char *dest, int dest_size);
1531 int avpicture_get_size(int pix_fmt, int width, int height); 1545 int avpicture_get_size(int pix_fmt, int width, int height);