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

Side by Side Diff: source/libvpx/vp8/encoder/ethreading.c

Issue 1162573005: libvpx: Pull from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: Created 5 years, 6 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/encoder/encodeintra.c ('k') | source/libvpx/vp8/encoder/firstpass.c » ('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
11 #include "onyx_int.h" 11 #include "onyx_int.h"
12 #include "vp8/common/threading.h" 12 #include "vp8/common/threading.h"
13 #include "vp8/common/common.h" 13 #include "vp8/common/common.h"
14 #include "vp8/common/extend.h" 14 #include "vp8/common/extend.h"
15 #include "bitstream.h" 15 #include "bitstream.h"
16 #include "encodeframe.h" 16 #include "encodeframe.h"
17 17
18 #if CONFIG_MULTITHREAD 18 #if CONFIG_MULTITHREAD
19 19
20 extern void vp8cx_mb_init_quantizer(VP8_COMP *cpi, MACROBLOCK *x, int ok_to_skip ); 20 extern void vp8cx_mb_init_quantizer(VP8_COMP *cpi, MACROBLOCK *x, int ok_to_skip );
21 21
22 extern void vp8_loopfilter_frame(VP8_COMP *cpi, VP8_COMMON *cm);
23
24 static THREAD_FUNCTION thread_loopfilter(void *p_data) 22 static THREAD_FUNCTION thread_loopfilter(void *p_data)
25 { 23 {
26 VP8_COMP *cpi = (VP8_COMP *)(((LPFTHREAD_DATA *)p_data)->ptr1); 24 VP8_COMP *cpi = (VP8_COMP *)(((LPFTHREAD_DATA *)p_data)->ptr1);
27 VP8_COMMON *cm = &cpi->common; 25 VP8_COMMON *cm = &cpi->common;
28 26
29 while (1) 27 while (1)
30 { 28 {
31 if (cpi->b_multi_threaded == 0) 29 if (cpi->b_multi_threaded == 0)
32 break; 30 break;
33 31
(...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after
663 sem_destroy(&cpi->h_event_start_lpf); 661 sem_destroy(&cpi->h_event_start_lpf);
664 662
665 /* free thread related resources */ 663 /* free thread related resources */
666 vpx_free(cpi->h_event_start_encoding); 664 vpx_free(cpi->h_event_start_encoding);
667 vpx_free(cpi->h_encoding_thread); 665 vpx_free(cpi->h_encoding_thread);
668 vpx_free(cpi->mb_row_ei); 666 vpx_free(cpi->mb_row_ei);
669 vpx_free(cpi->en_thread_data); 667 vpx_free(cpi->en_thread_data);
670 } 668 }
671 } 669 }
672 #endif 670 #endif
OLDNEW
« no previous file with comments | « source/libvpx/vp8/encoder/encodeintra.c ('k') | source/libvpx/vp8/encoder/firstpass.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698