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

Get image width and height from the decoder #9

Merged
merged 7 commits into from
Jan 8, 2025
Merged

Conversation

Noarkhh
Copy link
Collaborator

@Noarkhh Noarkhh commented Jan 6, 2025

No description provided.

@Noarkhh Noarkhh force-pushed the frame-size-inference branch from 14c0597 to db5f748 Compare January 7, 2025 13:26
@Noarkhh Noarkhh requested review from FelonEkonom and mat-hek January 7, 2025 13:58
Comment on lines 10 to 16
@type decoded_frame :: %{
payload: binary(),
pixel_format: RawVideo.pixel_format(),
width: non_neg_integer(),
height: non_neg_integer()
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is not used anywhere


[stream_format: {:output, output_stream_format}]
stream_format_action =
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's raise or warn if the frame shape get from native code is different than the shape defined in input stream format (if it has any information about it)

@@ -1,22 +1,29 @@
defmodule Membrane.VPx.Decoder do
@moduledoc false

alias Membrane.{Buffer, RawVideo, RemoteStream, VP8, VP9}
require Membrane.Logger
alias Hex.State
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess we don't need it here

@Noarkhh Noarkhh merged commit 6e4e5b9 into master Jan 8, 2025
3 checks passed
@Noarkhh Noarkhh deleted the frame-size-inference branch January 8, 2025 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants