1 /* 2 * Copyright (c) 2011 The WebM project authors. All Rights Reserved. 3 * 4 * Use of this source code is governed by a BSD-style license 5 * that can be found in the LICENSE file in the root of the source 6 * tree. An additional intellectual property rights grant can be found 7 * in the file PATENTS. All contributing project authors may 8 * be found in the AUTHORS file in the root of the source tree. 9 */ 10 11 #ifndef VP8_DEC_EC_TYPES_H 12 #define VP8_DEC_EC_TYPES_H 13 14 #define MAX_OVERLAPS 16 15 16 17 /* The area (pixel area in Q6) the block pointed to by bmi overlaps 18 * another block with. 19 */ 20 typedef struct 21 { 22 int overlap; 23 union b_mode_info *bmi; 24 } OVERLAP_NODE; 25 26 /* Structure to keep track of overlapping blocks on a block level. */ 27 typedef struct 28 { 29 /* TODO(holmer): This array should be exchanged for a linked list */ 30 OVERLAP_NODE overlaps[MAX_OVERLAPS]; 31 } B_OVERLAP; 32 33 /* Structure used to hold all the overlaps of a macroblock. The overlaps of a 34 * macroblock is further divided into block overlaps. 35 */ 36 typedef struct 37 { 38 B_OVERLAP overlaps[16]; 39 } MB_OVERLAP; 40 41 /* Structure for keeping track of motion vectors and which reference frame they 42 * refer to. Used for motion vector interpolation. 43 */ 44 typedef struct 45 { 46 MV mv; 47 MV_REFERENCE_FRAME ref_frame; 48 } EC_BLOCK; 49 50 #endif // VP8_DEC_EC_TYPES_H 51