webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
webrtc::testing::TestVp8Simulcast Class Reference

#include <simulcast_unittest.h>

Inheritance diagram for webrtc::testing::TestVp8Simulcast:
testing::Test testing::Test webrtc::testing::TestSimulcastEncoderAdapter webrtc::testing::TestVp8Impl

Public Member Functions

 TestVp8Simulcast (VP8Encoder *encoder, VP8Decoder *decoder)
 
 TestVp8Simulcast (VP8Encoder *encoder, VP8Decoder *decoder)
 

Static Public Member Functions

static void SetPlane (uint8_t *data, uint8_t value, int width, int height, int stride)
 
static void CreateImage (const rtc::scoped_refptr< I420Buffer > &buffer, int plane_colors[kNumOfPlanes])
 
static void DefaultSettings (VideoCodec *settings, const int *temporal_layer_profile)
 
static void ConfigureStream (int width, int height, int max_bitrate, int min_bitrate, int target_bitrate, SimulcastStream *stream, int num_temporal_layers)
 
static void SetPlane (uint8_t *data, uint8_t value, int width, int height, int stride)
 
static void CreateImage (const rtc::scoped_refptr< I420Buffer > &buffer, int plane_colors[kNumOfPlanes])
 
static void DefaultSettings (VideoCodec *settings, const int *temporal_layer_profile)
 
static void ConfigureStream (int width, int height, int max_bitrate, int min_bitrate, int target_bitrate, SimulcastStream *stream, int num_temporal_layers)
 

Protected Member Functions

void SetUp () override
 
void TearDown () override
 
void SetUpCodec (const int *temporal_layer_profile)
 
void SetUpRateAllocator ()
 
void SetRates (uint32_t bitrate_kbps, uint32_t fps)
 
void ExpectStreams (FrameType frame_type, int expected_video_streams)
 
void VerifyTemporalIdxAndSyncForAllSpatialLayers (Vp8TestEncodedImageCallback *encoder_callback, const int *expected_temporal_idx, const bool *expected_layer_sync, int num_spatial_layers)
 
void TestKeyFrameRequestsOnAllStreams ()
 
void TestPaddingAllStreams ()
 
void TestPaddingTwoStreams ()
 
void TestPaddingTwoStreamsOneMaxedOut ()
 
void TestPaddingOneStream ()
 
void TestPaddingOneStreamTwoMaxedOut ()
 
void TestSendAllStreams ()
 
void TestDisablingStreams ()
 
void SwitchingToOneStream (int width, int height)
 
void TestSwitchingToOneStream ()
 
void TestSwitchingToOneOddStream ()
 
void TestSwitchingToOneSmallStream ()
 
void TestRPSIEncoder ()
 
void TestRPSIEncodeDecode ()
 
void TestSaptioTemporalLayers333PatternEncoder ()
 
void TestSpatioTemporalLayers321PatternEncoder ()
 
void TestStrideEncodeDecode ()
 
void SetUp () override
 
void TearDown () override
 
void SetUpCodec (const int *temporal_layer_profile)
 
void SetUpRateAllocator ()
 
void SetRates (uint32_t bitrate_kbps, uint32_t fps)
 
void ExpectStreams (FrameType frame_type, int expected_video_streams)
 
void VerifyTemporalIdxAndSyncForAllSpatialLayers (Vp8TestEncodedImageCallback *encoder_callback, const int *expected_temporal_idx, const bool *expected_layer_sync, int num_spatial_layers)
 
void TestKeyFrameRequestsOnAllStreams ()
 
void TestPaddingAllStreams ()
 
void TestPaddingTwoStreams ()
 
void TestPaddingTwoStreamsOneMaxedOut ()
 
void TestPaddingOneStream ()
 
void TestPaddingOneStreamTwoMaxedOut ()
 
void TestSendAllStreams ()
 
void TestDisablingStreams ()
 
void SwitchingToOneStream (int width, int height)
 
void TestSwitchingToOneStream ()
 
void TestSwitchingToOneOddStream ()
 
void TestSwitchingToOneSmallStream ()
 
void TestRPSIEncoder ()
 
void TestRPSIEncodeDecode ()
 
void TestSaptioTemporalLayers333PatternEncoder ()
 
void TestSpatioTemporalLayers321PatternEncoder ()
 
