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
9cac1b4b
Commit
9cac1b4b
authored
Jan 13, 2016
by
Vittorio Giovara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qsvenc: Add private option to replace coder_type
Missing from
be00ec83
.
parent
eef9f065
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
qsvenc.c
libavcodec/qsvenc.c
+8
-2
qsvenc.h
libavcodec/qsvenc.h
+2
-0
No files found.
libavcodec/qsvenc.c
View file @
9cac1b4b
...
@@ -447,8 +447,14 @@ static int init_video_param(AVCodecContext *avctx, QSVEncContext *q)
...
@@ -447,8 +447,14 @@ static int init_video_param(AVCodecContext *avctx, QSVEncContext *q)
if
(
avctx
->
codec_id
!=
AV_CODEC_ID_HEVC
)
{
if
(
avctx
->
codec_id
!=
AV_CODEC_ID_HEVC
)
{
q
->
extco
.
Header
.
BufferId
=
MFX_EXTBUFF_CODING_OPTION
;
q
->
extco
.
Header
.
BufferId
=
MFX_EXTBUFF_CODING_OPTION
;
q
->
extco
.
Header
.
BufferSz
=
sizeof
(
q
->
extco
);
q
->
extco
.
Header
.
BufferSz
=
sizeof
(
q
->
extco
);
q
->
extco
.
CAVLC
=
avctx
->
coder_type
==
FF_CODER_TYPE_VLC
?
#if FF_API_CODER_TYPE
MFX_CODINGOPTION_ON
:
MFX_CODINGOPTION_UNKNOWN
;
FF_DISABLE_DEPRECATION_WARNINGS
if
(
avctx
->
coder_type
!=
0
)
q
->
cavlc
=
avctx
->
coder_type
==
FF_CODER_TYPE_VLC
;
FF_ENABLE_DEPRECATION_WARNINGS
#endif
q
->
extco
.
CAVLC
=
q
->
cavlc
?
MFX_CODINGOPTION_ON
:
MFX_CODINGOPTION_UNKNOWN
;
if
(
q
->
rdo
>=
0
)
if
(
q
->
rdo
>=
0
)
q
->
extco
.
RateDistortionOpt
=
q
->
rdo
>
0
?
MFX_CODINGOPTION_ON
:
MFX_CODINGOPTION_OFF
;
q
->
extco
.
RateDistortionOpt
=
q
->
rdo
>
0
?
MFX_CODINGOPTION_ON
:
MFX_CODINGOPTION_OFF
;
...
...
libavcodec/qsvenc.h
View file @
9cac1b4b
...
@@ -66,6 +66,7 @@
...
@@ -66,6 +66,7 @@
{ "adaptive_i", "Adaptive I-frame placement", OFFSET(qsv.adaptive_i), AV_OPT_TYPE_INT, { .i64 = -1 }, -1, 1, VE }, \
{ "adaptive_i", "Adaptive I-frame placement", OFFSET(qsv.adaptive_i), AV_OPT_TYPE_INT, { .i64 = -1 }, -1, 1, VE }, \
{ "adaptive_b", "Adaptive B-frame placement", OFFSET(qsv.adaptive_b), AV_OPT_TYPE_INT, { .i64 = -1 }, -1, 1, VE }, \
{ "adaptive_b", "Adaptive B-frame placement", OFFSET(qsv.adaptive_b), AV_OPT_TYPE_INT, { .i64 = -1 }, -1, 1, VE }, \
{ "b_strategy", "Strategy to choose between I/P/B-frames", OFFSET(qsv.b_strategy), AV_OPT_TYPE_INT, { .i64 = -1 }, -1, 1, VE }, \
{ "b_strategy", "Strategy to choose between I/P/B-frames", OFFSET(qsv.b_strategy), AV_OPT_TYPE_INT, { .i64 = -1 }, -1, 1, VE }, \
{ "cavlc", "Enable CAVLC", OFFSET(qsv.cavlc), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, 1, VE }, \
typedef
struct
QSVEncContext
{
typedef
struct
QSVEncContext
{
AVCodecContext
*
avctx
;
AVCodecContext
*
avctx
;
...
@@ -120,6 +121,7 @@ typedef struct QSVEncContext {
...
@@ -120,6 +121,7 @@ typedef struct QSVEncContext {
int
adaptive_i
;
int
adaptive_i
;
int
adaptive_b
;
int
adaptive_b
;
int
b_strategy
;
int
b_strategy
;
int
cavlc
;
int
int_ref_type
;
int
int_ref_type
;
int
int_ref_cycle_size
;
int
int_ref_cycle_size
;
...
...
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