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
8b87fd98
Commit
8b87fd98
authored
Jan 11, 2012
by
Paul B Mahol
Committed by
Michael Niedermayer
Jan 11, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bmpenc: support for BGRA
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
ba6e36f9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
bmpenc.c
libavcodec/bmpenc.c
+5
-2
No files found.
libavcodec/bmpenc.c
View file @
8b87fd98
...
...
@@ -37,6 +37,9 @@ static av_cold int bmp_encode_init(AVCodecContext *avctx){
avctx
->
coded_frame
=
(
AVFrame
*
)
&
s
->
picture
;
switch
(
avctx
->
pix_fmt
)
{
case
PIX_FMT_BGRA
:
avctx
->
bits_per_coded_sample
=
32
;
break
;
case
PIX_FMT_BGR24
:
avctx
->
bits_per_coded_sample
=
24
;
break
;
...
...
@@ -167,8 +170,8 @@ AVCodec ff_bmp_encoder = {
.
init
=
bmp_encode_init
,
.
encode
=
bmp_encode_frame
,
.
pix_fmts
=
(
const
enum
PixelFormat
[]){
PIX_FMT_BGR24
,
PIX_FMT_RGB5
55
,
PIX_FMT_RGB444
,
PIX_FMT_RGB565
,
PIX_FMT_BGR
A
,
PIX_FMT_BGR
24
,
PIX_FMT_RGB5
65
,
PIX_FMT_RGB555
,
PIX_FMT_RGB444
,
PIX_FMT_RGB8
,
PIX_FMT_BGR8
,
PIX_FMT_RGB4_BYTE
,
PIX_FMT_BGR4_BYTE
,
PIX_FMT_GRAY8
,
PIX_FMT_PAL8
,
PIX_FMT_MONOBLACK
,
PIX_FMT_NONE
},
...
...
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