Mercurial > libavcodec.hg
comparison bmp.c @ 4394:182949fbc53e libavcodec
explicit values for all enums
author | michael |
---|---|
date | Wed, 24 Jan 2007 11:01:17 +0000 |
parents | 5187883df562 |
children | f792b146869b |
comparison
equal
deleted
inserted
replaced
4393:5187883df562 | 4394:182949fbc53e |
---|---|
26 typedef struct BMPContext { | 26 typedef struct BMPContext { |
27 AVFrame picture; | 27 AVFrame picture; |
28 } BMPContext; | 28 } BMPContext; |
29 | 29 |
30 typedef enum { | 30 typedef enum { |
31 BMP_RGB=0, | 31 BMP_RGB =0, |
32 BMP_RLE8, | 32 BMP_RLE8 =1, |
33 BMP_RLE4, | 33 BMP_RLE4 =2, |
34 BMP_BITFIELDS, | 34 BMP_BITFIELDS =3, |
35 } BiCompression; | 35 } BiCompression; |
36 | 36 |
37 #define read16(bits) bswap_16(get_bits(bits, 16)) | 37 #define read16(bits) bswap_16(get_bits(bits, 16)) |
38 #define read32(bits) bswap_32(get_bits_long(bits, 32)) | 38 #define read32(bits) bswap_32(get_bits_long(bits, 32)) |
39 | 39 |