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

Side by Side Diff: talk/app/webrtc/java/jni/androidmediadecoder_jni.cc

Issue 1428293003: Add VideoCodec::PreferDecodeLate (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fix failing unittests Created 5 years 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
OLDNEW
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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 const RTPFragmentationHeader* fragmentation, 82 const RTPFragmentationHeader* fragmentation,
83 const CodecSpecificInfo* codecSpecificInfo = NULL, 83 const CodecSpecificInfo* codecSpecificInfo = NULL,
84 int64_t renderTimeMs = -1) override; 84 int64_t renderTimeMs = -1) override;
85 85
86 int32_t RegisterDecodeCompleteCallback(DecodedImageCallback* callback) 86 int32_t RegisterDecodeCompleteCallback(DecodedImageCallback* callback)
87 override; 87 override;
88 88
89 int32_t Release() override; 89 int32_t Release() override;
90 90
91 int32_t Reset() override; 91 int32_t Reset() override;
92
93 bool PreferDecodeLate() const override { return true; }
pbos-webrtc 2015/12/10 11:27:20 PreferLateDecoding imo.
pbos-webrtc 2015/12/10 11:27:45 Make that PrefersLateDecoding().
94
92 // rtc::MessageHandler implementation. 95 // rtc::MessageHandler implementation.
93 void OnMessage(rtc::Message* msg) override; 96 void OnMessage(rtc::Message* msg) override;
94 97
95 private: 98 private:
96 // CHECK-fail if not running on |codec_thread_|. 99 // CHECK-fail if not running on |codec_thread_|.
97 void CheckOnCodecThread(); 100 void CheckOnCodecThread();
98 101
99 int32_t InitDecodeOnCodecThread(); 102 int32_t InitDecodeOnCodecThread();
100 int32_t ReleaseOnCodecThread(); 103 int32_t ReleaseOnCodecThread();
101 int32_t DecodeOnCodecThread(const EncodedImage& inputImage); 104 int32_t DecodeOnCodecThread(const EncodedImage& inputImage);
(...skipping 787 matching lines...) Expand 10 before | Expand all | Expand 10 after
889 } 892 }
890 893
891 void MediaCodecVideoDecoderFactory::DestroyVideoDecoder( 894 void MediaCodecVideoDecoderFactory::DestroyVideoDecoder(
892 webrtc::VideoDecoder* decoder) { 895 webrtc::VideoDecoder* decoder) {
893 ALOGD << "Destroy video decoder."; 896 ALOGD << "Destroy video decoder.";
894 delete decoder; 897 delete decoder;
895 } 898 }
896 899
897 } // namespace webrtc_jni 900 } // namespace webrtc_jni
898 901
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698