OLD | NEW |
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2015 Google Inc. | 3 * Copyright 2015 Google Inc. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
(...skipping 12 matching lines...) Expand all Loading... |
23 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR | 23 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR |
24 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | 24 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF |
25 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 * | 26 * |
27 */ | 27 */ |
28 | 28 |
29 #include <algorithm> | 29 #include <algorithm> |
30 #include <vector> | 30 #include <vector> |
31 | 31 |
32 #include "talk/app/webrtc/java/jni/androidmediadecoder_jni.h" | 32 #include "talk/app/webrtc/java/jni/androidmediadecoder_jni.h" |
| 33 // NOTICE: androidmediadecoder_jni.h must be included before |
| 34 // androidmediacodeccommon.h to avoid build errors. |
33 #include "talk/app/webrtc/java/jni/androidmediacodeccommon.h" | 35 #include "talk/app/webrtc/java/jni/androidmediacodeccommon.h" |
34 #include "talk/app/webrtc/java/jni/classreferenceholder.h" | 36 #include "talk/app/webrtc/java/jni/classreferenceholder.h" |
35 #include "talk/app/webrtc/java/jni/native_handle_impl.h" | 37 #include "talk/app/webrtc/java/jni/native_handle_impl.h" |
36 #include "talk/app/webrtc/java/jni/surfacetexturehelper_jni.h" | 38 #include "talk/app/webrtc/java/jni/surfacetexturehelper_jni.h" |
| 39 #include "third_party/libyuv/include/libyuv/convert.h" |
| 40 #include "third_party/libyuv/include/libyuv/convert_from.h" |
| 41 #include "third_party/libyuv/include/libyuv/video_common.h" |
37 #include "webrtc/base/bind.h" | 42 #include "webrtc/base/bind.h" |
38 #include "webrtc/base/checks.h" | 43 #include "webrtc/base/checks.h" |
39 #include "webrtc/base/logging.h" | 44 #include "webrtc/base/logging.h" |
40 #include "webrtc/base/scoped_ref_ptr.h" | 45 #include "webrtc/base/scoped_ref_ptr.h" |
41 #include "webrtc/base/thread.h" | 46 #include "webrtc/base/thread.h" |
42 #include "webrtc/base/timeutils.h" | 47 #include "webrtc/base/timeutils.h" |
43 #include "webrtc/common_video/include/i420_buffer_pool.h" | 48 #include "webrtc/common_video/include/i420_buffer_pool.h" |
44 #include "webrtc/modules/video_coding/include/video_codec_interface.h" | 49 #include "webrtc/modules/video_coding/include/video_codec_interface.h" |
45 #include "webrtc/system_wrappers/include/logcat_trace_context.h" | 50 #include "webrtc/system_wrappers/include/logcat_trace_context.h" |
46 #include "webrtc/system_wrappers/include/tick_util.h" | 51 #include "webrtc/system_wrappers/include/tick_util.h" |
47 #include "third_party/libyuv/include/libyuv/convert.h" | |
48 #include "third_party/libyuv/include/libyuv/convert_from.h" | |
49 #include "third_party/libyuv/include/libyuv/video_common.h" | |
50 | 52 |
51 using rtc::Bind; | 53 using rtc::Bind; |
52 using rtc::Thread; | 54 using rtc::Thread; |
53 using rtc::ThreadManager; | 55 using rtc::ThreadManager; |
54 using rtc::scoped_ptr; | 56 using rtc::scoped_ptr; |
55 | 57 |
56 using webrtc::CodecSpecificInfo; | 58 using webrtc::CodecSpecificInfo; |
57 using webrtc::DecodedImageCallback; | 59 using webrtc::DecodedImageCallback; |
58 using webrtc::EncodedImage; | 60 using webrtc::EncodedImage; |
59 using webrtc::VideoFrame; | 61 using webrtc::VideoFrame; |
(...skipping 868 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
928 ALOGD << "Destroy video decoder."; | 930 ALOGD << "Destroy video decoder."; |
929 delete decoder; | 931 delete decoder; |
930 } | 932 } |
931 | 933 |
932 const char* MediaCodecVideoDecoder::ImplementationName() const { | 934 const char* MediaCodecVideoDecoder::ImplementationName() const { |
933 return "MediaCodec"; | 935 return "MediaCodec"; |
934 } | 936 } |
935 | 937 |
936 } // namespace webrtc_jni | 938 } // namespace webrtc_jni |
937 | 939 |
OLD | NEW |