Skip to content

Commit

Permalink
remove native raw video module (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
mat-hek authored Jan 29, 2024
1 parent 49151f1 commit b38bb1c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 132 deletions.
68 changes: 0 additions & 68 deletions lib/membrane_native/raw_video.ex

This file was deleted.

19 changes: 0 additions & 19 deletions lib/membrane_raw_video.ex
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ defmodule Membrane.RawVideo do
"""
require Integer

alias Membrane.Native.RawVideo, as: NativeRawVideo

@typedoc """
Width of single frame in pixels.
"""
Expand Down Expand Up @@ -113,21 +111,4 @@ defmodule Membrane.RawVideo do
def frame_size(_format, _width, _height) do
{:error, :invalid_pixel_format}
end

@doc """
Creates unifex-compatible struct from Membrane.RawVideo struct.
Raises an error when RawVideo with an unsupported pixel format is provided.
"""
@spec to_native_raw_video(t()) :: NativeRawVideo.t()
def to_native_raw_video(%__MODULE__{} = membrane_raw_video) do
NativeRawVideo.from_membrane_raw_video(membrane_raw_video)
end

@doc """
Convert back a native raw video to the Membrane.RawVideo counterpart.
"""
@spec from_native_raw_video(NativeRawVideo.t()) :: t()
def from_native_raw_video(%NativeRawVideo{} = native_raw_video) do
NativeRawVideo.to_membrane_raw_video(native_raw_video)
end
end
45 changes: 0 additions & 45 deletions test/native_raw_video_test.exs

This file was deleted.

0 comments on commit b38bb1c

Please sign in to comment.