Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(260)

Side by Side Diff: source/libvpx/vp8/decoder/threading.c

Issue 13042014: Description: (Closed) Base URL: https://src.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: libvpx: Pull from upstream Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « source/libvpx/vp8/decoder/onyxd_int.h ('k') | source/libvpx/vp8/decoder/treereader.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 18 matching lines...) Expand all
29 #include "error_concealment.h" 29 #include "error_concealment.h"
30 #endif 30 #endif
31 31
32 #define CALLOC_ARRAY(p, n) CHECK_MEM_ERROR((p), vpx_calloc(sizeof(*(p)), (n))) 32 #define CALLOC_ARRAY(p, n) CHECK_MEM_ERROR((p), vpx_calloc(sizeof(*(p)), (n)))
33 #define CALLOC_ARRAY_ALIGNED(p, n, algn) do { \ 33 #define CALLOC_ARRAY_ALIGNED(p, n, algn) do { \
34 CHECK_MEM_ERROR((p), vpx_memalign((algn), sizeof(*(p)) * (n))); \ 34 CHECK_MEM_ERROR((p), vpx_memalign((algn), sizeof(*(p)) * (n))); \
35 memset((p), 0, (n) * sizeof(*(p))); \ 35 memset((p), 0, (n) * sizeof(*(p))); \
36 } while (0) 36 } while (0)
37 37
38 38
39 extern void vp8_mb_init_dequantizer(VP8D_COMP *pbi, MACROBLOCKD *xd); 39 void vp8_mb_init_dequantizer(VP8D_COMP *pbi, MACROBLOCKD *xd);
40 40
41 static void setup_decoding_thread_data(VP8D_COMP *pbi, MACROBLOCKD *xd, MB_ROW_D EC *mbrd, int count) 41 static void setup_decoding_thread_data(VP8D_COMP *pbi, MACROBLOCKD *xd, MB_ROW_D EC *mbrd, int count)
42 { 42 {
43 VP8_COMMON *const pc = & pbi->common; 43 VP8_COMMON *const pc = & pbi->common;
44 int i; 44 int i;
45 45
46 for (i = 0; i < count; i++) 46 for (i = 0; i < count; i++)
47 { 47 {
48 MACROBLOCKD *mbd = &mbrd[i].mbd; 48 MACROBLOCKD *mbd = &mbrd[i].mbd;
49 mbd->subpixel_predict = xd->subpixel_predict; 49 mbd->subpixel_predict = xd->subpixel_predict;
(...skipping 859 matching lines...) Expand 10 before | Expand all | Expand 10 after
909 909
910 setup_decoding_thread_data(pbi, xd, pbi->mb_row_di, pbi->decoding_thread_cou nt); 910 setup_decoding_thread_data(pbi, xd, pbi->mb_row_di, pbi->decoding_thread_cou nt);
911 911
912 for (i = 0; i < pbi->decoding_thread_count; i++) 912 for (i = 0; i < pbi->decoding_thread_count; i++)
913 sem_post(&pbi->h_event_start_decoding[i]); 913 sem_post(&pbi->h_event_start_decoding[i]);
914 914
915 mt_decode_mb_rows(pbi, xd, 0); 915 mt_decode_mb_rows(pbi, xd, 0);
916 916
917 sem_wait(&pbi->h_event_end_decoding); /* add back for each frame */ 917 sem_wait(&pbi->h_event_end_decoding); /* add back for each frame */
918 } 918 }
OLDNEW
« no previous file with comments | « source/libvpx/vp8/decoder/onyxd_int.h ('k') | source/libvpx/vp8/decoder/treereader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698