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
5fccedaa
Commit
5fccedaa
authored
Apr 29, 2014
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc: deprecate CODEC_FLAG_INPUT_PRESERVED
The addition of reference-counted frames makes it pointless.
parent
141fdc76
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
5 deletions
+14
-5
APIchanges
doc/APIchanges
+4
-0
avcodec.h
libavcodec/avcodec.h
+4
-3
mpegvideo_enc.c
libavcodec/mpegvideo_enc.c
+1
-2
options_table.h
libavcodec/options_table.h
+2
-0
version.h
libavcodec/version.h
+3
-0
No files found.
doc/APIchanges
View file @
5fccedaa
...
...
@@ -13,6 +13,10 @@ libavutil: 2013-12-xx
API changes, most recent first:
2014-04-xx - xxxxxxx - avcodec.h
Deprecate CODEC_FLAG_INPUT_PRESERVED. Its functionality is replaced by passing
reference-counted frames to encoders.
2014-04-xx - xxxxxxx - lavc 55.50.0 - dxva2.h
Add FF_DXVA2_WORKAROUND_INTEL_CLEARVIDEO for old Intel GPUs.
...
...
libavcodec/avcodec.h
View file @
5fccedaa
...
...
@@ -671,12 +671,13 @@ typedef struct RcOverride{
#define CODEC_FLAG_QPEL 0x0010 ///< Use qpel MC.
#define CODEC_FLAG_GMC 0x0020 ///< Use GMC.
#define CODEC_FLAG_MV0 0x0040 ///< Always try a MB with MV=<0,0>.
#if FF_API_INPUT_PRESERVED
/**
* The parent program guarantees that the input for B-frames containing
* streams is not written to for at least s->max_b_frames+1 frames, if
* this is not set the input will be copied.
* @deprecated passing reference-counted frames to the encoders replaces this
* flag
*/
#define CODEC_FLAG_INPUT_PRESERVED 0x0100
#endif
#define CODEC_FLAG_PASS1 0x0200 ///< Use internal 2pass ratecontrol in first pass mode.
#define CODEC_FLAG_PASS2 0x0400 ///< Use internal 2pass ratecontrol in second pass mode.
#define CODEC_FLAG_GRAY 0x2000 ///< Only decode/encode grayscale.
...
...
libavcodec/mpegvideo_enc.c
View file @
5fccedaa
...
...
@@ -1081,8 +1081,7 @@ static int estimate_best_b_count(MpegEncContext *s)
c
->
width
=
s
->
width
>>
scale
;
c
->
height
=
s
->
height
>>
scale
;
c
->
flags
=
CODEC_FLAG_QSCALE
|
CODEC_FLAG_PSNR
|
CODEC_FLAG_INPUT_PRESERVED
;
c
->
flags
=
CODEC_FLAG_QSCALE
|
CODEC_FLAG_PSNR
;
c
->
flags
|=
s
->
avctx
->
flags
&
CODEC_FLAG_QPEL
;
c
->
mb_decision
=
s
->
avctx
->
mb_decision
;
c
->
me_cmp
=
s
->
avctx
->
me_cmp
;
...
...
libavcodec/options_table.h
View file @
5fccedaa
...
...
@@ -54,7 +54,9 @@ static const AVOption avcodec_options[] = {
{
"qscale"
,
"use fixed qscale"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
CODEC_FLAG_QSCALE
},
INT_MIN
,
INT_MAX
,
0
,
"flags"
},
{
"gmc"
,
"use gmc"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
CODEC_FLAG_GMC
},
INT_MIN
,
INT_MAX
,
V
|
E
,
"flags"
},
{
"mv0"
,
"always try a mb with mv=<0,0>"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
CODEC_FLAG_MV0
},
INT_MIN
,
INT_MAX
,
V
|
E
,
"flags"
},
#if FF_API_INPUT_PRESERVED
{
"input_preserved"
,
NULL
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
CODEC_FLAG_INPUT_PRESERVED
},
INT_MIN
,
INT_MAX
,
0
,
"flags"
},
#endif
{
"pass1"
,
"use internal 2-pass ratecontrol in first pass mode"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
CODEC_FLAG_PASS1
},
INT_MIN
,
INT_MAX
,
0
,
"flags"
},
{
"pass2"
,
"use internal 2-pass ratecontrol in second pass mode"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
CODEC_FLAG_PASS2
},
INT_MIN
,
INT_MAX
,
0
,
"flags"
},
{
"gray"
,
"only decode/encode grayscale"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
CODEC_FLAG_GRAY
},
INT_MIN
,
INT_MAX
,
V
|
E
|
D
,
"flags"
},
...
...
libavcodec/version.h
View file @
5fccedaa
...
...
@@ -129,5 +129,8 @@
#ifndef FF_API_ARCH_SPARC
#define FF_API_ARCH_SPARC (LIBAVCODEC_VERSION_MAJOR < 56)
#endif
#ifndef FF_API_INPUT_PRESERVED
#define FF_API_INPUT_PRESERVED (LIBAVCODEC_VERSION_MAJOR < 57)
#endif
#endif
/* AVCODEC_VERSION_H */
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