| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2014 The WebM project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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 |
| 11 #include "./vpx_config.h" | 11 #include "./vpx_config.h" |
| 12 #include "vpx_dsp/vpx_dsp_common.h" |
| 12 #include "vpx_mem/vpx_mem.h" | 13 #include "vpx_mem/vpx_mem.h" |
| 13 #include "vp9/common/vp9_entropymode.h" | 14 #include "vp9/common/vp9_entropymode.h" |
| 14 #include "vp9/common/vp9_thread_common.h" | 15 #include "vp9/common/vp9_thread_common.h" |
| 15 #include "vp9/common/vp9_reconinter.h" | 16 #include "vp9/common/vp9_reconinter.h" |
| 16 #include "vp9/common/vp9_loopfilter.h" | 17 #include "vp9/common/vp9_loopfilter.h" |
| 17 | 18 |
| 18 #if CONFIG_MULTITHREAD | 19 #if CONFIG_MULTITHREAD |
| 19 static INLINE void mutex_lock(pthread_mutex_t *const mutex) { | 20 static INLINE void mutex_lock(pthread_mutex_t *const mutex) { |
| 20 const int kMaxTryLocks = 4000; | 21 const int kMaxTryLocks = 4000; |
| 21 int locked = 0; | 22 int locked = 0; |
| (...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 427 } | 428 } |
| 428 | 429 |
| 429 for (i = 0; i < MV_OFFSET_BITS; i++) | 430 for (i = 0; i < MV_OFFSET_BITS; i++) |
| 430 for (j = 0; j < 2; j++) | 431 for (j = 0; j < 2; j++) |
| 431 comps->bits[i][j] += comps_t->bits[i][j]; | 432 comps->bits[i][j] += comps_t->bits[i][j]; |
| 432 | 433 |
| 433 for (i = 0; i < MV_FP_SIZE; i++) | 434 for (i = 0; i < MV_FP_SIZE; i++) |
| 434 comps->fp[i] += comps_t->fp[i]; | 435 comps->fp[i] += comps_t->fp[i]; |
| 435 } | 436 } |
| 436 } | 437 } |
| OLD | NEW |