state: cleanup on allocation failure
internal: add OD_UNLIKELY macro
Added patchlevel in OD_GNUC_PREREQ and removed redefinition.

Signed-off-by: Tristan Matthews <le.businessman@gmail.com>
odintrin: Fix include path for unix/Makefile

Signed-off-by: Tristan Matthews <le.businessman@gmail.com>
Rename mvs in od_mv_node to bma_mvs to avoid confusion

There is already an mvs in od_mv_est_ctx corresponding to the MV mesh
Fix constant velocity predictors in the BMA MC search

They're stored at full-pel resolution, not 1/8th pel.

Results on video-1-short:
           RATE (%)  DSNR (dB)
    PSNR -0.95104  0.05093
 PSNRHVS -1.44406  0.11487
    SSIM -1.25525  0.06062
FASTSSIM -1.10287  0.06805
Use round-to-even for BMA MC predictors to avoid biasing

Results on video-1-short:
           RATE (%)  DSNR (dB)
    PSNR -0.05573  0.00298
 PSNRHVS -0.06775  0.00537
    SSIM -0.05525  0.00266
FASTSSIM -0.06724  0.00412
Simplify OD_UNBIASED_RSHIFT.

Just in case the compiler can't figure it out.

Signed-off-by: Timothy B. Terriberry <tterribe@xiph.org>
Remove od_state.input
Make frame buffers explicitly aligned.
pkg-config: fix uninstalled .pc files
mcenc.c: Properly clear MVs hit cache

This avoids spurious hits when hit_bit is reset to 0.
Unfortunately this slightly increases rate on video-1-short:
           RATE (%)  DSNR (dB)
    PSNR 0.03606  -0.00193
 PSNRHVS 0.03931  -0.00311
    SSIM 0.01739  -0.00084
FASTSSIM 0.02251  -0.00138
Removing legacy metrics code.
mcenc: check allocations and cleanup
Improve .gitignore for doc and submit_awcy.py
Add SSE4.1 and AVX2 detection.

We'll want to renumber the flags they when we add other instruction
 sets, but this doesn't affect ABI, so that can be done later.

Signed-off-by: Timothy B. Terriberry <tterribe@xiph.org>
Add SSE2/SSE4.1 version of od_bin_fdct4x4.

Currently requires configuring with -msse4.1 in your CFLAGS to build
 the SSE4.1 version.

Signed-off-by: Timothy B. Terriberry <tterribe@xiph.org>
Add run-time CPU detection for the 4x4 DCT.

Also tests all implementations in dcttest.
This is not actually the test we want to run: we want to test that
 they match the C version exactly, using OD_CHECKASM similar to how
 sse2mc.c does it.
However, it's a start.

Signed-off-by: Timothy B. Terriberry <tterribe@xiph.org>
Add SSE2/SSE4.1 version of od_bin_idct4x4.

Signed-off-by: Timothy B. Terriberry <tterribe@xiph.org>
sad_4x4_sse: fix for i686

- Split into two blocks to avoid "impossible constraints"
- Removed earlyclobber "&" constraint modifiers for outputs which aren't
written to until all inputs have been consumed.