2026-03-05 14:45:15 -06:00
|
|
|
//go:build !cgo
|
|
|
|
|
|
|
|
|
|
package capture
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"errors"
|
|
|
|
|
"image"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func encodeH264Frame(_ *image.RGBA) ([]byte, error) {
|
|
|
|
|
return nil, errors.New("h264 support not available (cgo disabled)")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func h264Available() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-06 13:27:51 -06:00
|
|
|
func h264AvailabilityDetail() string {
|
|
|
|
|
return "cgo disabled in this build"
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-05 14:45:15 -06:00
|
|
|
func resetH264Encoder() {}
|
2026-03-13 09:28:16 -05:00
|
|
|
|
2026-05-21 21:11:10 -05:00
|
|
|
func resetH264EncoderHVNC() {}
|
|
|
|
|
|
|
|
|
|
func encodeH264FrameHVNC(_ *image.RGBA) ([]byte, error) {
|
|
|
|
|
return nil, errors.New("h264 support not available (cgo disabled)")
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-13 09:28:16 -05:00
|
|
|
func SetH264TargetFPS(_ int) {}
|