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

Link to this section 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.

Link to this section Types

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

Type that represents an CUDACodec.VideoWriter struct.

  • ref. reference()

    The underlying erlang resource variable.

Link to this section Functions

@spec getEncoderParams(Evision.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(Evision.VideoWriter.t()) ::
  Evision.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

Variant 1:

Writes the next video frame.

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

  • frame: Evision.Mat.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

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