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
ef7b5aee
Commit
ef7b5aee
authored
May 31, 2005
by
Måns Rullgård
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add -gray command line flag
Originally committed as revision 4328 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
5a408f91
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
ffmpeg.c
ffmpeg.c
+7
-0
No files found.
ffmpeg.c
View file @
ef7b5aee
...
...
@@ -209,6 +209,7 @@ static int frame_skip_factor= 0;
static
int
frame_skip_exp
=
0
;
static
int
frame_skip_cmp
=
FF_CMP_DCTMAX
;
extern
int
loop_input
;
/* currently a hack */
static
int
gray_only
=
0
;
static
int
gop_size
=
12
;
static
int
intra_only
=
0
;
...
...
@@ -2987,6 +2988,8 @@ static void opt_input_file(const char *filename)
enc
->
flags
|=
CODEC_FLAG_BITEXACT
;
if
(
me_threshold
)
enc
->
debug
|=
FF_DEBUG_MV
;
if
(
gray_only
)
enc
->
flags
|=
CODEC_FLAG_GRAY
;
if
(
enc
->
time_base
.
den
!=
rfps
||
enc
->
time_base
.
num
!=
rfps_base
)
{
...
...
@@ -3292,6 +3295,9 @@ static void opt_output_file(const char *filename)
if
(
no_output
)
{
video_enc
->
flags2
|=
CODEC_FLAG2_NO_OUTPUT
;
}
if
(
gray_only
)
{
video_enc
->
flags
|=
CODEC_FLAG_GRAY
;
}
video_enc
->
qmin
=
video_qmin
;
video_enc
->
qmax
=
video_qmax
;
video_enc
->
lmin
=
video_lmin
;
...
...
@@ -4126,6 +4132,7 @@ const OptionDef options[] = {
{
"skip_factor"
,
OPT_INT
|
HAS_ARG
|
OPT_EXPERT
|
OPT_VIDEO
,
{(
void
*
)
&
frame_skip_factor
},
"frame skip factor"
,
"factor"
},
{
"skip_exp"
,
OPT_INT
|
HAS_ARG
|
OPT_EXPERT
|
OPT_VIDEO
,
{(
void
*
)
&
frame_skip_exp
},
"frame skip exponent"
,
"exponent"
},
{
"skip_cmp"
,
OPT_INT
|
HAS_ARG
|
OPT_EXPERT
|
OPT_VIDEO
,
{(
void
*
)
&
frame_skip_cmp
},
"frame skip compare function"
,
"compare function"
},
{
"gray"
,
OPT_BOOL
|
OPT_EXPERT
|
OPT_VIDEO
,
{
&
gray_only
},
"encode/decode grayscale"
},
/* audio options */
{
"ab"
,
HAS_ARG
|
OPT_AUDIO
,
{(
void
*
)
opt_audio_bitrate
},
"set audio bitrate (in kbit/s)"
,
"bitrate"
,
},
...
...
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