VideoInterop.Validator (video_interop v0.1.0)

Copy Markdown View Source

Structural validation and producer-authority verification for borrowed frames.

Summary

Types

reason()

@type reason() :: term()

Functions

validate_descriptor(value)

@spec validate_descriptor(term()) :: :ok | {:error, reason()}

validate_format(format)

@spec validate_format(term()) :: :ok | {:error, reason()}

validate_frame(frame)

@spec validate_frame(term()) :: :ok | {:error, reason()}

validate_frame_against_format(frame, format)

@spec validate_frame_against_format(term(), term()) :: :ok | {:error, reason()}