mirror of
https://github.com/pion/mediadevices.git
synced 2026-04-23 00:07:29 +08:00
c9b90fb233
Resolves https://github.com/pion/mediadevices/issues/114 * Remove codec registrar * Completely redesign how codec is being discovered, tuned, and built * Update examples * Update unit tests
27 lines
575 B
Go
27 lines
575 B
Go
package vpx
|
|
|
|
import (
|
|
"github.com/pion/mediadevices/pkg/codec"
|
|
)
|
|
|
|
// Params stores libvpx specific encoding parameters.
|
|
// Value range is codec (VP8/VP9) specific.
|
|
type Params struct {
|
|
codec.BaseParams
|
|
RateControlEndUsage RateControlMode
|
|
RateControlUndershootPercent uint
|
|
RateControlOvershootPercent uint
|
|
RateControlMinQuantizer uint
|
|
RateControlMaxQuantizer uint
|
|
}
|
|
|
|
// RateControlMode represents rate control mode.
|
|
type RateControlMode int
|
|
|
|
// RateControlMode values.
|
|
const (
|
|
RateControlVBR RateControlMode = iota
|
|
RateControlCBR
|
|
RateControlCQ
|
|
)
|