Mercurial > libavcodec.hg
comparison avcodec.h @ 1488:766a2f4edbea libavcodec
avcodec const correctness patch by (Drew Hess <dhess at ilm dot com>)
author | michaelni |
---|---|
date | Mon, 29 Sep 2003 15:44:59 +0000 |
parents | f22010affdce |
children | 337d13aee605 |
comparison
equal
deleted
inserted
replaced
1487:dfd69e00951c | 1488:766a2f4edbea |
---|---|
518 * @param y the y position of the slice | 518 * @param y the y position of the slice |
519 * @param type 1->top field, 2->bottom field, 3->frame | 519 * @param type 1->top field, 2->bottom field, 3->frame |
520 * @param offset offset into the AVFrame.data from which the slice should be read | 520 * @param offset offset into the AVFrame.data from which the slice should be read |
521 */ | 521 */ |
522 void (*draw_horiz_band)(struct AVCodecContext *s, | 522 void (*draw_horiz_band)(struct AVCodecContext *s, |
523 AVFrame *src, int offset[4], | 523 const AVFrame *src, int offset[4], |
524 int y, int type, int height); | 524 int y, int type, int height); |
525 | 525 |
526 /* audio only */ | 526 /* audio only */ |
527 int sample_rate; ///< samples per sec | 527 int sample_rate; ///< samples per sec |
528 int channels; | 528 int channels; |
1481 int iwidth, int iheight, | 1481 int iwidth, int iheight, |
1482 int topBand, int bottomBand, | 1482 int topBand, int bottomBand, |
1483 int leftBand, int rightBand); | 1483 int leftBand, int rightBand); |
1484 | 1484 |
1485 void img_resample(ImgReSampleContext *s, | 1485 void img_resample(ImgReSampleContext *s, |
1486 AVPicture *output, AVPicture *input); | 1486 AVPicture *output, const AVPicture *input); |
1487 | 1487 |
1488 void img_resample_close(ImgReSampleContext *s); | 1488 void img_resample_close(ImgReSampleContext *s); |
1489 | 1489 |
1490 int avpicture_fill(AVPicture *picture, uint8_t *ptr, | 1490 int avpicture_fill(AVPicture *picture, uint8_t *ptr, |
1491 int pix_fmt, int width, int height); | 1491 int pix_fmt, int width, int height); |
1492 int avpicture_layout(AVPicture* src, int pix_fmt, int width, int height, | 1492 int avpicture_layout(const AVPicture* src, int pix_fmt, int width, int height, |
1493 unsigned char *dest, int dest_size); | 1493 unsigned char *dest, int dest_size); |
1494 int avpicture_get_size(int pix_fmt, int width, int height); | 1494 int avpicture_get_size(int pix_fmt, int width, int height); |
1495 void avcodec_get_chroma_sub_sample(int pix_fmt, int *h_shift, int *v_shift); | 1495 void avcodec_get_chroma_sub_sample(int pix_fmt, int *h_shift, int *v_shift); |
1496 const char *avcodec_get_pix_fmt_name(int pix_fmt); | 1496 const char *avcodec_get_pix_fmt_name(int pix_fmt); |
1497 enum PixelFormat avcodec_get_pix_fmt(const char* name); | 1497 enum PixelFormat avcodec_get_pix_fmt(const char* name); |
1508 int avcodec_find_best_pix_fmt(int pix_fmt_mask, int src_pix_fmt, | 1508 int avcodec_find_best_pix_fmt(int pix_fmt_mask, int src_pix_fmt, |
1509 int has_alpha, int *loss_ptr); | 1509 int has_alpha, int *loss_ptr); |
1510 | 1510 |
1511 #define FF_ALPHA_TRANSP 0x0001 /* image has some totally transparent pixels */ | 1511 #define FF_ALPHA_TRANSP 0x0001 /* image has some totally transparent pixels */ |
1512 #define FF_ALPHA_SEMI_TRANSP 0x0002 /* image has some transparent pixels */ | 1512 #define FF_ALPHA_SEMI_TRANSP 0x0002 /* image has some transparent pixels */ |
1513 int img_get_alpha_info(AVPicture *src, int pix_fmt, int width, int height); | 1513 int img_get_alpha_info(const AVPicture *src, |
1514 int pix_fmt, int width, int height); | |
1514 | 1515 |
1515 /* convert among pixel formats */ | 1516 /* convert among pixel formats */ |
1516 int img_convert(AVPicture *dst, int dst_pix_fmt, | 1517 int img_convert(AVPicture *dst, int dst_pix_fmt, |
1517 AVPicture *src, int pix_fmt, | 1518 const AVPicture *src, int pix_fmt, |
1518 int width, int height); | 1519 int width, int height); |
1519 | 1520 |
1520 /* deinterlace a picture */ | 1521 /* deinterlace a picture */ |
1521 int avpicture_deinterlace(AVPicture *dst, AVPicture *src, | 1522 int avpicture_deinterlace(AVPicture *dst, const AVPicture *src, |
1522 int pix_fmt, int width, int height); | 1523 int pix_fmt, int width, int height); |
1523 | 1524 |
1524 /* external high level API */ | 1525 /* external high level API */ |
1525 | 1526 |
1526 extern AVCodec *first_avcodec; | 1527 extern AVCodec *first_avcodec; |