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

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

Issue 2380623002: Delete method webrtc::VideoFrame::allocated_size and enum PlaneType. (Closed)
Patch Set: Fix H264DecoderImpl. Created 4 years, 2 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
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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 const int kTargetBitrates[kNumberOfSimulcastStreams] = {100, 450, 1000}; 42 const int kTargetBitrates[kNumberOfSimulcastStreams] = {100, 450, 1000};
43 const int kDefaultTemporalLayerProfile[3] = {3, 3, 3}; 43 const int kDefaultTemporalLayerProfile[3] = {3, 3, 3};
44 44
45 template <typename T> 45 template <typename T>
46 void SetExpectedValues3(T value0, T value1, T value2, T* expected_values) { 46 void SetExpectedValues3(T value0, T value1, T value2, T* expected_values) {
47 expected_values[0] = value0; 47 expected_values[0] = value0;
48 expected_values[1] = value1; 48 expected_values[1] = value1;
49 expected_values[2] = value2; 49 expected_values[2] = value2;
50 } 50 }
51 51
52 enum PlaneType {
53 kYPlane = 0,
54 kUPlane = 1,
55 kVPlane = 2,
56 kNumOfPlanes = 3,
57 };
58
52 class Vp8TestEncodedImageCallback : public EncodedImageCallback { 59 class Vp8TestEncodedImageCallback : public EncodedImageCallback {
53 public: 60 public:
54 Vp8TestEncodedImageCallback() : picture_id_(-1) { 61 Vp8TestEncodedImageCallback() : picture_id_(-1) {
55 memset(temporal_layer_, -1, sizeof(temporal_layer_)); 62 memset(temporal_layer_, -1, sizeof(temporal_layer_));
56 memset(layer_sync_, false, sizeof(layer_sync_)); 63 memset(layer_sync_, false, sizeof(layer_sync_));
57 } 64 }
58 65
59 ~Vp8TestEncodedImageCallback() { 66 ~Vp8TestEncodedImageCallback() {
60 delete[] encoded_key_frame_._buffer; 67 delete[] encoded_key_frame_._buffer;
61 delete[] encoded_frame_._buffer; 68 delete[] encoded_frame_._buffer;
(...skipping 902 matching lines...) Expand 10 before | Expand all | Expand 10 after
964 MockDecodedImageCallback decoder_callback_; 971 MockDecodedImageCallback decoder_callback_;
965 VideoCodec settings_; 972 VideoCodec settings_;
966 rtc::scoped_refptr<I420Buffer> input_buffer_; 973 rtc::scoped_refptr<I420Buffer> input_buffer_;
967 std::unique_ptr<VideoFrame> input_frame_; 974 std::unique_ptr<VideoFrame> input_frame_;
968 }; 975 };
969 976
970 } // namespace testing 977 } // namespace testing
971 } // namespace webrtc 978 } // namespace webrtc
972 979
973 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_SIMULCAST_UNITTEST_H_ 980 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_SIMULCAST_UNITTEST_H_
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/codecs/h264/h264_decoder_impl.cc ('k') | webrtc/test/frame_generator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698