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
ed5680f3
Commit
ed5680f3
authored
Dec 04, 2018
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/dpx: add support for 10bit gray
parent
ea68e02c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
dpx.c
libavcodec/dpx.c
+9
-4
No files found.
libavcodec/dpx.c
View file @
ed5680f3
...
...
@@ -310,6 +310,9 @@ static int decode_frame(AVCodecContext *avctx,
case
51121
:
avctx
->
pix_fmt
=
AV_PIX_FMT_GBRAP12
;
break
;
case
6101
:
avctx
->
pix_fmt
=
AV_PIX_FMT_GRAY10
;
break
;
case
6161
:
avctx
->
pix_fmt
=
AV_PIX_FMT_GRAY16BE
;
break
;
...
...
@@ -362,12 +365,14 @@ static int decode_frame(AVCodecContext *avctx,
(
uint16_t
*
)
ptr
[
3
]};
int
shift
=
packing
==
1
?
22
:
20
;
for
(
y
=
0
;
y
<
avctx
->
width
;
y
++
)
{
*
dst
[
2
]
++
=
read10in32
(
&
buf
,
&
rgbBuffer
,
&
n_datum
,
endian
,
shift
);
if
(
elements
>=
3
)
*
dst
[
2
]
++
=
read10in32
(
&
buf
,
&
rgbBuffer
,
&
n_datum
,
endian
,
shift
);
*
dst
[
0
]
++
=
read10in32
(
&
buf
,
&
rgbBuffer
,
&
n_datum
,
endian
,
shift
);
*
dst
[
1
]
++
=
read10in32
(
&
buf
,
&
rgbBuffer
,
&
n_datum
,
endian
,
shift
);
if
(
elements
>=
2
)
*
dst
[
1
]
++
=
read10in32
(
&
buf
,
&
rgbBuffer
,
&
n_datum
,
endian
,
shift
);
if
(
elements
==
4
)
*
dst
[
3
]
++
=
read10in32
(
&
buf
,
&
rgbBuffer
,
...
...
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