Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove native raw video module #13

Merged
merged 1 commit into from
Jan 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.