History

avcodec/fraps: Use cached bitstream reader

This proved beneficial for performance: For the sample [1] the number of decicycles in one decode call decreased from 155851561 to 108158037 for Clang 10 and from 168270467 to 128847479 for GCC 9.3. For x86-32 compiled with GCC 9.3 and run on an x64 Haswell the number increased from 158405517 to 202215769, so that the cached bitstream reader is only enabled if HAVE_FAST_64BIT is set. These values are the average of 10 runs each looping five times over the input. [1]: samples.ffmpeg.org/ffmpeg-bugs/trac/ticket2593/fraps_flv1_decoding_errors.avi

Andreas Rheinhardt committed 6 years ago

Commit a162e781 parent bc6838d1 file · +3 −0Browse files

Unified · Split

libavcodec/fraps.c+3−0
@@ -31,6 +31,9 @@ · 30 unmodified lines
3131 * Version 2 files support by Konstantin Shishkov
3232 */
3333
34+#include "config.h"
35+
36+#define CACHED_BITSTREAM_READER HAVE_FAST_64BIT
3437 #define UNCHECKED_BITSTREAM_READER 1
3538 #include "avcodec.h"
3639 #include "get_bits.h"

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t