use uint8_t instead of unsigned char

Originally committed as revision 15473 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Benoit Fouet 17 years ago
parent e679560d9c
commit 68e9c68fdb
  1. 36
      libavcodec/indeo3.c

@ -32,10 +32,10 @@
typedef struct typedef struct
{ {
unsigned char *Ybuf; uint8_t *Ybuf;
unsigned char *Ubuf; uint8_t *Ubuf;
unsigned char *Vbuf; uint8_t *Vbuf;
unsigned char *the_buf; uint8_t *the_buf;
unsigned int the_buf_size; unsigned int the_buf_size;
unsigned short y_w, y_h; unsigned short y_w, y_h;
unsigned short uv_w, uv_h; unsigned short uv_w, uv_h;
@ -50,7 +50,7 @@ typedef struct Indeo3DecodeContext {
YUVBufs *cur_frame; YUVBufs *cur_frame;
YUVBufs *ref_frame; YUVBufs *ref_frame;
unsigned char *ModPred; uint8_t *ModPred;
uint8_t *corrector_type; uint8_t *corrector_type;
} Indeo3DecodeContext; } Indeo3DecodeContext;
@ -91,10 +91,10 @@ static av_cold void build_modpred(Indeo3DecodeContext *s)
} }
} }
static void iv_Decode_Chunk(Indeo3DecodeContext *s, unsigned char *cur, static void iv_Decode_Chunk(Indeo3DecodeContext *s, uint8_t *cur,
unsigned char *ref, int width, int height, const unsigned char *buf1, uint8_t *ref, int width, int height, const uint8_t *buf1,
long fflags2, const unsigned char *hdr, long fflags2, const uint8_t *hdr,
const unsigned char *buf2, int min_width_160); const uint8_t *buf2, int min_width_160);
/* ---------------------------------------------------------------------- */ /* ---------------------------------------------------------------------- */
static av_cold void iv_alloc_frames(Indeo3DecodeContext *s) static av_cold void iv_alloc_frames(Indeo3DecodeContext *s)
@ -176,12 +176,12 @@ static av_cold void iv_free_func(Indeo3DecodeContext *s)
/* ---------------------------------------------------------------------- */ /* ---------------------------------------------------------------------- */
static unsigned long iv_decode_frame(Indeo3DecodeContext *s, static unsigned long iv_decode_frame(Indeo3DecodeContext *s,
const unsigned char *buf, int buf_size) const uint8_t *buf, int buf_size)
{ {
unsigned int hdr_width, hdr_height, unsigned int hdr_width, hdr_height,
chroma_width, chroma_height; chroma_width, chroma_height;
unsigned long fflags1, fflags2, fflags3, offs1, offs2, offs3, offs; unsigned long fflags1, fflags2, fflags3, offs1, offs2, offs3, offs;
const unsigned char *hdr_pos, *buf_pos; const uint8_t *hdr_pos, *buf_pos;
buf_pos = buf; buf_pos = buf;
buf_pos += 18; buf_pos += 18;
@ -297,15 +297,15 @@ typedef struct {
lp2 = 4; lp2 = 4;
static void iv_Decode_Chunk(Indeo3DecodeContext *s, static void iv_Decode_Chunk(Indeo3DecodeContext *s,
unsigned char *cur, unsigned char *ref, int width, int height, uint8_t *cur, uint8_t *ref, int width, int height,
const unsigned char *buf1, long fflags2, const unsigned char *hdr, const uint8_t *buf1, long fflags2, const uint8_t *hdr,
const unsigned char *buf2, int min_width_160) const uint8_t *buf2, int min_width_160)
{ {
unsigned char bit_buf; uint8_t bit_buf;
unsigned long bit_pos, lv, lv1, lv2; unsigned long bit_pos, lv, lv1, lv2;
long *width_tbl, width_tbl_arr[10]; long *width_tbl, width_tbl_arr[10];
const signed char *ref_vectors; const signed char *ref_vectors;
unsigned char *cur_frm_pos, *ref_frm_pos, *cp, *cp2; uint8_t *cur_frm_pos, *ref_frm_pos, *cp, *cp2;
uint32_t *cur_lp, *ref_lp; uint32_t *cur_lp, *ref_lp;
const uint32_t *correction_lp[2], *correctionloworder_lp[2], *correctionhighorder_lp[2]; const uint32_t *correction_lp[2], *correctionloworder_lp[2], *correctionhighorder_lp[2];
uint8_t *correction_type_sp[2]; uint8_t *correction_type_sp[2];
@ -1065,10 +1065,10 @@ static av_cold int indeo3_decode_init(AVCodecContext *avctx)
static int indeo3_decode_frame(AVCodecContext *avctx, static int indeo3_decode_frame(AVCodecContext *avctx,
void *data, int *data_size, void *data, int *data_size,
const unsigned char *buf, int buf_size) const uint8_t *buf, int buf_size)
{ {
Indeo3DecodeContext *s=avctx->priv_data; Indeo3DecodeContext *s=avctx->priv_data;
unsigned char *src, *dest; uint8_t *src, *dest;
int y; int y;
iv_decode_frame(s, buf, buf_size); iv_decode_frame(s, buf, buf_size);

Loading…
Cancel
Save