void TestStrideEncodeDecode ()
 
- Protected Member Functions inherited from testing::Test
 Test ()
 

Protected Attributes

std::unique_ptr< VP8Encoderencoder_
 
MockEncodedImageCallback encoder_callback_
 
std::unique_ptr< VP8Decoderdecoder_
 
MockDecodedImageCallback decoder_callback_
 
VideoCodec settings_
 
rtc::scoped_refptr< I420Bufferinput_buffer_
 
std::unique_ptr< VideoFrameinput_frame_
 
std::unique_ptr< SimulcastRateAllocatorrate_allocator_
 

Constructor & Destructor Documentation

◆ TestVp8Simulcast() [1/2]

webrtc::testing::TestVp8Simulcast::TestVp8Simulcast ( VP8Encoder encoder,
VP8Decoder decoder 
)
inline

◆ TestVp8Simulcast() [2/2]

webrtc::testing::TestVp8Simulcast::TestVp8Simulcast ( VP8Encoder encoder,
VP8Decoder decoder 
)
inline

Member Function Documentation

◆ ConfigureStream() [1/2]

static void webrtc::testing::TestVp8Simulcast::ConfigureStream ( int  width,
int  height,
int  max_bitrate,
int  min_bitrate,
int  target_bitrate,
SimulcastStream stream,
int  num_temporal_layers 
)
inlinestatic

◆ ConfigureStream() [2/2]

static void webrtc::testing::TestVp8Simulcast::ConfigureStream ( int  width,
int  height,
int  max_bitrate,
int  min_bitrate,
int  target_bitrate,
SimulcastStream stream,
int  num_temporal_layers 
)
inlinestatic

◆ CreateImage() [1/2]

static void webrtc::testing::TestVp8Simulcast::CreateImage ( const rtc::scoped_refptr< I420Buffer > &  buffer,
int  plane_colors[kNumOfPlanes] 
)
inlinestatic

◆ CreateImage() [2/2]

static void webrtc::testing::TestVp8Simulcast::CreateImage ( const rtc::scoped_refptr< I420Buffer > &  buffer,
int  plane_colors[kNumOfPlanes] 
)
inlinestatic

◆ DefaultSettings() [1/2]

static void webrtc::testing::TestVp8Simulcast::DefaultSettings ( VideoCodec settings,
const int *  temporal_layer_profile 
)
inlinestatic

◆ DefaultSettings() [2/2]

static void webrtc::testing::TestVp8Simulcast::DefaultSettings ( VideoCodec settings,
const int *  temporal_layer_profile 
)
inlinestatic

◆ ExpectStreams() [1/2]

void webrtc::testing::TestVp8Simulcast::ExpectStreams ( FrameType  frame_type,
int  expected_video_streams 
)
inlineprotected

◆ ExpectStreams() [2/2]

void webrtc::testing::TestVp8Simulcast::ExpectStreams ( FrameType  frame_type,
int  expected_video_streams 
)
inlineprotected

◆ SetPlane() [1/2]

static void webrtc::testing::TestVp8Simulcast::SetPlane ( uint8_t data,
uint8_t  value,
int  width,
int  height,
int  stride 
)
inlinestatic

◆ SetPlane() [2/2]

static void webrtc::testing::TestVp8Simulcast::SetPlane ( uint8_t data,
uint8_t  value,
int  width,
int  height,
int  stride 
)
inlinestatic

◆ SetRates() [1/2]

void webrtc::testing::TestVp8Simulcast::SetRates ( uint32_t  bitrate_kbps,
uint32_t  fps 
)
inlineprotected

◆ SetRates() [2/2]

void webrtc::testing::TestVp8Simulcast::SetRates ( uint32_t  bitrate_kbps,
uint32_t  fps 
)
inlineprotected

◆ SetUp() [1/2]

void webrtc::testing::TestVp8Simulcast::SetUp ( )
inlineoverrideprotectedvirtual

Reimplemented from testing::Test.

◆ SetUp() [2/2]

void webrtc::testing::TestVp8Simulcast::SetUp ( )
inlineoverrideprotectedvirtual

◆ SetUpCodec() [1/2]

void webrtc::testing::TestVp8Simulcast::SetUpCodec ( const int *  temporal_layer_profile)
inlineprotected

◆ SetUpCodec() [2/2]

