comparison cinepak.c @ 8318:bc36a075bf35 libavcodec

The POSIX namespace shall be held sacrosanct. To that end, continue eliminating _t from structure names in FFmpeg.
author melanson
date Sun, 14 Dec 2008 03:29:33 +0000
parents 4525dcd81357
children 2acf0ae7b041
comparison
equal deleted inserted replaced
8317:08b0f63a91c5 8318:bc36a075bf35
38 38
39 39
40 typedef struct { 40 typedef struct {
41 uint8_t y0, y1, y2, y3; 41 uint8_t y0, y1, y2, y3;
42 uint8_t u, v; 42 uint8_t u, v;
43 } cvid_codebook_t; 43 } cvid_codebook;
44 44
45 #define MAX_STRIPS 32 45 #define MAX_STRIPS 32
46 46
47 typedef struct { 47 typedef struct {
48 uint16_t id; 48 uint16_t id;
49 uint16_t x1, y1; 49 uint16_t x1, y1;
50 uint16_t x2, y2; 50 uint16_t x2, y2;
51 cvid_codebook_t v4_codebook[256]; 51 cvid_codebook v4_codebook[256];
52 cvid_codebook_t v1_codebook[256]; 52 cvid_codebook v1_codebook[256];
53 } cvid_strip_t; 53 } cvid_strip;
54 54
55 typedef struct CinepakContext { 55 typedef struct CinepakContext {
56 56
57 AVCodecContext *avctx; 57 AVCodecContext *avctx;
58 AVFrame frame; 58 AVFrame frame;
61 int size; 61 int size;
62 62
63 int width, height; 63 int width, height;
64 64
65 int palette_video; 65 int palette_video;
66 cvid_strip_t strips[MAX_STRIPS]; 66 cvid_strip strips[MAX_STRIPS];
67 67
68 int sega_film_skip_bytes; 68 int sega_film_skip_bytes;
69 69
70 } CinepakContext; 70 } CinepakContext;
71 71
72 static void cinepak_decode_codebook (cvid_codebook_t *codebook, 72 static void cinepak_decode_codebook (cvid_codebook *codebook,
73 int chunk_id, int size, const uint8_t *data) 73 int chunk_id, int size, const uint8_t *data)
74 { 74 {
75 const uint8_t *eod = (data + size); 75 const uint8_t *eod = (data + size);
76 uint32_t flag, mask; 76 uint32_t flag, mask;
77 int i, n; 77 int i, n;
116 } 116 }
117 } 117 }
118 } 118 }
119 } 119 }
120 120
121 static int cinepak_decode_vectors (CinepakContext *s, cvid_strip_t *strip, 121 static int cinepak_decode_vectors (CinepakContext *s, cvid_strip *strip,
122 int chunk_id, int size, const uint8_t *data) 122 int chunk_id, int size, const uint8_t *data)
123 { 123 {
124 const uint8_t *eod = (data + size); 124 const uint8_t *eod = (data + size);
125 uint32_t flag, mask; 125 uint32_t flag, mask;
126 cvid_codebook_t *codebook; 126 cvid_codebook *codebook;
127 unsigned int x, y; 127 unsigned int x, y;
128 uint32_t iy[4]; 128 uint32_t iy[4];
129 uint32_t iu[2]; 129 uint32_t iu[2];
130 uint32_t iv[2]; 130 uint32_t iv[2];
131 131
260 260
261 return 0; 261 return 0;
262 } 262 }
263 263
264 static int cinepak_decode_strip (CinepakContext *s, 264 static int cinepak_decode_strip (CinepakContext *s,
265 cvid_strip_t *strip, const uint8_t *data, int size) 265 cvid_strip *strip, const uint8_t *data, int size)
266 { 266 {
267 const uint8_t *eod = (data + size); 267 const uint8_t *eod = (data + size);
268 int chunk_id, chunk_size; 268 int chunk_id, chunk_size;
269 269
270 /* coordinate sanity checks */ 270 /* coordinate sanity checks */