comparison avcodec.h @ 1064:b32afefe7d33 libavcodec

* UINTX -> uintx_t INTX -> intx_t
author kabi
date Tue, 11 Feb 2003 16:35:48 +0000
parents 3c3da6edc9a1
children 01154fced380
comparison
equal deleted inserted replaced
1063:fdeac9642346 1064:b32afefe7d33
391 * before 391 * before
392 * encoding: unused 392 * encoding: unused
393 * decoding: set by user. 393 * decoding: set by user.
394 */ 394 */
395 void (*draw_horiz_band)(struct AVCodecContext *s, 395 void (*draw_horiz_band)(struct AVCodecContext *s,
396 UINT8 **src_ptr, int linesize, 396 uint8_t **src_ptr, int linesize,
397 int y, int width, int height); 397 int y, int width, int height);
398 398
399 /* audio only */ 399 /* audio only */
400 int sample_rate; /* samples per sec */ 400 int sample_rate; /* samples per sec */
401 int channels; 401 int channels;
990 const char *name; 990 const char *name;
991 int type; 991 int type;
992 int id; 992 int id;
993 int priv_data_size; 993 int priv_data_size;
994 int (*init)(AVCodecContext *); 994 int (*init)(AVCodecContext *);
995 int (*encode)(AVCodecContext *, UINT8 *buf, int buf_size, void *data); 995 int (*encode)(AVCodecContext *, uint8_t *buf, int buf_size, void *data);
996 int (*close)(AVCodecContext *); 996 int (*close)(AVCodecContext *);
997 int (*decode)(AVCodecContext *, void *outdata, int *outdata_size, 997 int (*decode)(AVCodecContext *, void *outdata, int *outdata_size,
998 UINT8 *buf, int buf_size); 998 uint8_t *buf, int buf_size);
999 int capabilities; 999 int capabilities;
1000 const AVOption *options; 1000 const AVOption *options;
1001 struct AVCodec *next; 1001 struct AVCodec *next;
1002 } AVCodec; 1002 } AVCodec;
1003 1003
1004 /** 1004 /**
1005 * four components are given, that's all. 1005 * four components are given, that's all.
1006 * the last component is alpha 1006 * the last component is alpha
1007 */ 1007 */
1008 typedef struct AVPicture { 1008 typedef struct AVPicture {
1009 UINT8 *data[4]; 1009 uint8_t *data[4];
1010 int linesize[4]; 1010 int linesize[4];
1011 } AVPicture; 1011 } AVPicture;
1012 1012
1013 extern AVCodec ac3_encoder; 1013 extern AVCodec ac3_encoder;
1014 extern AVCodec mp2_encoder; 1014 extern AVCodec mp2_encoder;
1108 void img_resample(ImgReSampleContext *s, 1108 void img_resample(ImgReSampleContext *s,
1109 AVPicture *output, AVPicture *input); 1109 AVPicture *output, AVPicture *input);
1110 1110
1111 void img_resample_close(ImgReSampleContext *s); 1111 void img_resample_close(ImgReSampleContext *s);
1112 1112
1113 int avpicture_fill(AVPicture *picture, UINT8 *ptr, 1113 int avpicture_fill(AVPicture *picture, uint8_t *ptr,
1114 int pix_fmt, int width, int height); 1114 int pix_fmt, int width, int height);
1115 int avpicture_get_size(int pix_fmt, int width, int height); 1115 int avpicture_get_size(int pix_fmt, int width, int height);
1116 void avcodec_get_chroma_sub_sample(int pix_fmt, int *h_shift, int *v_shift); 1116 void avcodec_get_chroma_sub_sample(int pix_fmt, int *h_shift, int *v_shift);
1117 const char *avcodec_get_pix_fmt_name(int pix_fmt); 1117 const char *avcodec_get_pix_fmt_name(int pix_fmt);
1118 1118
1150 1150
1151 int avcodec_default_get_buffer(AVCodecContext *s, AVFrame *pic); 1151 int avcodec_default_get_buffer(AVCodecContext *s, AVFrame *pic);
1152 void avcodec_default_release_buffer(AVCodecContext *s, AVFrame *pic); 1152 void avcodec_default_release_buffer(AVCodecContext *s, AVFrame *pic);
1153 1153
1154 int avcodec_open(AVCodecContext *avctx, AVCodec *codec); 1154 int avcodec_open(AVCodecContext *avctx, AVCodec *codec);
1155 int avcodec_decode_audio(AVCodecContext *avctx, INT16 *samples, 1155 int avcodec_decode_audio(AVCodecContext *avctx, int16_t *samples,
1156 int *frame_size_ptr, 1156 int *frame_size_ptr,
1157 UINT8 *buf, int buf_size); 1157 uint8_t *buf, int buf_size);
1158 int avcodec_decode_video(AVCodecContext *avctx, AVFrame *picture, 1158 int avcodec_decode_video(AVCodecContext *avctx, AVFrame *picture,
1159 int *got_picture_ptr, 1159 int *got_picture_ptr,
1160 UINT8 *buf, int buf_size); 1160 uint8_t *buf, int buf_size);
1161 int avcodec_parse_frame(AVCodecContext *avctx, UINT8 **pdata, 1161 int avcodec_parse_frame(AVCodecContext *avctx, uint8_t **pdata,
1162 int *data_size_ptr, 1162 int *data_size_ptr,
1163 UINT8 *buf, int buf_size); 1163 uint8_t *buf, int buf_size);
1164 int avcodec_encode_audio(AVCodecContext *avctx, UINT8 *buf, int buf_size, 1164 int avcodec_encode_audio(AVCodecContext *avctx, uint8_t *buf, int buf_size,
1165 const short *samples); 1165 const short *samples);
1166 int avcodec_encode_video(AVCodecContext *avctx, UINT8 *buf, int buf_size, 1166 int avcodec_encode_video(AVCodecContext *avctx, uint8_t *buf, int buf_size,
1167 const AVFrame *pict); 1167 const AVFrame *pict);
1168 1168
1169 int avcodec_close(AVCodecContext *avctx); 1169 int avcodec_close(AVCodecContext *avctx);
1170 1170
1171 void avcodec_register_all(void); 1171 void avcodec_register_all(void);