comparison avcodec.h @ 771:d4cc92144266 libavcodec

handle direct rendering buffer allocation failure
author michaelni
date Sun, 27 Oct 2002 00:02:23 +0000
parents e858fe220ce0
children b6eefd714bf3
comparison
equal deleted inserted replaced
770:d1770a34e4f6 771:d4cc92144266
3 3
4 #include "common.h" 4 #include "common.h"
5 5
6 #define LIBAVCODEC_VERSION_INT 0x000406 6 #define LIBAVCODEC_VERSION_INT 0x000406
7 #define LIBAVCODEC_VERSION "0.4.6" 7 #define LIBAVCODEC_VERSION "0.4.6"
8 #define LIBAVCODEC_BUILD 4631 8 #define LIBAVCODEC_BUILD 4632
9 #define LIBAVCODEC_BUILD_STR "4631" 9 #define LIBAVCODEC_BUILD_STR "4632"
10 10
11 enum CodecID { 11 enum CodecID {
12 CODEC_ID_NONE, 12 CODEC_ID_NONE,
13 CODEC_ID_MPEG1VIDEO, 13 CODEC_ID_MPEG1VIDEO,
14 CODEC_ID_H263, 14 CODEC_ID_H263,
501 /** 501 /**
502 * called at the beginning of each frame to get a buffer for it 502 * called at the beginning of each frame to get a buffer for it
503 * encoding: unused 503 * encoding: unused
504 * decoding: set by user 504 * decoding: set by user
505 */ 505 */
506 void (*get_buffer_callback)(struct AVCodecContext *c, int width, int height, int pict_type); 506 int (*get_buffer_callback)(struct AVCodecContext *c, int width, int height, int pict_type);
507 507
508 /** 508 /**
509 * is 1 if the decoded stream contains b frames, 0 otherwise 509 * is 1 if the decoded stream contains b frames, 0 otherwise
510 * encoding: unused 510 * encoding: unused
511 * decoding: set by lavc 511 * decoding: set by lavc