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
3abbf209
Commit
3abbf209
authored
Oct 08, 2013
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dpx: abgr support
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
361b56c3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
dpx.c
libavcodec/dpx.c
+5
-0
dpxenc.c
libavcodec/dpxenc.c
+4
-1
No files found.
libavcodec/dpx.c
View file @
3abbf209
...
...
@@ -152,6 +152,7 @@ static int decode_frame(AVCodecContext *avctx,
case
6
:
// Y
elements
=
1
;
break
;
case
52
:
// ABGR
case
51
:
// RGBA
elements
=
4
;
break
;
...
...
@@ -202,6 +203,10 @@ static int decode_frame(AVCodecContext *avctx,
case
50080
:
avctx
->
pix_fmt
=
AV_PIX_FMT_RGB24
;
break
;
case
52081
:
case
52080
:
avctx
->
pix_fmt
=
AV_PIX_FMT_ABGR
;
break
;
case
51081
:
case
51080
:
avctx
->
pix_fmt
=
AV_PIX_FMT_RGBA
;
...
...
libavcodec/dpxenc.c
View file @
3abbf209
...
...
@@ -43,6 +43,9 @@ static av_cold int encode_init(AVCodecContext *avctx)
s
->
planar
=
!!
(
desc
->
flags
&
AV_PIX_FMT_FLAG_PLANAR
);
switch
(
avctx
->
pix_fmt
)
{
case
AV_PIX_FMT_ABGR
:
s
->
descriptor
=
52
;
break
;
case
AV_PIX_FMT_GRAY16BE
:
case
AV_PIX_FMT_GRAY16LE
:
case
AV_PIX_FMT_GRAY8
:
...
...
@@ -248,7 +251,7 @@ AVCodec ff_dpx_encoder = {
.
encode2
=
encode_frame
,
.
pix_fmts
=
(
const
enum
AVPixelFormat
[]){
AV_PIX_FMT_GRAY8
,
AV_PIX_FMT_RGB24
,
AV_PIX_FMT_RGBA
,
AV_PIX_FMT_RGB24
,
AV_PIX_FMT_RGBA
,
AV_PIX_FMT_ABGR
,
AV_PIX_FMT_GRAY16LE
,
AV_PIX_FMT_GRAY16BE
,
AV_PIX_FMT_RGB48LE
,
AV_PIX_FMT_RGB48BE
,
AV_PIX_FMT_RGBA64LE
,
AV_PIX_FMT_RGBA64BE
,
...
...
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