[FFmpeg-cvslog] avcodec/tak*: use cached bitstream reader on !x86_32
Paul B Mahol
git at videolan.org
Fri Sep 16 11:01:50 EEST 2022
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Tue Sep 13 14:38:18 2022 +0200| [53523ed530d0aceb0581c2e4f120ae3915e9bc05] | committer: Paul B Mahol
avcodec/tak*: use cached bitstream reader on !x86_32
Increases single thread decoding speed in one example from 85x to 90x
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=53523ed530d0aceb0581c2e4f120ae3915e9bc05
---
libavcodec/tak.c | 1 +
libavcodec/tak_parser.c | 1 +
libavcodec/takdec.c | 1 +
3 files changed, 3 insertions(+)
diff --git a/libavcodec/tak.c b/libavcodec/tak.c
index 7221a80094..f26574c968 100644
--- a/libavcodec/tak.c
+++ b/libavcodec/tak.c
@@ -23,6 +23,7 @@
#include "libavutil/crc.h"
#include "libavutil/intreadwrite.h"
+#define CACHED_BITSTREAM_READER !ARCH_X86_32
#define BITSTREAM_READER_LE
#include "tak.h"
diff --git a/libavcodec/tak_parser.c b/libavcodec/tak_parser.c
index b9f47db8ac..7f5f5314af 100644
--- a/libavcodec/tak_parser.c
+++ b/libavcodec/tak_parser.c
@@ -24,6 +24,7 @@
* TAK parser
**/
+#define CACHED_BITSTREAM_READER !ARCH_X86_32
#define BITSTREAM_READER_LE
#include "parser.h"
#include "tak.h"
diff --git a/libavcodec/takdec.c b/libavcodec/takdec.c
index 68ad1e9ed7..5cbc2de6bd 100644
--- a/libavcodec/takdec.c
+++ b/libavcodec/takdec.c
@@ -29,6 +29,7 @@
#include "libavutil/mem_internal.h"
#include "libavutil/samplefmt.h"
+#define CACHED_BITSTREAM_READER !ARCH_X86_32
#define BITSTREAM_READER_LE
#include "audiodsp.h"
#include "thread.h"
More information about the ffmpeg-cvslog
mailing list