summaryrefslogtreecommitdiff
path: root/vp9/common/vp9_enums.h
diff options
context:
space:
mode:
authorYaowu Xu <yaowu@google.com>2013-08-10 15:04:02 -0700
committerYaowu Xu <yaowu@google.com>2013-08-19 17:19:36 -0700
commitc4048dbdd39dbd4763852a6d0a27f183677c4225 (patch)
tree1626130bc5bf65f6a9f61f203eec932908fcb449 /vp9/common/vp9_enums.h
parentf70330a906fc42bbb6f7100ed1ad5800007b96bc (diff)
downloadlibvpx-c4048dbdd39dbd4763852a6d0a27f183677c4225.tar
libvpx-c4048dbdd39dbd4763852a6d0a27f183677c4225.tar.gz
libvpx-c4048dbdd39dbd4763852a6d0a27f183677c4225.tar.bz2
libvpx-c4048dbdd39dbd4763852a6d0a27f183677c4225.zip
Change to limit the mv search range
As the pixel values beyond image border are duplicates of pixels on edge, the change limits the mv search range, any mv beyond the limits no longer produce new/different prediction values as entire block with pixels used for subpel interpolation are outside image border. Change-Id: I4c6fdf06e33c1cef1489f5470ce0fb4e5e01fb79
Diffstat (limited to 'vp9/common/vp9_enums.h')
-rw-r--r--vp9/common/vp9_enums.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/vp9/common/vp9_enums.h b/vp9/common/vp9_enums.h
index 435460e89..2720386aa 100644
--- a/vp9/common/vp9_enums.h
+++ b/vp9/common/vp9_enums.h
@@ -16,11 +16,13 @@
#define LOG2_MI_SIZE 3
#define LOG2_MI_BLOCK_SIZE (6 - LOG2_MI_SIZE) // 64 = 2^6
+#define MAX_BLOCK_SIZE (1 << 6) // max block size in pixel
#define MI_SIZE (1 << LOG2_MI_SIZE) // pixels per mi-unit
#define MI_BLOCK_SIZE (1 << LOG2_MI_BLOCK_SIZE) // mi-units per max block
#define MI_MASK (MI_BLOCK_SIZE - 1)
+
typedef enum BLOCK_SIZE_TYPE {
BLOCK_4X4,
BLOCK_4X8,