Mercurial > libavcodec.hg
comparison cinepak.c @ 1881:39ad6cd5d4a6 libavcodec
remove numerous definitions of BE_*/LE_* macros; convert FOURCC_TAG ->
MKTAG/MKBETAG
author | melanson |
---|---|
date | Sun, 14 Mar 2004 04:04:08 +0000 |
parents | 932d306bf1dc |
children | b13a25ac9f0c |
comparison
equal
deleted
inserted
replaced
1880:56ccec0d08bd | 1881:39ad6cd5d4a6 |
---|---|
34 #include "common.h" | 34 #include "common.h" |
35 #include "avcodec.h" | 35 #include "avcodec.h" |
36 #include "dsputil.h" | 36 #include "dsputil.h" |
37 | 37 |
38 #define PALETTE_COUNT 256 | 38 #define PALETTE_COUNT 256 |
39 | |
40 #define BE_16(x) ((((uint8_t*)(x))[0] << 8) | ((uint8_t*)(x))[1]) | |
41 #define BE_32(x) ((((uint8_t*)(x))[0] << 24) | \ | |
42 (((uint8_t*)(x))[1] << 16) | \ | |
43 (((uint8_t*)(x))[2] << 8) | \ | |
44 ((uint8_t*)(x))[3]) | |
45 | 39 |
46 typedef struct { | 40 typedef struct { |
47 uint8_t y0, y1, y2, y3; | 41 uint8_t y0, y1, y2, y3; |
48 uint8_t u, v; | 42 uint8_t u, v; |
49 } cvid_codebook_t; | 43 } cvid_codebook_t; |