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
a1e83a2f
Commit
a1e83a2f
authored
Feb 16, 2017
by
Mark Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vaapi_vp8: Use VP8_MAX_QUANT instead of magic number
parent
64b79535
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
vaapi_encode_vp8.c
libavcodec/vaapi_encode_vp8.c
+3
-2
No files found.
libavcodec/vaapi_encode_vp8.c
View file @
a1e83a2f
...
@@ -28,6 +28,7 @@
...
@@ -28,6 +28,7 @@
#include "avcodec.h"
#include "avcodec.h"
#include "internal.h"
#include "internal.h"
#include "vaapi_encode.h"
#include "vaapi_encode.h"
#include "vp8.h"
typedef
struct
VAAPIEncodeVP8Context
{
typedef
struct
VAAPIEncodeVP8Context
{
...
@@ -161,12 +162,12 @@ static av_cold int vaapi_encode_vp8_configure(AVCodecContext *avctx)
...
@@ -161,12 +162,12 @@ static av_cold int vaapi_encode_vp8_configure(AVCodecContext *avctx)
VAAPIEncodeContext
*
ctx
=
avctx
->
priv_data
;
VAAPIEncodeContext
*
ctx
=
avctx
->
priv_data
;
VAAPIEncodeVP8Context
*
priv
=
ctx
->
priv_data
;
VAAPIEncodeVP8Context
*
priv
=
ctx
->
priv_data
;
priv
->
q_index_p
=
av_clip
(
avctx
->
global_quality
,
0
,
127
);
priv
->
q_index_p
=
av_clip
(
avctx
->
global_quality
,
0
,
VP8_MAX_QUANT
);
if
(
avctx
->
i_quant_factor
>
0
.
0
)
if
(
avctx
->
i_quant_factor
>
0
.
0
)
priv
->
q_index_i
=
av_clip
((
avctx
->
global_quality
*
priv
->
q_index_i
=
av_clip
((
avctx
->
global_quality
*
avctx
->
i_quant_factor
+
avctx
->
i_quant_factor
+
avctx
->
i_quant_offset
)
+
0
.
5
,
avctx
->
i_quant_offset
)
+
0
.
5
,
0
,
127
);
0
,
VP8_MAX_QUANT
);
else
else
priv
->
q_index_i
=
priv
->
q_index_p
;
priv
->
q_index_i
=
priv
->
q_index_p
;
...
...
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