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
3a91b3ae
Commit
3a91b3ae
authored
Nov 10, 2017
by
Aman Gupta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/hevc: implement new decode_params callback for VideoToolbox
Signed-off-by:
Aman Gupta
<
aman@tmm1.net
>
parent
bd2d70c0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
hevcdec.c
libavcodec/hevcdec.c
+32
-0
No files found.
libavcodec/hevcdec.c
View file @
3a91b3ae
...
...
@@ -2824,23 +2824,55 @@ static int decode_nal_unit(HEVCContext *s, const H2645NAL *nal)
switch
(
s
->
nal_unit_type
)
{
case
HEVC_NAL_VPS
:
if
(
s
->
avctx
->
hwaccel
&&
s
->
avctx
->
hwaccel
->
decode_params
)
{
ret
=
s
->
avctx
->
hwaccel
->
decode_params
(
s
->
avctx
,
nal
->
type
,
nal
->
raw_data
,
nal
->
raw_size
);
if
(
ret
<
0
)
goto
fail
;
}
ret
=
ff_hevc_decode_nal_vps
(
gb
,
s
->
avctx
,
&
s
->
ps
);
if
(
ret
<
0
)
goto
fail
;
break
;
case
HEVC_NAL_SPS
:
if
(
s
->
avctx
->
hwaccel
&&
s
->
avctx
->
hwaccel
->
decode_params
)
{
ret
=
s
->
avctx
->
hwaccel
->
decode_params
(
s
->
avctx
,
nal
->
type
,
nal
->
raw_data
,
nal
->
raw_size
);
if
(
ret
<
0
)
goto
fail
;
}
ret
=
ff_hevc_decode_nal_sps
(
gb
,
s
->
avctx
,
&
s
->
ps
,
s
->
apply_defdispwin
);
if
(
ret
<
0
)
goto
fail
;
break
;
case
HEVC_NAL_PPS
:
if
(
s
->
avctx
->
hwaccel
&&
s
->
avctx
->
hwaccel
->
decode_params
)
{
ret
=
s
->
avctx
->
hwaccel
->
decode_params
(
s
->
avctx
,
nal
->
type
,
nal
->
raw_data
,
nal
->
raw_size
);
if
(
ret
<
0
)
goto
fail
;
}
ret
=
ff_hevc_decode_nal_pps
(
gb
,
s
->
avctx
,
&
s
->
ps
);
if
(
ret
<
0
)
goto
fail
;
break
;
case
HEVC_NAL_SEI_PREFIX
:
case
HEVC_NAL_SEI_SUFFIX
:
if
(
s
->
avctx
->
hwaccel
&&
s
->
avctx
->
hwaccel
->
decode_params
)
{
ret
=
s
->
avctx
->
hwaccel
->
decode_params
(
s
->
avctx
,
nal
->
type
,
nal
->
raw_data
,
nal
->
raw_size
);
if
(
ret
<
0
)
goto
fail
;
}
ret
=
ff_hevc_decode_nal_sei
(
gb
,
s
->
avctx
,
&
s
->
sei
,
&
s
->
ps
,
s
->
nal_unit_type
);
if
(
ret
<
0
)
goto
fail
;
...
...
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