Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
3e997aa4
Commit
3e997aa4
authored
Jan 24, 2007
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enum
Originally committed as revision 7678 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
2c160320
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
bmp.c
libavcodec/bmp.c
+7
-5
No files found.
libavcodec/bmp.c
View file @
3e997aa4
...
...
@@ -27,10 +27,12 @@ typedef struct BMPContext {
AVFrame
picture
;
}
BMPContext
;
#define BMP_RGB 0
#define BMP_RLE8 1
#define BMP_RLE4 2
#define BMP_BITFIELDS 3
typedef
enum
{
BMP_RGB
=
0
,
BMP_RLE8
,
BMP_RLE4
,
BMP_BITFIELDS
,
}
BiCompression
;
#define read16(bits) bswap_16(get_bits(bits, 16))
#define read32(bits) bswap_32(get_bits_long(bits, 32))
...
...
@@ -55,7 +57,7 @@ static int bmp_decode_frame(AVCodecContext *avctx,
unsigned
int
fsize
,
hsize
;
int
width
,
height
;
unsigned
int
depth
;
unsigned
int
comp
;
BiCompression
comp
;
unsigned
int
ihsize
;
int
i
,
j
,
n
,
linesize
;
uint32_t
rgb
[
3
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment