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
b1367f7e
Commit
b1367f7e
authored
Nov 10, 2016
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/dpx: Support GRAY12 colourspace.
parent
f75035b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
dpx.c
libavcodec/dpx.c
+8
-4
No files found.
libavcodec/dpx.c
View file @
b1367f7e
...
...
@@ -243,6 +243,10 @@ static int decode_frame(AVCodecContext *avctx,
case
6080
:
avctx
->
pix_fmt
=
AV_PIX_FMT_GRAY8
;
break
;
case
6121
:
case
6120
:
avctx
->
pix_fmt
=
AV_PIX_FMT_GRAY12
;
break
;
case
50081
:
case
50080
:
avctx
->
pix_fmt
=
AV_PIX_FMT_RGB24
;
...
...
@@ -345,12 +349,12 @@ static int decode_frame(AVCodecContext *avctx,
(
uint16_t
*
)
ptr
[
2
],
(
uint16_t
*
)
ptr
[
3
]};
for
(
y
=
0
;
y
<
avctx
->
width
;
y
++
)
{
*
dst
[
2
]
=
read16
(
&
buf
,
endian
)
>>
4
;
dst
[
2
]
++
;
if
(
elements
>=
3
)
*
dst
[
2
]
++
=
read16
(
&
buf
,
endian
)
>>
4
;
*
dst
[
0
]
=
read16
(
&
buf
,
endian
)
>>
4
;
dst
[
0
]
++
;
*
dst
[
1
]
=
read16
(
&
buf
,
endian
)
>>
4
;
dst
[
1
]
++
;
if
(
elements
>=
2
)
*
dst
[
1
]
++
=
read16
(
&
buf
,
endian
)
>>
4
;
if
(
elements
==
4
)
*
dst
[
3
]
++
=
read16
(
&
buf
,
endian
)
>>
4
;
}
...
...
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