From: Dmitry Kovalev Date: Mon, 3 Mar 2014 22:17:31 +0000 (-0800) Subject: Merge "Adding consts and cleaning up vp9_rdopt." X-Git-Tag: v1.4.0~2170 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f084af5ca7ce4e7d00080528987e2fb888d5f16b;p=libvpx Merge "Adding consts and cleaning up vp9_rdopt." --- f084af5ca7ce4e7d00080528987e2fb888d5f16b diff --cc vp9/encoder/vp9_rdopt.c index a013e11c2,a0d160aef..810f8ba25 --- a/vp9/encoder/vp9_rdopt.c +++ b/vp9/encoder/vp9_rdopt.c @@@ -554,12 -549,11 +549,12 @@@ static INLINE int cost_coeffs(MACROBLOC int plane, int block, ENTROPY_CONTEXT *A, ENTROPY_CONTEXT *L, TX_SIZE tx_size, - const int16_t *scan, const int16_t *nb) { + const int16_t *scan, const int16_t *nb, + int use_fast_coef_costing) { MACROBLOCKD *const xd = &x->e_mbd; MB_MODE_INFO *mbmi = &xd->mi_8x8[0]->mbmi; - struct macroblock_plane *p = &x->plane[plane]; - struct macroblockd_plane *pd = &xd->plane[plane]; + const struct macroblock_plane *p = &x->plane[plane]; + const struct macroblockd_plane *pd = &xd->plane[plane]; const PLANE_TYPE type = pd->plane_type; const int16_t *band_count = &band_counts[tx_size][1]; const int eob = p->eobs[block]; @@@ -740,10 -727,9 +735,10 @@@ static void txfm_rd_in_plane(MACROBLOC int *rate, int64_t *distortion, int *skippable, int64_t *sse, int64_t ref_best_rd, int plane, - BLOCK_SIZE bsize, TX_SIZE tx_size) { + BLOCK_SIZE bsize, TX_SIZE tx_size, + int use_fast_coef_casting) { MACROBLOCKD *const xd = &x->e_mbd; - struct macroblockd_plane *const pd = &xd->plane[plane]; + const struct macroblockd_plane *const pd = &xd->plane[plane]; struct rdcost_block_args args = { 0 }; args.x = x; args.best_rd = ref_best_rd;