VideoInterop.DMABuf.FourCC (video_interop v0.1.0)

Copy Markdown View Source

Helpers for DRM fourcc values.

VideoInterop stores the unsigned 32-bit integer used by DRM. Four-character binaries are encoded in little-endian byte order.

Summary

Types

t()

@type t() :: 0..4_294_967_295

Functions

from_string(arg1)

@spec from_string(binary()) :: {:ok, t()} | {:error, :invalid_fourcc}

from_string!(value)

@spec from_string!(binary()) :: t()

nv12()

@spec nv12() :: t()

p010()

@spec p010() :: t()

to_string(fourcc)

@spec to_string(integer()) :: {:ok, <<_::32>>} | {:error, :invalid_fourcc}

to_string!(value)

@spec to_string!(integer()) :: <<_::32>>

xrgb8888()

@spec xrgb8888() :: t()