diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2015-10-14 15:07:10 +0200 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2015-10-15 15:47:08 +0200 |
commit | 9ef748173a4e0e58d40afaf38397783cd2537eaa (patch) | |
tree | ba17d7c3548e4f6e7d30ba4f8c531c09b2bdfd91 /cmdutils.c | |
parent | e240a28b20680b326a39b0860fda37d7e459bfc0 (diff) | |
download | ffmpeg-9ef748173a4e0e58d40afaf38397783cd2537eaa.tar.gz |
cmdutils: Print general codec capabilities
Diffstat (limited to 'cmdutils.c')
-rw-r--r-- | cmdutils.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/cmdutils.c b/cmdutils.c index 065ba497b0..5cb22f6946 100644 --- a/cmdutils.c +++ b/cmdutils.c @@ -977,6 +977,35 @@ static void print_codec(const AVCodec *c) printf("%s %s [%s]:\n", encoder ? "Encoder" : "Decoder", c->name, c->long_name ? c->long_name : ""); + printf(" General capabilities: "); + if (c->capabilities & AV_CODEC_CAP_DRAW_HORIZ_BAND) + printf("horizband "); + if (c->capabilities & AV_CODEC_CAP_DR1) + printf("dr1 "); + if (c->capabilities & AV_CODEC_CAP_TRUNCATED) + printf("trunc "); + if (c->capabilities & AV_CODEC_CAP_DELAY) + printf("delay "); + if (c->capabilities & AV_CODEC_CAP_SMALL_LAST_FRAME) + printf("small "); + if (c->capabilities & AV_CODEC_CAP_SUBFRAMES) + printf("subframes "); + if (c->capabilities & AV_CODEC_CAP_EXPERIMENTAL) + printf("exp "); + if (c->capabilities & AV_CODEC_CAP_CHANNEL_CONF) + printf("chconf "); + if (c->capabilities & AV_CODEC_CAP_PARAM_CHANGE) + printf("small "); + if (c->capabilities & AV_CODEC_CAP_PARAM_CHANGE) + printf("variable "); + if (c->capabilities & (AV_CODEC_CAP_FRAME_THREADS | + AV_CODEC_CAP_SLICE_THREADS | + AV_CODEC_CAP_AUTO_THREADS)) + printf("threads "); + if (!c->capabilities) + printf("none"); + printf("\n"); + if (c->type == AVMEDIA_TYPE_VIDEO) { printf(" Threading capabilities: "); switch (c->capabilities & (AV_CODEC_CAP_FRAME_THREADS | |