X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=vp8%2Fencoder%2Fblock.h;h=0d14b545c8e9b06231635ec0536019717eba9787;hb=ae8aa836d5a4c81e680d035f84eeed4dc8e4c765;hp=e94e549761cdad7e9d3b9d38f01913be4e44004c;hpb=3b9e72b210eb4c8b86b1fecf5e89c49bfd4800da;p=profile%2Fivi%2Flibvpx.git diff --git a/vp8/encoder/block.h b/vp8/encoder/block.h index e94e549..0d14b54 100644 --- a/vp8/encoder/block.h +++ b/vp8/encoder/block.h @@ -12,10 +12,10 @@ #ifndef __INC_BLOCK_H #define __INC_BLOCK_H -#include "onyx.h" -#include "blockd.h" -#include "entropymv.h" -#include "entropy.h" +#include "vp8/common/onyx.h" +#include "vp8/common/blockd.h" +#include "vp8/common/entropymv.h" +#include "vp8/common/entropy.h" #include "vpx_ports/mem.h" // motion search site @@ -33,7 +33,8 @@ typedef struct // 16 Y blocks, 4 U blocks, 4 V blocks each with 16 entries short *quant; - short *quant_shift; + short *quant_fast; + unsigned char *quant_shift; short *zbin; short *zrun_zbin_boost; short *round; @@ -53,14 +54,20 @@ typedef struct typedef struct { int count; - B_MODE_INFO bmi[16]; + struct + { + B_PREDICTION_MODE mode; + int_mv mv; + } bmi[16]; } PARTITION_INFO; typedef struct { DECLARE_ALIGNED(16, short, src_diff[400]); // 16x16 Y 8x8 U 8x8 V 4x4 2nd Y DECLARE_ALIGNED(16, short, coeff[400]); // 16x16 Y 8x8 U 8x8 V 4x4 2nd Y + DECLARE_ALIGNED(16, unsigned char, thismb[256]); + unsigned char *thismb_ptr; // 16 Y blocks, 4 U blocks, 4 V blocks, 1 DC 2nd order block each with 16 entries BLOCK block[25]; @@ -78,13 +85,15 @@ typedef struct int errorperbit; int sadperbit16; int sadperbit4; - int errthresh; int rddiv; int rdmult; + unsigned int * mb_activity_ptr; + int * mb_norm_activity_ptr; + signed int act_zbin_adj; int mvcosts[2][MVvals+1]; int *mvcost[2]; - int mvsadcosts[2][MVvals+1]; + int mvsadcosts[2][MVfpvals+1]; int *mvsadcost[2]; int mbmode_cost[2][MB_MODE_COUNT]; int intra_uv_mode_cost[2][MB_MODE_COUNT]; @@ -108,13 +117,15 @@ typedef struct unsigned char *active_ptr; MV_CONTEXT *mvc; - unsigned int token_costs[BLOCK_TYPES] [COEF_BANDS] [PREV_COEF_CONTEXTS] [vp8_coef_tokens]; + unsigned int token_costs[BLOCK_TYPES] [COEF_BANDS] [PREV_COEF_CONTEXTS] [MAX_ENTROPY_TOKENS]; int optimize; + int q_index; void (*vp8_short_fdct4x4)(short *input, short *output, int pitch); void (*vp8_short_fdct8x4)(short *input, short *output, int pitch); void (*short_walsh4x4)(short *input, short *output, int pitch); void (*quantize_b)(BLOCK *b, BLOCKD *d); + void (*quantize_b_pair)(BLOCK *b1, BLOCK *b2, BLOCKD *d0, BLOCKD *d1); } MACROBLOCK;