summaryrefslogtreecommitdiff
path: root/vp8/encoder/onyx_int.h
diff options
context:
space:
mode:
authorYaowu Xu <yaowu@google.com>2011-11-30 16:25:00 -0800
committerYaowu Xu <yaowu@google.com>2011-12-02 13:44:47 -0800
commita8fbab8697c77dc82013862e0a9c7f82b6402db8 (patch)
tree19336e73bc1644ac37931609023b419ed80201a2 /vp8/encoder/onyx_int.h
parent8487a68baf32fc86af55c39cc7fd06c3444523d5 (diff)
downloadlibvpx-a8fbab8697c77dc82013862e0a9c7f82b6402db8.tar
libvpx-a8fbab8697c77dc82013862e0a9c7f82b6402db8.tar.gz
libvpx-a8fbab8697c77dc82013862e0a9c7f82b6402db8.tar.bz2
libvpx-a8fbab8697c77dc82013862e0a9c7f82b6402db8.zip
enabled 8x8 intra prediction modes on inter frames
This commit enabled the usage of 8x8 intra prediction modes on inter frames. There are a few TODO items related to this: 1)baseline entropy need be calibrated; 2)cost of UV need to be done more properly rather than using decision only relying on Y; 3)Threshold for allowing picking 8x8 intra prediction should be lowered to lower than the B_PRED. Even with all the TODOs, tests showed consistent gain on derf set ~0.1% (PSNR:0.08% and SSIM:0.14%). It is assumed that 8x8 intra prediction will help more on large resolution clips, especially with above TODOs addressed. Change-Id: I398ada49dfc32575cfab962a569c2885111ae3ba
Diffstat (limited to 'vp8/encoder/onyx_int.h')
-rw-r--r--vp8/encoder/onyx_int.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/vp8/encoder/onyx_int.h b/vp8/encoder/onyx_int.h
index 622f25068..160f22d05 100644
--- a/vp8/encoder/onyx_int.h
+++ b/vp8/encoder/onyx_int.h
@@ -42,8 +42,11 @@
#define AF_THRESH 25
#define AF_THRESH2 100
#define ARF_DECAY_THRESH 12
+#if CONFIG_I8X8
+#define MAX_MODES 21
+#else
#define MAX_MODES 20
-
+#endif
#define MIN_THRESHMULT 32
#define MAX_THRESHMULT 512
@@ -74,7 +77,7 @@ typedef struct
int uv_modes[VP8_UV_MODES];
int i8x8_modes[VP8_I8X8_MODES];
int b_modes[10];
- int inter_y_modes[10];
+ int inter_y_modes[MB_MODE_COUNT];
int inter_uv_modes[VP8_UV_MODES];
int inter_b_modes[10];
#endif
@@ -186,6 +189,9 @@ typedef enum
THR_SPLITA = 18,
THR_B_PRED = 19,
+#if CONFIG_I8X8
+ THR_I8X8_PRED = 20,
+#endif
}
THR_MODES;