OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved. | 2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
356 | 356 |
357 void vp8_write_mvprobs(VP8_COMP *cpi) | 357 void vp8_write_mvprobs(VP8_COMP *cpi) |
358 { | 358 { |
359 vp8_writer *const w = cpi->bc; | 359 vp8_writer *const w = cpi->bc; |
360 MV_CONTEXT *mvc = cpi->common.fc.mvc; | 360 MV_CONTEXT *mvc = cpi->common.fc.mvc; |
361 int flags[2] = {0, 0}; | 361 int flags[2] = {0, 0}; |
362 #ifdef ENTROPY_STATS | 362 #ifdef ENTROPY_STATS |
363 active_section = 4; | 363 active_section = 4; |
364 #endif | 364 #endif |
365 write_component_probs( | 365 write_component_probs( |
366 w, &mvc[0], &vp8_default_mv_context[0], &vp8_mv_update_probs[0], | 366 w, &mvc[0], &vp8_default_mv_context[0], &vp8_mv_update_probs[0], cpi->MV
count[0], 0, &flags[0] |
367 cpi->mb.MVcount[0], 0, &flags[0] | |
368 ); | 367 ); |
369 write_component_probs( | 368 write_component_probs( |
370 w, &mvc[1], &vp8_default_mv_context[1], &vp8_mv_update_probs[1], | 369 w, &mvc[1], &vp8_default_mv_context[1], &vp8_mv_update_probs[1], cpi->MV
count[1], 1, &flags[1] |
371 cpi->mb.MVcount[1], 1, &flags[1] | |
372 ); | 370 ); |
373 | 371 |
374 if (flags[0] || flags[1]) | 372 if (flags[0] || flags[1]) |
375 vp8_build_component_cost_table(cpi->mb.mvcost, (const MV_CONTEXT *) cpi-
>common.fc.mvc, flags); | 373 vp8_build_component_cost_table(cpi->mb.mvcost, (const MV_CONTEXT *) cpi-
>common.fc.mvc, flags); |
376 | 374 |
377 #ifdef ENTROPY_STATS | 375 #ifdef ENTROPY_STATS |
378 active_section = 5; | 376 active_section = 5; |
379 #endif | 377 #endif |
380 } | 378 } |
OLD | NEW |