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

Side by Side Diff: webrtc/modules/video_coding/codecs/vp8/simulcast_unittest.h

Issue 2656603002: Add QP for libvpx VP8 decoder. (Closed)
Patch Set: Rebase. Created 3 years, 10 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 | « no previous file | webrtc/modules/video_coding/codecs/vp8/test/vp8_impl_unittest.cc » ('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) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 The WebRTC 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 decoded_frames_++; 141 decoded_frames_++;
142 return 0; 142 return 0;
143 } 143 }
144 int32_t Decoded(VideoFrame& decoded_image, int64_t decode_time_ms) override { 144 int32_t Decoded(VideoFrame& decoded_image, int64_t decode_time_ms) override {
145 RTC_NOTREACHED(); 145 RTC_NOTREACHED();
146 return -1; 146 return -1;
147 } 147 }
148 void Decoded(VideoFrame& decoded_image, 148 void Decoded(VideoFrame& decoded_image,
149 rtc::Optional<int32_t> decode_time_ms, 149 rtc::Optional<int32_t> decode_time_ms,
150 rtc::Optional<uint8_t> qp) override { 150 rtc::Optional<uint8_t> qp) override {
151 RTC_NOTREACHED(); 151 Decoded(decoded_image);
152 } 152 }
153 int DecodedFrames() { return decoded_frames_; } 153 int DecodedFrames() { return decoded_frames_; }
154 154
155 private: 155 private:
156 int decoded_frames_; 156 int decoded_frames_;
157 }; 157 };
158 158
159 class TestVp8Simulcast : public ::testing::Test { 159 class TestVp8Simulcast : public ::testing::Test {
160 public: 160 public:
161 TestVp8Simulcast(VP8Encoder* encoder, VP8Decoder* decoder) 161 TestVp8Simulcast(VP8Encoder* encoder, VP8Decoder* decoder)
(...skipping 728 matching lines...) Expand 10 before | Expand all | Expand 10 after
890 VideoCodec settings_; 890 VideoCodec settings_;
891 rtc::scoped_refptr<I420Buffer> input_buffer_; 891 rtc::scoped_refptr<I420Buffer> input_buffer_;
892 std::unique_ptr<VideoFrame> input_frame_; 892 std::unique_ptr<VideoFrame> input_frame_;
893 std::unique_ptr<SimulcastRateAllocator> rate_allocator_; 893 std::unique_ptr<SimulcastRateAllocator> rate_allocator_;
894 }; 894 };
895 895
896 } // namespace testing 896 } // namespace testing
897 } // namespace webrtc 897 } // namespace webrtc
898 898
899 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_SIMULCAST_UNITTEST_H_ 899 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_SIMULCAST_UNITTEST_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/video_coding/codecs/vp8/test/vp8_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698