Documentation ¶
Overview ¶
Package playback provides common code for video.Playback* tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunTest ¶
func RunTest(ctx context.Context, s *testing.State, cs ash.ConnSource, cr *chrome.Chrome, videoName string, decoderType DecoderType, gridSize int, measureRoughness bool)
RunTest measures a number of performance metrics while playing a video with or without hardware acceleration as per decoderType.
Types ¶
type DecoderType ¶
type DecoderType int
DecoderType represents the different video decoder types.
const ( // Hardware means hardware-accelerated video decoding. Hardware DecoderType = iota // Software - Any software-based video decoder (e.g. ffmpeg, libvpx). Software // LibGAV1 is a subtype of the Software above, using an alternative library // to play AV1 video for experimentation purposes. // TODO(crbug.com/1047051): remove this flag when the experiment is over, and // turn DecoderType into a boolean to represent hardware or software decoding. LibGAV1 )
Click to show internal directories.
Click to hide internal directories.