void webrtc::testing::TestVp8Simulcast::SetUpCodec ( const int *  temporal_layer_profile)
inlineprotected

◆ SetUpRateAllocator() [1/2]

void webrtc::testing::TestVp8Simulcast::SetUpRateAllocator ( )
inlineprotected

◆ SetUpRateAllocator() [2/2]

void webrtc::testing::TestVp8Simulcast::SetUpRateAllocator ( )
inlineprotected

◆ SwitchingToOneStream() [1/2]

void webrtc::testing::TestVp8Simulcast::SwitchingToOneStream ( int  width,
int  height 
)
inlineprotected

◆ SwitchingToOneStream() [2/2]

void webrtc::testing::TestVp8Simulcast::SwitchingToOneStream ( int  width,
int  height 
)
inlineprotected

◆ TearDown() [1/2]

void webrtc::testing::TestVp8Simulcast::TearDown ( )
inlineoverrideprotectedvirtual

Reimplemented from testing::Test.

◆ TearDown() [2/2]

void webrtc::testing::TestVp8Simulcast::TearDown ( )
inlineoverrideprotectedvirtual

◆ TestDisablingStreams() [1/2]

void webrtc::testing::TestVp8Simulcast::TestDisablingStreams ( )
inlineprotected

◆ TestDisablingStreams() [2/2]

void webrtc::testing::TestVp8Simulcast::TestDisablingStreams ( )
inlineprotected

◆ TestKeyFrameRequestsOnAllStreams() [1/2]

void webrtc::testing::TestVp8Simulcast::TestKeyFrameRequestsOnAllStreams ( )
inlineprotected

◆ TestKeyFrameRequestsOnAllStreams() [2/2]

void webrtc::testing::TestVp8Simulcast::TestKeyFrameRequestsOnAllStreams ( )
inlineprotected

◆ TestPaddingAllStreams() [1/2]

void webrtc::testing::TestVp8Simulcast::TestPaddingAllStreams ( )
inlineprotected

◆ TestPaddingAllStreams() [2/2]

void webrtc::testing::TestVp8Simulcast::TestPaddingAllStreams ( )
inlineprotected

◆ TestPaddingOneStream() [1/2]

void webrtc::testing::TestVp8Simulcast::TestPaddingOneStream ( )
inlineprotected

◆ TestPaddingOneStream() [2/2]

void webrtc::testing::TestVp8Simulcast::TestPaddingOneStream ( )
inlineprotected

◆ TestPaddingOneStreamTwoMaxedOut() [1/2]

void webrtc::testing::TestVp8Simulcast::TestPaddingOneStreamTwoMaxedOut ( )
inlineprotected

◆ TestPaddingOneStreamTwoMaxedOut() [2/2]

void webrtc::testing::TestVp8Simulcast::TestPaddingOneStreamTwoMaxedOut ( )
inlineprotected

◆ TestPaddingTwoStreams() [1/2]

void webrtc::testing::TestVp8Simulcast::TestPaddingTwoStreams ( )
inlineprotected

◆ TestPaddingTwoStreams() [2/2]

void webrtc::testing::TestVp8Simulcast::TestPaddingTwoStreams ( )
inlineprotected

◆ TestPaddingTwoStreamsOneMaxedOut() [1/2]

void webrtc::testing::TestVp8Simulcast::TestPaddingTwoStreamsOneMaxedOut ( )
inlineprotected

◆ TestPaddingTwoStreamsOneMaxedOut() [2/2]

void webrtc::testing::TestVp8Simulcast::TestPaddingTwoStreamsOneMaxedOut ( )
inlineprotected

◆ TestRPSIEncodeDecode() [1/2]

void webrtc::testing::TestVp8Simulcast::TestRPSIEncodeDecode ( )
inlineprotected

◆ TestRPSIEncodeDecode() [2/2]

void webrtc::testing::TestVp8Simulcast::TestRPSIEncodeDecode ( )
inlineprotected

◆ TestRPSIEncoder() [1/2]

void webrtc::testing::TestVp8Simulcast::TestRPSIEncoder ( )
inlineprotected

◆ TestRPSIEncoder() [2/2]

void webrtc::testing::TestVp8Simulcast::TestRPSIEncoder ( )
inlineprotected

◆ TestSaptioTemporalLayers333PatternEncoder() [1/2]

