OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |