View Source Membrane.VideoCompositor.VideoTransformations.TextureTransformations.CornersRounding (Membrane Video Compositor plugin v0.2.1)

Describe corners rounding texture transformation parameter. Corner rounding transformation can be imagined as placing four circles with specified radius adjoining to frame borders, placed inside frame and making space between circle edge and nearest frame corner transparent.

values

Values

  • border_radius: non negative integer representing radius of circle "cutting" frame corner part.

examples

Examples

Example struct describing transformation which rounds corners with 100 pixel radius:

iex> alias Membrane.VideoCompositor.VideoTransformations.TextureTransformations.CornersRounding
Membrane.VideoCompositor.VideoTransformations.TextureTransformations.CornersRounding
iex> %CornersRounding{ border_radius: 100 }
%Membrane.VideoCompositor.VideoTransformations.TextureTransformations.CornersRounding{
  border_radius: 100
}

Link to this section Summary

Types

t()

Describe cropping texture transformation parameter.

Link to this section Types

@type t() ::
  %Membrane.VideoCompositor.VideoTransformations.TextureTransformations.CornersRounding{
    border_radius: non_neg_integer()
  }

Describe cropping texture transformation parameter.