Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
ffmpeg
Commits
0e8dccb7
Commit
0e8dccb7
authored
Sep 10, 2012
by
Anton Khirnov
Browse files
avplay: get rid of ugly casts in the options table
parent
4e82cbb6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
28 deletions
+28
-28
avplay.c
avplay.c
+28
-28
No files found.
avplay.c
View file @
0e8dccb7
...
...
@@ -2872,43 +2872,43 @@ static const OptionDef options[] = {
{
"x"
,
HAS_ARG
,
{
.
func_arg
=
opt_width
},
"force displayed width"
,
"width"
},
{
"y"
,
HAS_ARG
,
{
.
func_arg
=
opt_height
},
"force displayed height"
,
"height"
},
{
"s"
,
HAS_ARG
|
OPT_VIDEO
,
{
.
func_arg
=
opt_frame_size
},
"set frame size (WxH or abbreviation)"
,
"size"
},
{
"fs"
,
OPT_BOOL
,
{
(
void
*
)
&
is_full_screen
},
"force full screen"
},
{
"an"
,
OPT_BOOL
,
{
(
void
*
)
&
audio_disable
},
"disable audio"
},
{
"vn"
,
OPT_BOOL
,
{
(
void
*
)
&
video_disable
},
"disable video"
},
{
"ast"
,
OPT_INT
|
HAS_ARG
|
OPT_EXPERT
,
{
(
void
*
)
&
wanted_stream
[
AVMEDIA_TYPE_AUDIO
]
},
"select desired audio stream"
,
"stream_number"
},
{
"vst"
,
OPT_INT
|
HAS_ARG
|
OPT_EXPERT
,
{
(
void
*
)
&
wanted_stream
[
AVMEDIA_TYPE_VIDEO
]
},
"select desired video stream"
,
"stream_number"
},
{
"sst"
,
OPT_INT
|
HAS_ARG
|
OPT_EXPERT
,
{
(
void
*
)
&
wanted_stream
[
AVMEDIA_TYPE_SUBTITLE
]
},
"select desired subtitle stream"
,
"stream_number"
},
{
"fs"
,
OPT_BOOL
,
{
&
is_full_screen
},
"force full screen"
},
{
"an"
,
OPT_BOOL
,
{
&
audio_disable
},
"disable audio"
},
{
"vn"
,
OPT_BOOL
,
{
&
video_disable
},
"disable video"
},
{
"ast"
,
OPT_INT
|
HAS_ARG
|
OPT_EXPERT
,
{
&
wanted_stream
[
AVMEDIA_TYPE_AUDIO
]
},
"select desired audio stream"
,
"stream_number"
},
{
"vst"
,
OPT_INT
|
HAS_ARG
|
OPT_EXPERT
,
{
&
wanted_stream
[
AVMEDIA_TYPE_VIDEO
]
},
"select desired video stream"
,
"stream_number"
},
{
"sst"
,
OPT_INT
|
HAS_ARG
|
OPT_EXPERT
,
{
&
wanted_stream
[
AVMEDIA_TYPE_SUBTITLE
]
},
"select desired subtitle stream"
,
"stream_number"
},
{
"ss"
,
HAS_ARG
,
{
.
func_arg
=
opt_seek
},
"seek to a given position in seconds"
,
"pos"
},
{
"t"
,
HAS_ARG
,
{
.
func_arg
=
opt_duration
},
"play
\"
duration
\"
seconds of audio/video"
,
"duration"
},
{
"bytes"
,
OPT_INT
|
HAS_ARG
,
{
(
void
*
)
&
seek_by_bytes
},
"seek by bytes 0=off 1=on -1=auto"
,
"val"
},
{
"nodisp"
,
OPT_BOOL
,
{
(
void
*
)
&
display_disable
},
"disable graphical display"
},
{
"bytes"
,
OPT_INT
|
HAS_ARG
,
{
&
seek_by_bytes
},
"seek by bytes 0=off 1=on -1=auto"
,
"val"
},
{
"nodisp"
,
OPT_BOOL
,
{
&
display_disable
},
"disable graphical display"
},
{
"f"
,
HAS_ARG
,
{
.
func_arg
=
opt_format
},
"force format"
,
"fmt"
},
{
"pix_fmt"
,
HAS_ARG
|
OPT_EXPERT
|
OPT_VIDEO
,
{
.
func_arg
=
opt_frame_pix_fmt
},
"set pixel format"
,
"format"
},
{
"stats"
,
OPT_BOOL
|
OPT_EXPERT
,
{
(
void
*
)
&
show_status
},
"show status"
,
""
},
{
"stats"
,
OPT_BOOL
|
OPT_EXPERT
,
{
&
show_status
},
"show status"
,
""
},
{
"debug"
,
HAS_ARG
|
OPT_EXPERT
,
{
.
func_arg
=
opt_debug
},
"print specific debug info"
,
""
},
{
"bug"
,
OPT_INT
|
HAS_ARG
|
OPT_EXPERT
,
{
(
void
*
)
&
workaround_bugs
},
"workaround bugs"
,
""
},
{
"bug"
,
OPT_INT
|
HAS_ARG
|
OPT_EXPERT
,
{
&
workaround_bugs
},
"workaround bugs"
,
""
},
{
"vismv"
,
HAS_ARG
|
OPT_EXPERT
,
{
.
func_arg
=
opt_vismv
},
"visualize motion vectors"
,
""
},
{
"fast"
,
OPT_BOOL
|
OPT_EXPERT
,
{
(
void
*
)
&
fast
},
"non spec compliant optimizations"
,
""
},
{
"genpts"
,
OPT_BOOL
|
OPT_EXPERT
,
{
(
void
*
)
&
genpts
},
"generate pts"
,
""
},
{
"drp"
,
OPT_INT
|
HAS_ARG
|
OPT_EXPERT
,
{
(
void
*
)
&
decoder_reorder_pts
},
"let decoder reorder pts 0=off 1=on -1=auto"
,
""
},
{
"skiploop"
,
OPT_INT
|
HAS_ARG
|
OPT_EXPERT
,
{
(
void
*
)
&
skip_loop_filter
},
""
,
""
},
{
"skipframe"
,
OPT_INT
|
HAS_ARG
|
OPT_EXPERT
,
{
(
void
*
)
&
skip_frame
},
""
,
""
},
{
"skipidct"
,
OPT_INT
|
HAS_ARG
|
OPT_EXPERT
,
{
(
void
*
)
&
skip_idct
},
""
,
""
},
{
"idct"
,
OPT_INT
|
HAS_ARG
|
OPT_EXPERT
,
{
(
void
*
)
&
idct
},
"set idct algo"
,
"algo"
},
{
"ec"
,
OPT_INT
|
HAS_ARG
|
OPT_EXPERT
,
{
(
void
*
)
&
error_concealment
},
"set error concealment options"
,
"bit_mask"
},
{
"fast"
,
OPT_BOOL
|
OPT_EXPERT
,
{
&
fast
},
"non spec compliant optimizations"
,
""
},
{
"genpts"
,
OPT_BOOL
|
OPT_EXPERT
,
{
&
genpts
},
"generate pts"
,
""
},
{
"drp"
,
OPT_INT
|
HAS_ARG
|
OPT_EXPERT
,
{
&
decoder_reorder_pts
},
"let decoder reorder pts 0=off 1=on -1=auto"
,
""
},
{
"skiploop"
,
OPT_INT
|
HAS_ARG
|
OPT_EXPERT
,
{
&
skip_loop_filter
},
""
,
""
},
{
"skipframe"
,
OPT_INT
|
HAS_ARG
|
OPT_EXPERT
,
{
&
skip_frame
},
""
,
""
},
{
"skipidct"
,
OPT_INT
|
HAS_ARG
|
OPT_EXPERT
,
{
&
skip_idct
},
""
,
""
},
{
"idct"
,
OPT_INT
|
HAS_ARG
|
OPT_EXPERT
,
{
&
idct
},
"set idct algo"
,
"algo"
},
{
"ec"
,
OPT_INT
|
HAS_ARG
|
OPT_EXPERT
,
{
&
error_concealment
},
"set error concealment options"
,
"bit_mask"
},
{
"sync"
,
HAS_ARG
|
OPT_EXPERT
,
{
.
func_arg
=
opt_sync
},
"set audio-video sync. type (type=audio/video/ext)"
,
"type"
},
{
"autoexit"
,
OPT_BOOL
|
OPT_EXPERT
,
{
(
void
*
)
&
autoexit
},
"exit at the end"
,
""
},
{
"exitonkeydown"
,
OPT_BOOL
|
OPT_EXPERT
,
{
(
void
*
)
&
exit_on_keydown
},
"exit on key down"
,
""
},
{
"exitonmousedown"
,
OPT_BOOL
|
OPT_EXPERT
,
{
(
void
*
)
&
exit_on_mousedown
},
"exit on mouse down"
,
""
},
{
"loop"
,
OPT_INT
|
HAS_ARG
|
OPT_EXPERT
,
{
(
void
*
)
&
loop
},
"set number of times the playback shall be looped"
,
"loop count"
},
{
"framedrop"
,
OPT_BOOL
|
OPT_EXPERT
,
{
(
void
*
)
&
framedrop
},
"drop frames when cpu is too slow"
,
""
},
{
"infbuf"
,
OPT_BOOL
|
OPT_EXPERT
,
{
(
void
*
)
&
infinite_buffer
},
"don't limit the input buffer size (useful with realtime streams)"
,
""
},
{
"window_title"
,
OPT_STRING
|
HAS_ARG
,
{
(
void
*
)
&
window_title
},
"set window title"
,
"window title"
},
{
"autoexit"
,
OPT_BOOL
|
OPT_EXPERT
,
{
&
autoexit
},
"exit at the end"
,
""
},
{
"exitonkeydown"
,
OPT_BOOL
|
OPT_EXPERT
,
{
&
exit_on_keydown
},
"exit on key down"
,
""
},
{
"exitonmousedown"
,
OPT_BOOL
|
OPT_EXPERT
,
{
&
exit_on_mousedown
},
"exit on mouse down"
,
""
},
{
"loop"
,
OPT_INT
|
HAS_ARG
|
OPT_EXPERT
,
{
&
loop
},
"set number of times the playback shall be looped"
,
"loop count"
},
{
"framedrop"
,
OPT_BOOL
|
OPT_EXPERT
,
{
&
framedrop
},
"drop frames when cpu is too slow"
,
""
},
{
"infbuf"
,
OPT_BOOL
|
OPT_EXPERT
,
{
&
infinite_buffer
},
"don't limit the input buffer size (useful with realtime streams)"
,
""
},
{
"window_title"
,
OPT_STRING
|
HAS_ARG
,
{
&
window_title
},
"set window title"
,
"window title"
},
#if CONFIG_AVFILTER
{
"vf"
,
OPT_STRING
|
HAS_ARG
,
{
(
void
*
)
&
vfilters
},
"video filters"
,
"filter list"
},
{
"vf"
,
OPT_STRING
|
HAS_ARG
,
{
&
vfilters
},
"video filters"
,
"filter list"
},
#endif
{
"rdftspeed"
,
OPT_INT
|
HAS_ARG
|
OPT_AUDIO
|
OPT_EXPERT
,
{
(
void
*
)
&
rdftspeed
},
"rdft speed"
,
"msecs"
},
{
"default"
,
HAS_ARG
|
OPT_AUDIO
|
OPT_VIDEO
|
OPT_EXPERT
,
{
(
void
*
)
opt_default
},
"generic catch all option"
,
""
},
{
"rdftspeed"
,
OPT_INT
|
HAS_ARG
|
OPT_AUDIO
|
OPT_EXPERT
,
{
&
rdftspeed
},
"rdft speed"
,
"msecs"
},
{
"default"
,
HAS_ARG
|
OPT_AUDIO
|
OPT_VIDEO
|
OPT_EXPERT
,
{
opt_default
},
"generic catch all option"
,
""
},
{
"i"
,
0
,
{
NULL
},
"avconv compatibility dummy option"
,
""
},
{
NULL
,
},
};
...
...
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