]> granicus.if.org Git - libvpx/commitdiff
Block index variables in MACROBLOCKD reduced to chars.
authorPaul Wilkins <paulwilkins@google.com>
Thu, 11 Jul 2013 15:18:34 +0000 (16:18 +0100)
committerPaul Wilkins <paulwilkins@google.com>
Fri, 19 Jul 2013 10:32:51 +0000 (11:32 +0100)
Change-Id: I9a4df095732d561807de01a41dcb1a1960726a3c

vp9/common/vp9_blockd.h

index 3f7422df2150d5836db0ea7c2bd7248d7299eb39..35a6b1ec1349a7039649497c815a49e6bbacc090 100644 (file)
@@ -269,15 +269,16 @@ typedef struct macroblockd {
 
   int corrupted;
 
-  int sb_index;   // index of 32x32 block inside the 64x64 block
-  int mb_index;   // index of 16x16 block inside the 32x32 block
-  int b_index;    // index of 8x8 block inside the 16x16 block
-  int ab_index;   // index of 4x4 block inside the 8x8 block
+  unsigned char sb_index;   // index of 32x32 block inside the 64x64 block
+  unsigned char mb_index;   // index of 16x16 block inside the 32x32 block
+  unsigned char b_index;    // index of 8x8 block inside the 16x16 block
+  unsigned char ab_index;   // index of 4x4 block inside the 8x8 block
+
   int q_index;
 
 } MACROBLOCKD;
 
-static INLINE int *get_sb_index(MACROBLOCKD *xd, BLOCK_SIZE_TYPE subsize) {
+static INLINE unsigned char *get_sb_index(MACROBLOCKD *xd, BLOCK_SIZE_TYPE subsize) {
   switch (subsize) {
     case BLOCK_SIZE_SB64X64:
     case BLOCK_SIZE_SB64X32: