aboutsummaryrefslogtreecommitdiff
path: root/cmdutils.c
diff options
context:
space:
mode:
authorMichael Niedermayer2009-11-19 16:35:55 +0000
committerMichael Niedermayer2009-11-19 16:35:55 +0000
commit8447f0bd74e979da5a0ba02e3c2d1abf02f9e6ec (patch)
treebd82ddac3e3ef093968bb5ede90db2741853d809 /cmdutils.c
parentb711aaa2d8035b8a14bbdf0315cf2cea48dee890 (diff)
Split show_formats().
Originally committed as revision 20553 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'cmdutils.c')
-rw-r--r--cmdutils.c32
1 files changed, 21 insertions, 11 deletions
diff --git a/cmdutils.c b/cmdutils.c
index 37b8e6e44e..5ed8919d15 100644
--- a/cmdutils.c
+++ b/cmdutils.c
@@ -417,9 +417,6 @@ void show_formats(void)
{
AVInputFormat *ifmt=NULL;
AVOutputFormat *ofmt=NULL;
- URLProtocol *up=NULL;
- AVCodec *p=NULL, *p2;
- AVBitStreamFilter *bsf=NULL;
const char *last_name;
printf(
@@ -463,8 +460,12 @@ void show_formats(void)
name,
long_name ? long_name:" ");
}
- printf("\n");
+}
+void show_codecs(void)
+{
+ AVCodec *p=NULL, *p2;
+ const char *last_name;
printf(
"Codecs:\n"
" D..... = Decoding supported\n"
@@ -529,11 +530,27 @@ void show_formats(void)
printf("\n");
}
printf("\n");
+ printf(
+"Note, the names of encoders and decoders do not always match, so there are\n"
+"several cases where the above table shows encoder only or decoder only entries\n"
+"even though both encoding and decoding are supported. For example, the h263\n"
+"decoder corresponds to the h263 and h263p encoders, for file formats it is even\n"
+"worse.\n");
+}
+
+void show_bsfs(void)
+{
+ AVBitStreamFilter *bsf=NULL;
printf("Bitstream filters:\n");
while((bsf = av_bitstream_filter_next(bsf)))
printf("%s\n", bsf->name);
printf("\n");
+}
+
+void show_protocols(void)
+{
+ URLProtocol *up=NULL;
printf("Supported file protocols:\n");
while((up = av_protocol_next(up)))
@@ -541,13 +558,6 @@ void show_formats(void)
printf("\n");
printf("Frame size, frame rate abbreviations:\n ntsc pal qntsc qpal sntsc spal film ntsc-film sqcif qcif cif 4cif\n");
- printf("\n");
- printf(
-"Note, the names of encoders and decoders do not always match, so there are\n"
-"several cases where the above table shows encoder only or decoder only entries\n"
-"even though both encoding and decoding are supported. For example, the h263\n"
-"decoder corresponds to the h263 and h263p encoders, for file formats it is even\n"
-"worse.\n");
}
int read_yesno(void)