Referencia Ziglibav-bridge

libav-bridge/libav_bridge.zig

Declaraciones públicas de libav-bridge/libav_bridge.zig (libav-bridge).

ImplementadoSin versión del tren todavía· generada desde apps/docs/generated/zig/libav-bridge.json

Página generada desde native/zig/libav-bridge/libav_bridge.zig. No se edita a mano: bun run docs:gen la regenera y bun run docs:check falla si difiere.

libav-bridge (dec-0110 §1.1): engine = libav, FFmpeg 8 as a LIBRARY (libavformat/libavcodec/libavutil, LGPL-2.1+, no protocols) behind the MediaEngine contract. The only place in Styx with FFmpeg headers (@cImport via translate-c of c.h) and the only one that links its libraries. Built only with -Dlibav=true; otherwise the daemon links disabled.zig and engine = libav is simply not a capability.

av

namespace · línea 11

pub const av = @import("av.zig")

FFmpeg constants and the error mapping (tests reach mapError through it).

available

const · línea 21

pub const available = true

Sin ///.

CodecStringFn

const · línea 26

pub const CodecStringFn = *const fn (std.mem.Allocator, *const facts.StreamInfo) std.mem.Allocator.Error![]const u8

Codec strings are common code (transmux): the caller passes the function so this crate never imports transmux (dec-0110 §1.1: both are siblings).

LibavEngine

type · línea 28

pub const LibavEngine = struct

Sin ///.

LibavEngine.init

fn · línea 33

pub fn init(codec_string: CodecStringFn, level: LogLevel) LibavEngine

Sin ///.

LibavEngine.engine

fn · línea 47

pub fn engine(self: *LibavEngine) contract.MediaEngine

Sin ///.

LibavEngine.capabilities

const · línea 51

pub const capabilities: contract.Capabilities = .{ .version = 1, .formats = &.{ .mp4, .mov, .matroska, .webm }, .passthrough = &remux.passthrough, }

Sin ///.

license

fn · línea 105

pub fn license() []const u8

License of the linked libavformat ("LGPL version 2.1 or later").

configuration

fn · línea 111

pub fn configuration() []const u8

configure flags the linked FFmpeg was built with (dec-0110 §5 license manifest: what is really linked, not what a file claims).