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
b2b4afe8
Commit
b2b4afe8
authored
Apr 22, 2014
by
Michael Niedermayer
Committed by
Anton Khirnov
Apr 28, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hwaccel: fix dxva2 & vaapi loop filter parameters
Signed-off-by:
Anton Khirnov
<
anton@khirnov.net
>
parent
ed4b7571
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
dxva2_h264.c
libavcodec/dxva2_h264.c
+2
-2
vaapi_h264.c
libavcodec/vaapi_h264.c
+2
-2
No files found.
libavcodec/dxva2_h264.c
View file @
b2b4afe8
...
...
@@ -231,8 +231,8 @@ static void fill_slice_long(AVCodecContext *avctx, DXVA_Slice_H264_Long *slice,
slice
->
num_ref_idx_l0_active_minus1
=
h
->
ref_count
[
0
]
-
1
;
if
(
h
->
list_count
>
1
)
slice
->
num_ref_idx_l1_active_minus1
=
h
->
ref_count
[
1
]
-
1
;
slice
->
slice_alpha_c0_offset_div2
=
h
->
slice_alpha_c0_offset
/
2
-
26
;
slice
->
slice_beta_offset_div2
=
h
->
slice_beta_offset
/
2
-
26
;
slice
->
slice_alpha_c0_offset_div2
=
h
->
slice_alpha_c0_offset
/
2
;
slice
->
slice_beta_offset_div2
=
h
->
slice_beta_offset
/
2
;
slice
->
Reserved8Bits
=
0
;
for
(
list
=
0
;
list
<
2
;
list
++
)
{
...
...
libavcodec/vaapi_h264.c
View file @
b2b4afe8
...
...
@@ -333,8 +333,8 @@ static int vaapi_h264_decode_slice(AVCodecContext *avctx,
slice_param
->
cabac_init_idc
=
h
->
cabac_init_idc
;
slice_param
->
slice_qp_delta
=
h
->
qscale
-
h
->
pps
.
init_qp
;
slice_param
->
disable_deblocking_filter_idc
=
h
->
deblocking_filter
<
2
?
!
h
->
deblocking_filter
:
h
->
deblocking_filter
;
slice_param
->
slice_alpha_c0_offset_div2
=
h
->
slice_alpha_c0_offset
/
2
-
26
;
slice_param
->
slice_beta_offset_div2
=
h
->
slice_beta_offset
/
2
-
26
;
slice_param
->
slice_alpha_c0_offset_div2
=
h
->
slice_alpha_c0_offset
/
2
;
slice_param
->
slice_beta_offset_div2
=
h
->
slice_beta_offset
/
2
;
slice_param
->
luma_log2_weight_denom
=
h
->
luma_log2_weight_denom
;
slice_param
->
chroma_log2_weight_denom
=
h
->
chroma_log2_weight_denom
;
...
...
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