encode: move allocations out of encode_create
Fix typo in od_mc_predict8

Results on video-1-short:
          RATE (%)  DSNR (dB)
    PSNR  0.05477  -0.00294
 PSNRHVS -0.27886   0.02215
    SSIM -0.22127   0.01067
FASTSSIM -0.13975   0.00859
Remove incorrect assertion: level 2 MVs outside the frame can be valid
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>