Current section

Files

Jump to
membrane_h264_ffmpeg_plugin c_src membrane_h264_ffmpeg_plugin decoder.spec.exs
Raw

c_src/membrane_h264_ffmpeg_plugin/decoder.spec.exs

module Membrane.H264.FFmpeg.Decoder.Native
state_type "State"
spec create() :: {:ok :: label, state} | {:error :: label, reason :: atom}
spec decode(payload, dts :: int64, use_shm :: bool, state) ::
{:ok :: label, best_effort_ts :: [int64], frames :: [payload]}
| {:error :: label, reason :: atom}
spec flush(use_shm :: bool, state) ::
{:ok :: label, best_effort_ts :: [int64], frames :: [payload]}
| {:error :: label, reason :: atom}
spec get_metadata(state) ::
{:ok :: label, width :: int, height :: int, pix_fmt :: atom}
| {:error :: label, :pix_fmt :: label}
dirty :cpu, decode: 3, flush: 1