~emersion/go-kdf

0266042d224c6cc28bcb077e510f7cbc7da5b160 — Simon Ser 1 year, 4 months ago c6debf6
cmd: rig up ffmpeg
1 files changed, 7 insertions(+), 0 deletions(-)

M cmd/go-kdf/main.go
M cmd/go-kdf/main.go => cmd/go-kdf/main.go +7 -0
@@ 12,6 12,7 @@ import (
	"git.sr.ht/~emersion/go-kdf"
	"git.sr.ht/~emersion/go-kdf/cairo"
	"git.sr.ht/~emersion/go-kdf/drm"
	"git.sr.ht/~emersion/go-kdf/ffmpeg"
	"git.sr.ht/~emersion/go-kdf/opengl"
	"git.sr.ht/~emersion/go-kdf/pixman"
	"git.sr.ht/~emersion/go-kdf/vulkan"


@@ 119,6 120,12 @@ func main() {
				log.Fatalf("unknown Cairo format: %v", name)
			}
			block = cairo.GetBlock(fmt, endianness)
		} else if strings.HasPrefix(name, "AV_PIX_FMT_") {
			fmt, ok := ffmpeg.FormatTable[strings.TrimPrefix(name, "AV_PIX_FMT_")]
			if !ok {
				log.Fatalf("unknown ffmpeg format: %v", name)
			}
			block = ffmpeg.GetBlock(fmt)
		} else {
			log.Fatalf("unknown format family for %q", name)
		}