Current section

Files

Jump to
membrane_h264_ffmpeg_plugin c_src membrane_h264_ffmpeg_plugin encoder.spec.exs
Raw

c_src/membrane_h264_ffmpeg_plugin/encoder.spec.exs

module Membrane.H264.FFmpeg.Encoder.Native
state_type "State"
spec create(
width :: int,
height :: int,
pix_fmt :: atom,
preset :: atom,
profile :: atom,
framerate_num :: int,
framerate_denom :: int,
crf :: int
) :: {:ok :: label, state} | {:error :: label, reason :: atom}
spec get_frame_size(state) :: {:ok :: label, frame_size :: int} | {:error :: label}
spec encode(payload, pts :: int64, state) ::
{:ok :: label, dts_list :: [int64], [payload]} | {:error :: label, reason :: atom}
spec flush(state) ::
{:ok :: label, dts_list :: [int64], frames :: [payload]}
| {:error :: label, reason :: atom}
dirty :cpu, flush: 1, encode: 3