[cvs] / xvidcore / examples / xvid_bench.c Repository:
ViewVC logotype

Log of /xvidcore/examples/xvid_bench.c

Parent Directory Parent Directory


Links to HEAD: (view) (download) (annotate)
Sticky Tag:

Revision 1.38.2.1 - (view) (download) (annotate) - [select for diffs]
Tue Dec 2 14:00:09 2008 UTC (15 years, 5 months ago) by Isibaar
Branch: release-1_2-branch
CVS Tags: release-1_2_2
Changes since 1.38: +23 -1 lines
Diff to previous 1.38 , to next main 1.39 , to selected 1.37
missing PUSH/POP_XMM6_XMM7 in quant_h263_intra_sse2
WIN64 XMM6/XMM7 bench

Revision 1.39 - (view) (download) (annotate) - [select for diffs]
Tue Dec 2 13:44:55 2008 UTC (15 years, 5 months ago) by Isibaar
Branch: MAIN
CVS Tags: HEAD, rc1_1_3_0, release-1_3_0, release-1_3_1, tag-branching-1_3_0
Branch point for: release-1_3-branch
Changes since 1.38: +23 -1 lines
Diff to previous 1.38 , to selected 1.37
WIN64 XMM6/XMM7 bench and asm optimization patch by Andrew Dunstan

Revision 1.38 - (view) (download) (annotate) - [select for diffs]
Wed Nov 26 23:37:28 2008 UTC (15 years, 5 months ago) by Isibaar
Branch: MAIN
CVS Tags: release-1_2_0, tag-branching-1_2_0
Branch point for: release-1_2-branch
Changes since 1.37: +10 -1 lines
Diff to previous 1.37
sad8bi bench

Revision 1.37 - (view) (download) (annotate) - [selected]
Wed Nov 26 09:31:06 2008 UTC (15 years, 5 months ago) by Isibaar
Branch: MAIN
Changes since 1.36: +67 -44 lines
Diff to previous 1.36
some more benches

Revision 1.36 - (view) (download) (annotate) - [select for diffs]
Fri Nov 14 15:43:27 2008 UTC (15 years, 5 months ago) by Isibaar
Branch: MAIN
Changes since 1.35: +7 -3 lines
Diff to previous 1.35 , to selected 1.37
initial SSE4 support

Revision 1.35 - (view) (download) (annotate) - [select for diffs]
Thu Dec 21 23:27:35 2006 UTC (17 years, 4 months ago) by Isibaar
Branch: MAIN
Changes since 1.34: +3 -2 lines
Diff to previous 1.34 , to selected 1.37
- PPC build cleanup patch for SSIM by Paul Kurucz

Revision 1.27.2.1 - (view) (download) (annotate) - [select for diffs]
Wed Nov 1 10:01:23 2006 UTC (17 years, 6 months ago) by Isibaar
Branch: release-1_1-branch
CVS Tags: release-1_1_2, release-1_1_3, release-1_1_3-final
Changes since 1.27: +59 -1 lines
Diff to previous 1.27 , to next main 1.39 , to selected 1.37
- added test_bits from HEAD

Revision 1.34 - (view) (download) (annotate) - [select for diffs]
Wed Nov 1 07:12:26 2006 UTC (17 years, 6 months ago) by Skal
Branch: MAIN
Changes since 1.33: +62 -4 lines
Diff to previous 1.33 , to selected 1.37
        + added a very simple bench to test bitstream-read functions
        mostly to be used in conjunction to valgrind to spot uninitialized
        reads.

Revision 1.33 - (view) (download) (annotate) - [select for diffs]
Mon Oct 30 11:21:42 2006 UTC (17 years, 6 months ago) by Skal
Branch: MAIN
Changes since 1.32: +4 -5 lines
Diff to previous 1.32 , to selected 1.37
        + further patch for SSIM plugin by Johannes Reinhardt
        + updated `xvid_bench 15` => there's still a little
        rounding inaccuracy in the reported CRCs. Work in progress...

