]> granicus.if.org Git - libvpx/commitdiff
Move multi-threading module functions into vpx_thread folder
authorJingning Han <jingning@google.com>
Wed, 1 Jul 2015 21:58:13 +0000 (14:58 -0700)
committerJingning Han <jingning@google.com>
Thu, 2 Jul 2015 00:45:49 +0000 (17:45 -0700)
This commit moves the primitive multi-threading files from vp9
folder to vpx_thread, which will be accessible by all vpx codec.

Change-Id: Ib51e66e9c69801c10631fab56d35a0c0aaed5883

14 files changed:
libs.mk
test/vp9_thread_test.cc
vp9/common/vp9_onyxc_int.h
vp9/common/vp9_thread_common.h
vp9/decoder/vp9_decodeframe.c
vp9/decoder/vp9_decoder.c
vp9/decoder/vp9_decoder.h
vp9/decoder/vp9_dthread.h
vp9/encoder/vp9_encoder.h
vp9/vp9_common.mk
vp9/vp9_dx_iface.c
vpx_thread/vpx_thread.c [moved from vp9/common/vp9_thread.c with 99% similarity]
vpx_thread/vpx_thread.h [moved from vp9/common/vp9_thread.h with 100% similarity]
vpx_thread/vpx_thread.mk [new file with mode: 0644]

diff --git a/libs.mk b/libs.mk
index 6215990c9bf1e1b237650ca1f530a9da699f77dd..1650028955966907e9d617ed807665c0a6b01083 100644 (file)
--- a/libs.mk
+++ b/libs.mk
@@ -50,6 +50,9 @@ CODEC_SRCS-yes += $(addprefix vpx_ports/,$(call enabled,PORTS_SRCS))
 include $(SRC_PATH_BARE)/vpx_dsp/vpx_dsp.mk
 CODEC_SRCS-yes += $(addprefix vpx_dsp/,$(call enabled,DSP_SRCS))
 
+include $(SRC_PATH_BARE)/vpx_thread/vpx_thread.mk
+CODEC_SRCS-yes += $(addprefix vpx_thread/,$(call enabled,THREAD_SRCS))
+
 ifneq ($(CONFIG_VP8_ENCODER)$(CONFIG_VP8_DECODER),)
   VP8_PREFIX=vp8/
   include $(SRC_PATH_BARE)/$(VP8_PREFIX)vp8_common.mk
index 902a6fc35db42406286a9bf8f682ebd1be9802bf..e08e44ec93130c3c8a31acdc2e068e08f1fe8bfa 100644 (file)
@@ -18,7 +18,7 @@
 #if CONFIG_WEBM_IO
 #include "test/webm_video_source.h"
 #endif
