From: Paul B Mahol <onemda@gmail.com> To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Subject: [FFmpeg-devel] [PATCH] avcodec/tak*: use cached bitstream reader on !x86_32 Date: Tue, 13 Sep 2022 14:38:16 +0200 Message-ID: <CAPYw7P5Ag+4-R--ib7Fbz_nvpwCn8SZa7drk3dSZer7pfDDVzA@mail.gmail.com> (raw) [-- Attachment #1: Type: text/plain, Size: 15 bytes --] Patch attached [-- Attachment #2: 0001-avcodec-tak-use-cached-bitstream-reader-on-x86_32.patch --] [-- Type: text/x-patch, Size: 1458 bytes --] From fce08a8582169c44dc3a08a956897ccb36731822 Mon Sep 17 00:00:00 2001 From: Paul B Mahol <onemda@gmail.com> Date: Tue, 13 Sep 2022 14:38:18 +0200 Subject: [PATCH] avcodec/tak*: use cached bitstream reader on !x86_32 Increases single thread decoding speed in one example from 85x to 90x Signed-off-by: Paul B Mahol <onemda@gmail.com> --- 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" -- 2.37.2 [-- Attachment #3: Type: text/plain, Size: 251 bytes --] _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
reply other threads:[~2022-09-13 12:38 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=CAPYw7P5Ag+4-R--ib7Fbz_nvpwCn8SZa7drk3dSZer7pfDDVzA@mail.gmail.com \ --to=onemda@gmail.com \ --cc=ffmpeg-devel@ffmpeg.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel This inbox may be cloned and mirrored by anyone: git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \ ffmpegdev@gitmailbox.com public-inbox-index ffmpegdev Example config snippet for mirrors. AGPL code for this site: git clone https://public-inbox.org/public-inbox.git