[FFmpeg-cvslog] threads: add CODEC_CAP_AUTO_THREADS for libvpx and xavs

Janne Grunau git at videolan.org
Thu Jan 12 01:22:45 CET 2012


ffmpeg | branch: master | Janne Grunau <janne-libav at jannau.net> | Tue Jan 10 17:21:52 2012 +0100| [f6a152db1130976aa0b5da446e5df45e2c7585b8] | committer: Janne Grunau

threads: add CODEC_CAP_AUTO_THREADS for libvpx and xavs

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f6a152db1130976aa0b5da446e5df45e2c7585b8
---

 libavcodec/libvpxdec.c |    3 ++-
 libavcodec/libvpxenc.c |    2 +-
 libavcodec/libxavs.c   |    2 +-
 3 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/libavcodec/libvpxdec.c b/libavcodec/libvpxdec.c
index 5acd0f9..917a502 100644
--- a/libavcodec/libvpxdec.c
+++ b/libavcodec/libvpxdec.c
@@ -119,5 +119,6 @@ AVCodec ff_libvpx_decoder = {
     .init           = vp8_init,
     .close          = vp8_free,
     .decode         = vp8_decode,
-    .long_name = NULL_IF_CONFIG_SMALL("libvpx VP8"),
+    .capabilities   = CODEC_CAP_AUTO_THREADS,
+    .long_name      = NULL_IF_CONFIG_SMALL("libvpx VP8"),
 };
diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c
index fce3de0..64ff2c1 100644
--- a/libavcodec/libvpxenc.c
+++ b/libavcodec/libvpxenc.c
@@ -572,7 +572,7 @@ AVCodec ff_libvpx_encoder = {
     .init           = vp8_init,
     .encode         = vp8_encode,
     .close          = vp8_free,
-    .capabilities   = CODEC_CAP_DELAY,
+    .capabilities   = CODEC_CAP_DELAY | CODEC_CAP_AUTO_THREADS,
     .pix_fmts = (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
     .long_name = NULL_IF_CONFIG_SMALL("libvpx VP8"),
     .priv_class = &class,
diff --git a/libavcodec/libxavs.c b/libavcodec/libxavs.c
index 823f5fb..1a16bd9 100644
--- a/libavcodec/libxavs.c
+++ b/libavcodec/libxavs.c
@@ -414,7 +414,7 @@ AVCodec ff_libxavs_encoder = {
     .init           = XAVS_init,
     .encode         = XAVS_frame,
     .close          = XAVS_close,
-    .capabilities   = CODEC_CAP_DELAY,
+    .capabilities   = CODEC_CAP_DELAY | CODEC_CAP_AUTO_THREADS,
     .pix_fmts       = (const enum PixelFormat[]) { PIX_FMT_YUV420P, PIX_FMT_NONE },
     .long_name      = NULL_IF_CONFIG_SMALL("libxavs - the Chinese Audio Video Standard Encoder"),
     .priv_class     = &class,



More information about the ffmpeg-cvslog mailing list