-#include "vp9/common/vp9_thread.h"
+#include "vpx_thread/vpx_thread.h"
 
 namespace {
 
index 1811d76dfd30d952a0cb078328a0f3fb608639d3..c5e2b3ab4d994992d9d77d54ea8510410aaf7c45 100644 (file)
@@ -13,6 +13,7 @@
 
 #include "./vpx_config.h"
 #include "vpx/internal/vpx_codec_internal.h"
+#include "vpx_thread/vpx_thread.h"
 #include "./vp9_rtcd.h"
 #include "vp9/common/vp9_alloccommon.h"
 #include "vp9/common/vp9_loopfilter.h"
@@ -21,7 +22,6 @@
 #include "vp9/common/vp9_entropymode.h"
 #include "vp9/common/vp9_frame_buffers.h"
 #include "vp9/common/vp9_quant_common.h"
-#include "vp9/common/vp9_thread.h"
 #include "vp9/common/vp9_tile_common.h"
 
 #if CONFIG_VP9_POSTPROC
index 3b3a6996ae979668520ddbb936104c218af68a45..f8221a8519edc48d7e85f4295471227a3e51c173 100644 (file)
@@ -12,7 +12,7 @@
 #define VP9_COMMON_VP9_LOOPFILTER_THREAD_H_
 #include "./vpx_config.h"
 #include "vp9/common/vp9_loopfilter.h"
-#include "vp9/common/vp9_thread.h"
+#include "vpx_thread/vpx_thread.h"
 
 struct VP9Common;
 struct FRAME_COUNTS;
index 659b84848d1e4011394c3f4b594e2b896c9534bd..4302d825f81e29541a265844df7ae45caec6d941 100644 (file)
@@ -18,6 +18,7 @@
 #include "vpx_ports/mem.h"
 #include "vpx_ports/mem_ops.h"
 #include "vpx_scale/vpx_scale.h"
+#include "vpx_thread/vpx_thread.h"
 
 #include "vp9/common/vp9_alloccommon.h"
 #include "vp9/common/vp9_common.h"
@@ -30,7 +31,6 @@
 #include "vp9/common/vp9_reconintra.h"
 #include "vp9/common/vp9_reconinter.h"
 #include "vp9/common/vp9_seg_common.h"
-#include "vp9/common/vp9_thread.h"
 #include "vp9/common/vp9_tile_common.h"
 
 #include "vp9/decoder/vp9_decodeframe.h"
index 7991a39e61019529a505966886d5251fb7f95524..5f5e201d867f8ebca925ffbc63fce7caacf79313 100644 (file)
@@ -20,6 +20,7 @@
 #include "vpx_ports/vpx_once.h"
 #include "vpx_ports/vpx_timer.h"
 #include "vpx_scale/vpx_scale.h"
+#include "vpx_thread/vpx_thread.h"
 
 #include "vp9/common/vp9_alloccommon.h"
 #include "vp9/common/vp9_loopfilter.h"
@@ -30,7 +31,6 @@
 #include "vp9/common/vp9_quant_common.h"
 #include "vp9/common/vp9_reconintra.h"
 #include "vp9/common/vp9_systemdependent.h"
-#include "vp9/common/vp9_thread.h"
 
 #include "vp9/decoder/vp9_decodeframe.h"
 #include "vp9/decoder/vp9_decoder.h"
index c19f0ac3bc78fab95c671d058d96f3fff091f5e6..8a659089977eb71770249d0166053447ffdc5d82 100644 (file)
 
 #include "vpx/vpx_codec.h"
 #include "vpx_scale/yv12config.h"
+#include "vpx_thread/vpx_thread.h"
+
 #include "vp9/common/vp9_thread_common.h"
 #include "vp9/common/vp9_onyxc_int.h"
 #include "vp9/common/vp9_ppflags.h"
-#include "vp9/common/vp9_thread.h"
 #include "vp9/decoder/vp9_dthread.h"
 #include "vp9/decoder/vp9_reader.h"
 
index 979cb3d8bd67bf9c304f08f78ba4f42034c2a9db..80445816e82308dd34e86eed15b33b3c4d449ed2 100644 (file)
@@ -12,7 +12,7 @@
 #define VP9_DECODER_VP9_DTHREAD_H_
 
 #include "./vpx_config.h"
-#include "vp9/common/vp9_thread.h"
+#include "vpx_thread/vpx_thread.h"
 #include "vpx/internal/vpx_codec_internal.h"
 
 struct VP9Common;
index 2b0da103ffe71c96062febdfdafd5c04d836c2b1..34075bee78e1e6de350cc312d413fc45285d75a6 100644 (file)
 #include "./vpx_config.h"
 #include "vpx/internal/vpx_codec_internal.h"
 #include "vpx/vp8cx.h"
+#include "vpx_thread/vpx_thread.h"
 
 #include "vp9/common/vp9_alloccommon.h"
 #include "vp9/common/vp9_ppflags.h"
 #include "vp9/common/vp9_entropymode.h"
 #include "vp9/common/vp9_thread_common.h"
 #include "vp9/common/vp9_onyxc_int.h"
-#include "vp9/common/vp9_thread.h"
 
 #include "vp9/encoder/vp9_aq_cyclicrefresh.h"
 #include "vp9/encoder/vp9_context_tree.h"
index 6f091eefb63251a3b7cd2bd2faa6190943c10028..fd611bf9af941cc4528e8d31773c647691604e18 100644 (file)
@@ -51,8 +51,6 @@ VP9_COMMON_SRCS-yes += common/vp9_seg_common.h
 VP9_COMMON_SRCS-yes += common/vp9_seg_common.c
 VP9_COMMON_SRCS-yes += common/vp9_systemdependent.h
 VP9_COMMON_SRCS-yes += common/vp9_textblit.h
-VP9_COMMON_SRCS-yes += common/vp9_thread.h
-VP9_COMMON_SRCS-yes += common/vp9_thread.c
 VP9_COMMON_SRCS-yes += common/vp9_tile_common.h
 VP9_COMMON_SRCS-yes += common/vp9_tile_common.c
 VP9_COMMON_SRCS-yes += common/vp9_loopfilter.c
index 4080d64c170e9b832f65e7a81e1a8a228e942b6d..0af94431252ede5b52fbe41af24ccc2c1bce62a6 100644 (file)
 #include "vpx/internal/vpx_codec_internal.h"
 #include "vpx/vp8dx.h"
 #include "vpx/vpx_decoder.h"
+#include "vpx_thread/vpx_thread.h"
 
 #include "vp9/common/vp9_alloccommon.h"
 #include "vp9/common/vp9_frame_buffers.h"
-#include "vp9/common/vp9_thread.h"
 
 #include "vp9/decoder/vp9_decoder.h"
 #include "vp9/decoder/vp9_decodeframe.h"
similarity index 99%
rename from vp9/common/vp9_thread.c
rename to vpx_thread/vpx_thread.c
index 1c6aec032fe144344e667b1a552d94710540d161..c8b4f601b488cb60234fccc89cc5359e783af819 100644 (file)
@@ -15,7 +15,7 @@
 
 #include <assert.h>
 #include <string.h>   // for memset()
-#include "./vp9_thread.h"
+#include "./vpx_thread.h"
 #include "vpx_mem/vpx_mem.h"
 
 #if CONFIG_MULTITHREAD
diff --git a/vpx_thread/vpx_thread.mk b/vpx_thread/vpx_thread.mk
new file mode 100644 (file)
index 0000000..0a4a364
--- /dev/null
@@ -0,0 +1,13 @@
+##
+## Copyright (c) 2015 The WebM project authors. All Rights Reserved.
+##
+##  Use of this source code is governed by a BSD-style license
+##  that can be found in the LICENSE file in the root of the source
+##  tree. An additional intellectual property rights grant can be found
+##  in the file PATENTS.  All contributing project authors may
+##  be found in the AUTHORS file in the root of the source tree.
+##
+
+THREAD_SRCS-yes += vpx_thread.mk
+THREAD_SRCS-yes += vpx_thread.c
+THREAD_SRCS-yes += vpx_thread.h