benchutil

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: BSD-3-Clause Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func FrameSizeArg

func FrameSizeArg(frameSize int) (string, error)

FrameSizeArg converts a frame size in samples at 48 kHz to the opus_demo CLI value.

func OpusComparePath

func OpusComparePath() (string, error)

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

func OpusDemoPath() (string, error)

OpusDemoPath resolves the pinned libopus reference binary used by parity tooling.

func OpusDemoSupportsQEXT

func OpusDemoSupportsQEXT(path string) (bool, error)

OpusDemoSupportsQEXT reports whether the selected opus_demo binary was built with ENABLE_QEXT and exposes the `-qext` CLI flag.

func QEXTOpusDemoPath

func QEXTOpusDemoPath() (string, error)

QEXTOpusDemoPath resolves the QEXT-enabled opus_demo paired with the current Go instruction lane.

func WriteRepeatedOpusDemoBitstream

func WriteRepeatedOpusDemoBitstream(path string, packets [][]byte, repeat int) error

WriteRepeatedOpusDemoBitstream writes an opus_demo .bit stream with zero final ranges.

func WriteRepeatedRawFloat32

func WriteRepeatedRawFloat32(path string, samples []float32, repeat int) error

WriteRepeatedRawFloat32 writes samples to path as little-endian raw float32, repeated repeat times, in the interleaved PCM layout opus_demo reads.

Types

This section is empty.

Jump to

Keyboard shortcuts

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