• Deb Mukherjee's avatar
    Initial refactoring of high_precision mv code. · 3e1cad9c
    Deb Mukherjee authored
    This is the first patch for refactoring of the code related to
    high-precision mv, so that 1/4 and 1/8 pel motion vectors can
    co-exist in the same bit-stream by use of a frame level flag.
    The current patch works fine for only use of 1/4th and
    only use of 1/8th pel mv, but there are some issues with the
    mode switching in between. Subsequent patches on this change Id
    will fix the remaining issues.
    
    Patch 2: Adds fixes to make sure that multiple mv precisions can
    co-exist in the bit-stream. Frame level switching has been tested
    to work correctly.
    
    Patch 3: Fixes lines exceeding 80 char
    
    Patch 4:
    http://www.corp.google.com/~debargha/vp8_results/enhinterp.html
    
    Results on derf after ssse3 bugfix, compared to everything
    enabled but the 8-tap, 1/8-subpel and 1/16-subpel uv. Overall the
    gains are about 3% now. Hopefully there are no more bugs lingering.
    Apparently the sse3 bug affected the quartel subpel results more than
    the eighth pel ones (which is understandabale because one bad predictor
    due to the bug, matters less if there are a lot more subpel options
    available as in the 1/8 subpel case).
    The results in the 4th column correspond to the current settings.
    The first two columns correspond to two settings of adaptive switching
    of the 1/4 or 1/8 subpel mode based on initial Q estimate. These
    do not work as good as just using 1/8 all the time yet.
    
    Change-Id: I3ef392ad338329f4d68a85257a49f2b14f3af472
    3e1cad9c
md5_utils.h 1.32 KiB
/*
 * This is the header file for the MD5 message-digest algorithm.
 * The algorithm is due to Ron Rivest.  This code was
 * written by Colin Plumb in 1993, no copyright is claimed.
 * This code is in the public domain; do with it what you wish.
 * Equivalent code is available from RSA Data Security, Inc.
 * This code has been tested against that, and is equivalent,
 * except that you don't need to include two pages of legalese
 * with every copy.
 * To compute the message digest of a chunk of bytes, declare an
 * MD5Context structure, pass it to MD5Init, call MD5Update as
 * needed on buffers full of bytes, and then call MD5Final, which
 * will fill a supplied 16-byte array with the digest.
 * Changed so as no longer to depend on Colin Plumb's `usual.h'
 * header definitions
 *  - Ian Jackson <ian@chiark.greenend.org.uk>.
 * Still in the public domain.
#ifndef MD5_H
#define MD5_H
#define md5byte unsigned char
#define UWORD32 unsigned int
typedef struct MD5Context MD5Context;
struct MD5Context {
  UWORD32 buf[4];
  UWORD32 bytes[2];
  UWORD32 in[16];
void MD5Init(struct MD5Context *context);
void MD5Update(struct MD5Context *context, md5byte const *buf, unsigned len);
void MD5Final(unsigned char digest[16], struct MD5Context *context);
void MD5Transform(UWORD32 buf[4], UWORD32 const in[16]);
#endif /* !MD5_H */