Documentation
¶
Overview ¶
Package benchutil locates the pinned libopus reference binaries (opus_demo, opus_compare) and writes the raw-PCM and bitstream input files the parity and benchmark tooling feeds to them.
Index ¶
- func FrameSizeArg(frameSize int) (string, error)
- func OpusComparePath() (string, error)
- func OpusDemoPath() (string, error)
- func OpusDemoSupportsQEXT(path string) (bool, error)
- func QEXTOpusDemoPath() (string, error)
- func WriteRepeatedOpusDemoBitstream(path string, packets [][]byte, repeat int) error
- func WriteRepeatedRawFloat32(path string, samples []float32, repeat int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FrameSizeArg ¶
FrameSizeArg converts a frame size in samples at 48 kHz to the opus_demo CLI value.
func OpusComparePath ¶
OpusComparePath resolves the pinned libopus reference opus_compare binary, the canonical RFC 6716/8251 conformance comparator. OPUS_COMPARE_PATH overrides the pinned build.
func OpusDemoPath ¶
OpusDemoPath resolves the pinned libopus reference binary used by parity tooling.
func OpusDemoSupportsQEXT ¶
OpusDemoSupportsQEXT reports whether the selected opus_demo binary was built with ENABLE_QEXT and exposes the `-qext` CLI flag.
func QEXTOpusDemoPath ¶
QEXTOpusDemoPath resolves an opus_demo binary that actually supports QEXT. The default pinned tmp_check build does not guarantee ENABLE_QEXT, so callers should use this helper for QEXT-specific parity tests.
func WriteRepeatedOpusDemoBitstream ¶
WriteRepeatedOpusDemoBitstream writes an opus_demo .bit stream with zero final ranges.
Types ¶
This section is empty.