diff options
author | Pengchong Jin <pengchong@google.com> | 2014-07-31 09:01:06 -0700 |
---|---|---|
committer | Pengchong Jin <pengchong@google.com> | 2014-08-04 16:17:47 -0700 |
commit | 233e0ccc73eba5f52ddde366f7adae4cff55c3fd (patch) | |
tree | 5959da9f0733a757ba3ea7d09d7bb33f83d37966 /vp9/encoder/vp9_firstpass.h | |
parent | a3b062c56f237e1680e4fdae838842955fc7fdf6 (diff) | |
download | libvpx-233e0ccc73eba5f52ddde366f7adae4cff55c3fd.tar libvpx-233e0ccc73eba5f52ddde366f7adae4cff55c3fd.tar.gz libvpx-233e0ccc73eba5f52ddde366f7adae4cff55c3fd.tar.bz2 libvpx-233e0ccc73eba5f52ddde366f7adae4cff55c3fd.zip |
Store first pass motion vector directions
Re-organize the one-byte structure for 16x16 first pass
block. Add bits to indicate motion vector directions.
Change-Id: Id10754ba343dfc712c7fed5bcc85c67fa0bbcb89
Diffstat (limited to 'vp9/encoder/vp9_firstpass.h')
-rw-r--r-- | vp9/encoder/vp9_firstpass.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/vp9/encoder/vp9_firstpass.h b/vp9/encoder/vp9_firstpass.h index e898abc16..bf8c9fd96 100644 --- a/vp9/encoder/vp9_firstpass.h +++ b/vp9/encoder/vp9_firstpass.h @@ -21,17 +21,17 @@ extern "C" { #if CONFIG_FP_MB_STATS #define FPMB_DCINTRA_MASK 0x01 -#define FPMB_NONZERO_MOTION_MASK 0x02 -#define FPMB_ERROR_LEVEL0_MASK 0x04 -#define FPMB_ERROR_LEVEL1_MASK 0x10 -#define FPMB_ERROR_LEVEL2_MASK 0x20 -#define FPMB_ERROR_LEVEL3_MASK 0x40 -#define FPMB_ERROR_LEVEL4_MASK 0x80 - -#define FPMB_ERROR_LEVEL1_TH 2000 -#define FPMB_ERROR_LEVEL2_TH 8000 -#define FPMB_ERROR_LEVEL3_TH 24000 -#define FPMB_ERROR_LEVEL4_TH 48000 + +#define FPMB_MOTION_ZERO_MASK 0x02 +#define FPMB_MOTION_LEFT_MASK 0x04 +#define FPMB_MOTION_RIGHT_MASK 0x08 +#define FPMB_MOTION_UP_MASK 0x10 +#define FPMB_MOTION_DOWN_MASK 0x20 + +#define FPMB_ERROR_SMALL_MASK 0x40 +#define FPMB_ERROR_LARGE_MASK 0x80 +#define FPMB_ERROR_SMALL_TH 2000 +#define FPMB_ERROR_LARGE_TH 48000 typedef struct { uint8_t *mb_stats_start; |