Revision 1.32 - (view) (download) (annotate) - [select for diffs]
Mon Oct 30 10:52:00 2006 UTC (17 years, 6 months ago) by Skal
Branch: MAIN
Changes since 1.31: +69 -3 lines
Diff to previous 1.31 , to selected 1.37
        + added support for NULL u/v pointer in yv12_to_yv12* functions
        (+little bug fix for the vflip case).
        Added a bench in xvid_bench.c (`xvid_bench 16`)

Revision 1.31 - (view) (download) (annotate) - [select for diffs]
Fri Oct 13 15:19:48 2006 UTC (17 years, 6 months ago) by Skal
Branch: MAIN
Changes since 1.30: +3 -3 lines
Diff to previous 1.30 , to selected 1.37
        bench on lum2x8 was wrong (uninitialized reads)

Revision 1.30 - (view) (download) (annotate) - [select for diffs]
Fri Oct 13 15:16:25 2006 UTC (17 years, 6 months ago) by Skal
Branch: MAIN
Changes since 1.29: +2 -2 lines
Diff to previous 1.29 , to selected 1.37
        some more SSIM patches by Johannes

Revision 1.29 - (view) (download) (annotate) - [select for diffs]
Wed Oct 11 14:55:28 2006 UTC (17 years, 6 months ago) by Skal
Branch: MAIN
Changes since 1.28: +89 -1 lines
Diff to previous 1.28 , to selected 1.37
        + added a bench for SSIM's internal function (`xvid_bench 15`)

Revision 1.28 - (view) (download) (annotate) - [select for diffs]
Mon Jun 5 21:30:49 2006 UTC (17 years, 11 months ago) by Skal
Branch: MAIN
Changes since 1.27: +81 -1 lines
Diff to previous 1.27 , to selected 1.37
        + added a test_yuv() stub to test YUV functions,
        at least : yv12_to_yuyv and yv12_to_uyvy

Revision 1.27 - (view) (download) (annotate) - [select for diffs]
Thu Nov 3 05:44:07 2005 UTC (18 years, 6 months ago) by Skal
Branch: MAIN
CVS Tags: release-1_1_0, release-1_1_0_final, release-1_1_1-final
Branch point for: release-1_1-branch
Changes since 1.26: +7 -7 lines
Diff to previous 1.26 , to selected 1.37
	typo fixed (thanks squid_80)

Revision 1.26 - (view) (download) (annotate) - [select for diffs]
Wed Oct 26 12:38:33 2005 UTC (18 years, 6 months ago) by Skal
Branch: MAIN
Changes since 1.25: +90 -1 lines
Diff to previous 1.25 , to selected 1.37
         + removed the x_Ref%4 in qpel.h, in favor of x_Ref>>2.
        As suggested by Gruel, there might be a compiler
        problem for some very very exotic platform.
        Hence, i've added a test_compiler() in xvid_bench.c, to
        be sure everything are ok. Hope the test is correct.

        + added benches for interlaced decoding, as supplied
        by Christoph Kühnel (info at intek-darmstadt dot de).
        Thanks a lot.

