videotype

package
v0.0.0-...-683b059 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2022 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Overview

Package videotype defines types and values commonly used in video tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Codec

type Codec string

Codec describes a video codec to exercise in testing. String values are passed to testWebRtcLoopbackCall in /video/data/loopback_camera.html and cannot be changed. Also, they are used in field names in WebRTCPeerConnCamera tests' performance metrics.

const (
	// VP8 represents the VP8 codec.
	VP8 Codec = "VP8"
	// VP9 represents the VP9 codec.
	VP9 Codec = "VP9"
	// H264 represents the H.264 codec.
	H264 Codec = "H264"
)

type CodecProfile

type CodecProfile int

CodecProfile stands for a profile in video.

const (

	// H264BaselineProf represents the value for H264 Baseline profile (= H264PROFILE_BASELINE).
	H264BaselineProf CodecProfile = 0
	// H264MainProf represents the value for H264 Main profile (= H264PROFILE_MAIN).
	H264MainProf CodecProfile = 1
	// H264HighProf represents the value for H264 High profile (= H264PROFILE_HIGH).
	H264HighProf CodecProfile = 3
	// VP8Prof represents the value for VP8 Main profile (= VP8PROFILE_ANY).
	VP8Prof CodecProfile = 11
	// VP9Prof represents the value for VP9 profile 0 (= VP9PROFILE_PROFILE0).
	VP9Prof CodecProfile = 12
	// VP9_2Prof represents the value for VP9 profile 2 (= VP9PROFILE_PROFILE2).
	VP9_2Prof CodecProfile = 14
)

type PixelFormat

type PixelFormat int

PixelFormat stands for pixel format in yuv image.

const (

	// I420 represents the value for the I420 pixel format (= PIXEL_FORMAT_I420).
	I420 PixelFormat = 1
	// NV12 represents the value for the NV12 pixel format (= PIXEL_FORMAT_NV12).
	NV12 PixelFormat = 6
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL