Mercurial > libavformat.hg
diff gif.c @ 65:a58a8a53eb46 libavformat
* UINTX -> uintx_t INTX -> intx_t
author | kabi |
---|---|
date | Tue, 11 Feb 2003 16:35:48 +0000 |
parents | c89672a5f24e |
children | 25062c9b1f86 |
line wrap: on
line diff
--- a/gif.c Mon Feb 10 09:35:32 2003 +0000 +++ b/gif.c Tue Feb 11 16:35:48 2003 +0000 @@ -212,7 +212,7 @@ } /* this is maybe slow, but allows for extensions */ -static inline unsigned char gif_clut_index(UINT8 r, UINT8 g, UINT8 b) +static inline unsigned char gif_clut_index(uint8_t r, uint8_t g, uint8_t b) { return ((((r)/47)%6)*6*6+(((g)/47)%6)*6+(((b)/47)%6)); } @@ -223,7 +223,7 @@ uint8_t *buf, int linesize, int pix_fmt) { PutBitContext p; - UINT8 buffer[200]; /* 100 * 9 / 8 = 113 */ + uint8_t buffer[200]; /* 100 * 9 / 8 = 113 */ int i, left, w, v; uint8_t *ptr; /* image block */ @@ -287,8 +287,8 @@ } typedef struct { - INT64 time, file_time; - UINT8 buffer[100]; /* data chunks */ + int64_t time, file_time; + uint8_t buffer[100]; /* data chunks */ } GIFContext; static int gif_write_header(AVFormatContext *s) @@ -331,12 +331,12 @@ } static int gif_write_video(AVFormatContext *s, - AVCodecContext *enc, UINT8 *buf, int size) + AVCodecContext *enc, uint8_t *buf, int size) { ByteIOContext *pb = &s->pb; GIFContext *gif = s->priv_data; int jiffies; - INT64 delay; + int64_t delay; /* graphic control extension block */ put_byte(pb, 0x21); @@ -366,7 +366,7 @@ } static int gif_write_packet(AVFormatContext *s, int stream_index, - UINT8 *buf, int size, int force_pts) + uint8_t *buf, int size, int force_pts) { AVCodecContext *codec = &s->streams[stream_index]->codec; if (codec->codec_type == CODEC_TYPE_AUDIO)