Revision 1.25 - (view) (download) (annotate) - [select for diffs]
Fri Sep 23 12:53:35 2005 UTC (18 years, 7 months ago) by suxen_drol
Branch: MAIN
Changes since 1.24: +6 -1 lines
Diff to previous 1.24 , to selected 1.37
+ve/-ve cbp test (to demonstrate fault with current calc_cbp_mmx function

Revision 1.24 - (view) (download) (annotate) - [select for diffs]
Tue Sep 20 11:51:40 2005 UTC (18 years, 7 months ago) by suxen_drol
Branch: MAIN
Changes since 1.23: +7 -7 lines
Diff to previous 1.23 , to selected 1.37
msvc fails on void* arithmetic in xvid_bench.c

Revision 1.23 - (view) (download) (annotate) - [select for diffs]
Fri Aug 5 20:49:23 2005 UTC (18 years, 9 months ago) by Skal
Branch: MAIN
Changes since 1.22: +38 -8 lines
Diff to previous 1.22 , to selected 1.37
	Added Carlo's optimized cbp calc function, and bench (slightly edited).
	(carlo dot bramix at libero dot it)

Revision 1.22 - (view) (download) (annotate) - [select for diffs]
Wed Jun 15 06:07:28 2005 UTC (18 years, 10 months ago) by Skal
Branch: MAIN
Changes since 1.21: +59 -31 lines
Diff to previous 1.21 , to selected 1.37
	fix for crc computation on BIG_ENDIAN platforms.
	Patch by Paul Kurucz ( ptk9417 at ritvax dot isc dot rit dot edu )

Revision 1.21 - (view) (download) (annotate) - [select for diffs]
Tue Jun 14 13:58:21 2005 UTC (18 years, 10 months ago) by Skal
Branch: MAIN
Changes since 1.20: +13 -7 lines
Diff to previous 1.20 , to selected 1.37
	+ Aligned local arrays in test_transfer() of xvid_bench.c
	+ optimized the C-version of mem_transfer.c. You can activate
	the new code by commenting out the "#define USE_REFERENCE_C"
	at the beginning of the source file.

Revision 1.20 - (view) (download) (annotate) - [select for diffs]
Mon May 23 12:06:02 2005 UTC (18 years, 11 months ago) by Skal
Branch: MAIN
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 , to selected 1.37

	+ Added IEEE-1180 and Walken-compliant SSE2 Idct.
	Disabled by default (line 515 of xvid.c) until proven fully
	safe. Should give binary-equal results than the mmx and xmm
	versions.

Revision 1.19 - (view) (download) (annotate) - [select for diffs]
Mon May 23 09:29:43 2005 UTC (18 years, 11 months ago) by Skal
Branch: MAIN
Changes since 1.18: +71 -205 lines
Diff to previous 1.18 , to selected 1.37
	encoder.c: simplify_time() optimized by Euclid.

	bitstream.c: write_video_packet_header() was buggy and
	kind of obfuscated, as noticed by Sigdrak at free.fr.

	from Edouard:

	gcc4 warning removal.
	- No executable shared objects installed
	  (Do not install the lib as executable. It's no use as the SO has no
 	   main symbol anyway, and the static lib is not runnable anyway.)
	- Statically link xvid_bench with libxvidcore.a
	- New autoconf garbage removal
	- Quotes in configure.in

Revision 1.18 - (view) (download) (annotate) - [select for diffs]
Tue May 17 21:03:32 2005 UTC (18 years, 11 months ago) by Skal
Branch: MAIN
Changes since 1.17: +56 -1 lines
Diff to previous 1.17 , to selected 1.37
	encoder.c: better error handling upon MEM_ERROR
	bitstream.c: faster log2bin (xvid_bench.c updated)
	bitstream.c: added unused functions:
BitstreamWriteEndOfSequence()
BitstreamWriteGroupOfVopHeader()
write_video_packet_header()

	Original input: sigdrak at free.fr and Angela Belda. Thanks.

Revision 1.17 - (view) (download) (annotate) - [select for diffs]
Tue May 17 15:40:11 2005 UTC (18 years, 11 months ago) by Skal
Branch: MAIN
Changes since 1.16: +109 -55 lines
Diff to previous 1.16 , to selected 1.37

	Added a verification bench 'bench.pl'.
	You should customize the 'bench_list.pl' list with
	the bitstreams you want to check for decoding.

	Updated 'xvid_bench.c'.

Revision 1.16 - (view) (download) (annotate) - [select for diffs]
Mon Apr 18 08:31:42 2005 UTC (19 years ago) by Skal
Branch: MAIN
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 , to selected 1.37
        clock() returns time in milliseconds. Thx to Mark L at yahoo dot com.

Revision 1.15 - (view) (download) (annotate) - [select for diffs]
Wed Jan 5 23:02:15 2005 UTC (19 years, 4 months ago) by edgomez
Branch: MAIN
Changes since 1.14: +3 -0 lines
Diff to previous 1.14 , to selected 1.37
Preliminary x86_64 linux port

Revision 1.14 - (view) (download) (annotate) - [select for diffs]
Mon Apr 12 15:49:56 2004 UTC (20 years ago) by edgomez
Branch: MAIN
Changes since 1.13: +95 -7 lines
Diff to previous 1.13 , to selected 1.37
Optmized mem transfers, h263, plane sse

Revision 1.13 - (view) (download) (annotate) - [select for diffs]
Mon Apr 5 20:36:36 2004 UTC (20 years, 1 month ago) by edgomez
Branch: MAIN
Changes since 1.12: +3 -0 lines
Diff to previous 1.12 , to selected 1.37
Merged PPC port + 1.0 tree fixes

Revision 1.12 - (view) (download) (annotate) - [select for diffs]
Fri Apr 2 21:29:21 2004 UTC (20 years, 1 month ago) by edgomez
Branch: MAIN
Changes since 1.11: +40 -2 lines
Diff to previous 1.11 , to selected 1.37
Merged 1.0 branch fixes

Revision 1.11.2.1 - (view) (download) (annotate) - [select for diffs]
Wed Mar 31 19:35:31 2004 UTC (20 years, 1 month ago) by edgomez
Branch: release-1_0-branch
CVS Tags: release-1_0_0, release-1_0_1, release-1_0_2, release-1_0_3
Changes since 1.11: +40 -2 lines
Diff to previous 1.11 , to next main 1.39 , to selected 1.37
Sorry no time to split this devapi4->1.0 branch merging

Revision 1.9.2.11 - (view) (download) (annotate) - [select for diffs]
Tue Mar 30 21:38:19 2004 UTC (20 years, 1 month ago) by Skal
Branch: dev-api-4
Changes since 1.9.2.10: +43 -3 lines
Diff to previous 1.9.2.10 , to branch point 1.9 , to next main 1.39 , to selected 1.37
	+ Added an exhaustive test for all possible input
	and quantizer in test_quant()
	It compares the ASM version against the output of
	the C-version (considered as the reference).

Revision 1.11 - (view) (download) (annotate) - [select for diffs]
Mon Mar 22 22:36:23 2004 UTC (20 years, 1 month ago) by edgomez
Branch: MAIN
Branch point for: release-1_0-branch
Changes since 1.10: +1366 -1126 lines
Diff to previous 1.10 , to selected 1.37
xvidcore 1.0.0 rc3 merge back to HEAD

Revision 1.9.2.10 - (view) (download) (annotate) - [select for diffs]
Sat Dec 13 00:04:08 2003 UTC (20 years, 4 months ago) by edgomez
Branch: dev-api-4
Changes since 1.9.2.9: +17 -9 lines
Diff to previous 1.9.2.9 , to branch point 1.9 , to selected 1.37
- Enabled SSE2 safe code
- Aligned data in xvid_bench

Revision 1.9.2.9 - (view) (download) (annotate) - [select for diffs]
Sun Nov 30 16:13:15 2003 UTC (20 years, 5 months ago) by edgomez
Branch: dev-api-4
Changes since 1.9.2.8: +432 -275 lines
Diff to previous 1.9.2.8 , to branch point 1.9 , to selected 1.37
* Thread safe MPEG4 quantization functions.
  Cleaned up version of patch provided by Michael
   - fixed compiling problems on gcc
   - added const qualifiers every where it was possible to help C compiler
     optimization.
   - added the mpeg_quant_matrices param to all ASM function prototype
     in comments (even if it's not used, that shows we do it deliberatly)
   - forces m[intra][0][0] = 8, otherwise XviD could write invalid streams.
* Added real CRC computing in xvid_bench.c

Revision 1.9.2.8 - (view) (download) (annotate) - [select for diffs]
Wed Nov 19 21:27:25 2003 UTC (20 years, 5 months ago) by edgomez
Branch: dev-api-4
Changes since 1.9.2.7: +186 -123 lines
Diff to previous 1.9.2.7 , to branch point 1.9 , to selected 1.37
updated crc for transfer_8to16_sub2

Revision 1.9.2.7 - (view) (download) (annotate) - [select for diffs]
Mon Nov 3 19:58:16 2003 UTC (20 years, 6 months ago) by edgomez
Branch: dev-api-4
Changes since 1.9.2.6: +8 -5 lines
Diff to previous 1.9.2.6 , to branch point 1.9 , to selected 1.37
* Small error fixed by Skal in his dev16 code (missing pshufd).
* Blocks used by DCT tests are now aligned with DECLARE_ALIGNED_MATRIX
  this avoids the well know segfaults when using SSE2 instructions that
  suppose data alignment.

Revision 1.9.2.6 - (view) (download) (annotate) - [select for diffs]
Sun Nov 2 23:02:52 2003 UTC (20 years, 6 months ago) by edgomez
Branch: dev-api-4
Changes since 1.9.2.5: +21 -11 lines
Diff to previous 1.9.2.5 , to branch point 1.9 , to selected 1.37
* Added Dmitry SSE2 iDCT code back.
* Plugged Dmitry iDCT as default for SSE2
* Fixed a bug in xvid_bench that was making it would test some CPU
  instruction set w/o host CPU support. xvidcore init was simply
  discarding irrelevant cpu flags.

Revision 1.9.2.5 - (view) (download) (annotate) - [select for diffs]
Thu Oct 9 18:50:22 2003 UTC (20 years, 6 months ago) by edgomez
Branch: dev-api-4
Changes since 1.9.2.4: +31 -37 lines
Diff to previous 1.9.2.4 , to branch point 1.9 , to selected 1.37
Updated assembly functions to match new API -- more to come when matrices will be part of the function parameters

Revision 1.9.2.4 - (view) (download) (annotate) - [select for diffs]
Wed Aug 13 11:43:45 2003 UTC (20 years, 8 months ago) by edgomez
Branch: dev-api-4
Changes since 1.9.2.3: +11 -1 lines
Diff to previous 1.9.2.3 , to branch point 1.9 , to selected 1.37
Better architecture separation

Revision 1.9.2.3 - (view) (download) (annotate) - [select for diffs]
Tue Jun 10 09:14:48 2003 UTC (20 years, 10 months ago) by edgomez
Branch: dev-api-4
Changes since 1.9.2.2: +989 -984 lines
Diff to previous 1.9.2.2 , to branch point 1.9 , to selected 1.37
xvid_bench update + corresponding Makefile update

Revision 1.9.2.2 - (view) (download) (annotate) - [select for diffs]
Mon Jun 9 13:49:00 2003 UTC (20 years, 10 months ago) by edgomez
Branch: dev-api-4
Changes since 1.9.2.1: +21 -20 lines
Diff to previous 1.9.2.1 , to branch point 1.9 , to selected 1.37
Added legal header

Revision 1.9.2.1 - (view) (download) (annotate) - [select for diffs]
Mon Jun 9 01:15:46 2003 UTC (20 years, 11 months ago) by edgomez
Branch: dev-api-4
Changes since 1.9: +29 -29 lines
Diff to previous 1.9 , to selected 1.37
ISO C89 comment style

Revision 1.10 - (view) (download) (annotate) - [select for diffs]
Wed Feb 26 19:05:20 2003 UTC (21 years, 2 months ago) by chl
Branch: MAIN
CVS Tags: cvs-head, tag-merging-20040322
Branch point for: Isibaar
Changes since 1.9: +15 -4 lines
Diff to previous 1.9 , to selected 1.37
sad16v, removed CRC error for sad16

Revision 1.9 - (view) (download) (annotate) - [select for diffs]
Sun Feb 16 05:11:39 2003 UTC (21 years, 2 months ago) by suxen_drol
Branch: MAIN
Branch point for: dev-api-4
Changes since 1.8: +18 -1 lines
Diff to previous 1.8 , to selected 1.37
futher portab.h, ARCH_IS_xxx fixes

Revision 1.8 - (view) (download) (annotate) - [select for diffs]
Sat Feb 15 15:22:17 2003 UTC (21 years, 2 months ago) by edgomez
Branch: MAIN
CVS Tags: merged-dev-api-3
Changes since 1.7: +37 -49 lines
Diff to previous 1.7 , to selected 1.37
Moved dev-api-3 to HEAD -- Nasty but efficient -- Merging work has been done too

Revision 1.7 - (view) (download) (annotate) - [select for diffs]
Sun Feb 9 19:32:52 2003 UTC (21 years, 2 months ago) by edgomez
Branch: MAIN
CVS Tags: release-0_9_1, release-0_9_2
Branch point for: release-0_9_1-fixes
Changes since 1.6: +1 -1 lines
Diff to previous 1.6 , to selected 1.37
I made all these changes on my own working copy until i had
something really usable wihtout regressions for most users.

I think its place is now in CVS. Here is a ChangeLog summary
generated from my local patches.

base-0
    Imported xvidcore 0.9.0 into arch repository
patch-1
    Updated to current stable CVS_HEAD
patch-2
    Changed build system for Unix OSes
patch-3
    Fixes for the new build system in sources.
patch-4
    Fixed options and added the --disable-assembly option
patch-5
    Fixed a BSD checking in nasm output format.
patch-6
    Fixed the "ar" "s" option for some platforms.
patch-7
    Changed the way I add strings into variables.
patch-8
    Fixed portab.h for _DEBUG target and GCC/ICC compilers.
patch-9
    Added Altivec detection (Guillaume Morin)
patch-10
    Fixed MacOSX build.
patch-11
    Fixed WIN32/_MSC_VER confusion and updated MSVC libxvidcore.dsp project file.
patch-12
    DivX4 compatibility layer has been turned into an option (default:disable).

ToDo:
    - Fix IA64 assembly file selection.
    - Do I disable PPC assembly code ? (according to Guillaume, it needs to be updated)

Revision 1.6 - (view) (download) (annotate) - [select for diffs]
Sun Feb 2 00:25:51 2003 UTC (21 years, 3 months ago) by edgomez
Branch: MAIN
Changes since 1.5: +1 -1 lines
Diff to previous 1.5 , to selected 1.37
Small fix

Revision 1.5 - (view) (download) (annotate) - [select for diffs]
Wed Nov 27 21:09:10 2002 UTC (21 years, 5 months ago) by edgomez
Branch: MAIN
Changes since 1.4: +49 -37 lines
Diff to previous 1.4 , to selected 1.37
Ansi C + Win32 update for xvid_bench

Revision 1.4 - (view) (download) (annotate) - [select for diffs]
Wed Jul 10 13:23:29 2002 UTC (21 years, 9 months ago) by ia64p
Branch: MAIN
CVS Tags: branch-release-1-0, release-0_9_0, tag-branching-20020904
Branch point for: dev-api-3
Changes since 1.3: +3 -1 lines
Diff to previous 1.3 , to selected 1.37
fixing for ia64, again

Revision 1.3 - (view) (download) (annotate) - [select for diffs]
Sun Jul 7 09:42:41 2002 UTC (21 years, 10 months ago) by Isibaar
Branch: MAIN
Changes since 1.2: +646 -162 lines
Diff to previous 1.2 , to selected 1.37
split mmx,xmm,3dnow,sse2 code into different files, SMP fix, Skal's tweaked asm code

Revision 1.2 - (view) (download) (annotate) - [select for diffs]
Fri Jul 5 14:54:15 2002 UTC (21 years, 10 months ago) by ia64p
Branch: MAIN
Changes since 1.1: +3 -1 lines
Diff to previous 1.1 , to selected 1.37
compatible with ia64, now

Revision 1.1 - (view) (download) (annotate) - [select for diffs]
Wed Jun 19 14:27:08 2002 UTC (21 years, 10 months ago) by Isibaar
Branch: MAIN
Diff to selected 1.37
Skal's test and benchmarking tool

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4