void webrtc::testing::TestVp8Simulcast::TestSaptioTemporalLayers333PatternEncoder ( )
inlineprotected

◆ TestSaptioTemporalLayers333PatternEncoder() [2/2]

void webrtc::testing::TestVp8Simulcast::TestSaptioTemporalLayers333PatternEncoder ( )
inlineprotected

◆ TestSendAllStreams() [1/2]

void webrtc::testing::TestVp8Simulcast::TestSendAllStreams ( )
inlineprotected

◆ TestSendAllStreams() [2/2]

void webrtc::testing::TestVp8Simulcast::TestSendAllStreams ( )
inlineprotected

◆ TestSpatioTemporalLayers321PatternEncoder() [1/2]

void webrtc::testing::TestVp8Simulcast::TestSpatioTemporalLayers321PatternEncoder ( )
inlineprotected

◆ TestSpatioTemporalLayers321PatternEncoder() [2/2]

void webrtc::testing::TestVp8Simulcast::TestSpatioTemporalLayers321PatternEncoder ( )
inlineprotected

◆ TestStrideEncodeDecode() [1/2]

void webrtc::testing::TestVp8Simulcast::TestStrideEncodeDecode ( )
inlineprotected

◆ TestStrideEncodeDecode() [2/2]

void webrtc::testing::TestVp8Simulcast::TestStrideEncodeDecode ( )
inlineprotected

◆ TestSwitchingToOneOddStream() [1/2]

void webrtc::testing::TestVp8Simulcast::TestSwitchingToOneOddStream ( )
inlineprotected

◆ TestSwitchingToOneOddStream() [2/2]

void webrtc::testing::TestVp8Simulcast::TestSwitchingToOneOddStream ( )
inlineprotected

◆ TestSwitchingToOneSmallStream() [1/2]

void webrtc::testing::TestVp8Simulcast::TestSwitchingToOneSmallStream ( )
inlineprotected

◆ TestSwitchingToOneSmallStream() [2/2]

void webrtc::testing::TestVp8Simulcast::TestSwitchingToOneSmallStream ( )
inlineprotected

◆ TestSwitchingToOneStream() [1/2]

void webrtc::testing::TestVp8Simulcast::TestSwitchingToOneStream ( )
inlineprotected

◆ TestSwitchingToOneStream() [2/2]

void webrtc::testing::TestVp8Simulcast::TestSwitchingToOneStream ( )
inlineprotected

◆ VerifyTemporalIdxAndSyncForAllSpatialLayers() [1/2]

void webrtc::testing::TestVp8Simulcast::VerifyTemporalIdxAndSyncForAllSpatialLayers ( Vp8TestEncodedImageCallback encoder_callback,
const int *  expected_temporal_idx,
const bool *  expected_layer_sync,
int  num_spatial_layers 
)
inlineprotected

◆ VerifyTemporalIdxAndSyncForAllSpatialLayers() [2/2]

void webrtc::testing::TestVp8Simulcast::VerifyTemporalIdxAndSyncForAllSpatialLayers ( Vp8TestEncodedImageCallback encoder_callback,
const int *  expected_temporal_idx,
const bool *  expected_layer_sync,
int  num_spatial_layers 
)
inlineprotected

Member Data Documentation

◆ decoder_

std::unique_ptr< VP8Decoder > webrtc::testing::TestVp8Simulcast::decoder_
protected

◆ decoder_callback_

MockDecodedImageCallback webrtc::testing::TestVp8Simulcast::decoder_callback_
protected

◆ encoder_

std::unique_ptr< VP8Encoder > webrtc::testing::TestVp8Simulcast::encoder_
protected

◆ encoder_callback_

MockEncodedImageCallback webrtc::testing::TestVp8Simulcast::encoder_callback_
protected

◆ input_buffer_

rtc::scoped_refptr< I420Buffer > webrtc::testing::TestVp8Simulcast::input_buffer_
protected

◆ input_frame_

std::unique_ptr< VideoFrame > webrtc::testing::TestVp8Simulcast::input_frame_
protected

◆ rate_allocator_

std::unique_ptr< SimulcastRateAllocator > webrtc::testing::TestVp8Simulcast::rate_allocator_
protected

◆ settings_

VideoCodec webrtc::testing::TestVp8Simulcast::settings_
protected

The documentation for this class was generated from the following file: