| Index: webrtc/test/layer_filtering_transport.h
|
| diff --git a/webrtc/test/layer_filtering_transport.h b/webrtc/test/layer_filtering_transport.h
|
| index 58c2dd566ba81da178620f280a36ad1ec71210c3..dc3182af36dc85e771823963e93b8669825eea3e 100644
|
| --- a/webrtc/test/layer_filtering_transport.h
|
| +++ b/webrtc/test/layer_filtering_transport.h
|
| @@ -24,8 +24,9 @@ class LayerFilteringTransport : public test::DirectTransport {
|
| LayerFilteringTransport(const FakeNetworkPipe::Config& config,
|
| uint8_t vp8_video_payload_type,
|
| uint8_t vp9_video_payload_type,
|
| - uint8_t tl_discard_threshold,
|
| - uint8_t sl_discard_threshold);
|
| + int selected_tl,
|
| + int selected_sl);
|
| + bool DiscardedLastPacket() const;
|
| bool SendRtp(const uint8_t* data,
|
| size_t length,
|
| const PacketOptions& options) override;
|
| @@ -35,12 +36,13 @@ class LayerFilteringTransport : public test::DirectTransport {
|
| // Used to distinguish between VP8 and VP9.
|
| const uint8_t vp8_video_payload_type_;
|
| const uint8_t vp9_video_payload_type_;
|
| - // Discard all temporal/spatial layers with id greater or equal the
|
| - // threshold. 0 to disable.
|
| - const uint8_t tl_discard_threshold_;
|
| - const uint8_t sl_discard_threshold_;
|
| + // Discard or invalidate all temporal/spatial layers with id greater than the
|
| + // selected one. -1 to disable filtering.
|
| + const int selected_tl_;
|
| + const int selected_sl_;
|
| // Current sequence number for each SSRC separately.
|
| std::map<uint32_t, uint16_t> current_seq_nums_;
|
| + bool discarded_last_packet_;
|
| };
|
|
|
| } // namespace test
|
|
|