View Source Evision.CUDACodec.VideoWriter (Evision v0.2.9)

Summary

Types

t()

Type that represents an CUDACodec.VideoWriter struct.

Functions

Retrieve the encoding parameters.

Waits until the encoding process has finished before calling EncoderCallback::onEncodingFinished().

Variant 1:

Writes the next video frame.

Types

@type t() :: %Evision.CUDACodec.VideoWriter{ref: reference()}

Type that represents an CUDACodec.VideoWriter struct.

  • ref. reference()

    The underlying erlang resource variable.

Functions

Link to this function

getEncoderParams(named_args)

View Source
@spec getEncoderParams(Keyword.t()) :: any() | {:error, String.t()}
@spec getEncoderParams(Evision.CUDACodec.CUDACodec.VideoWriter.t()) ::
  Evision.CUDACodec.EncoderParams.t() | {:error, String.t()}

Retrieve the encoding parameters.

Positional Arguments
  • self: Evision.CUDACodec.VideoWriter.t()
Return
  • retval: EncoderParams

Python prototype (for reference only):

getEncoderParams() -> retval
@spec release(Keyword.t()) :: any() | {:error, String.t()}
@spec release(Evision.CUDACodec.CUDACodec.VideoWriter.t()) ::
  Evision.CUDACodec.CUDACodec.VideoWriter.t() | {:error, String.t()}

Waits until the encoding process has finished before calling EncoderCallback::onEncodingFinished().

Positional Arguments
  • self: Evision.CUDACodec.VideoWriter.t()

Python prototype (for reference only):

release() -> None
@spec write(Keyword.t()) :: any() | {:error, String.t()}
@spec write(Evision.CUDACodec.CUDACodec.VideoWriter.t(), Evision.Mat.maybe_mat_in()) ::
  Evision.CUDACodec.CUDACodec.VideoWriter.t() | {:error, String.t()}
@spec write(Evision.CUDACodec.CUDACodec.VideoWriter.t(), Evision.CUDA.GpuMat.t()) ::
  Evision.CUDACodec.CUDACodec.VideoWriter.t() | {:error, String.t()}

Variant 1:

Writes the next video frame.

Positional Arguments
  • self: Evision.CUDACodec.VideoWriter.t()

  • frame: Evision.Mat.

    The framet to be written.

The method encodes the specified image to a video stream. The image must have the same size and the same surface format as has been specified when opening the video writer.

Python prototype (for reference only):

write(frame) -> None

Variant 2:

Writes the next video frame.

Positional Arguments
  • self: Evision.CUDACodec.VideoWriter.t()

  • frame: Evision.CUDA.GpuMat.t().

    The framet to be written.

The method encodes the specified image to a video stream. The image must have the same size and the same surface format as has been specified when opening the video writer.

Python prototype (for reference only):

write(frame) -> None