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

add overlay filter #1

Merged
merged 3 commits into from
Feb 23, 2024
Merged

add overlay filter #1

merged 3 commits into from
Feb 23, 2024

Conversation

mat-hek
Copy link
Member

@mat-hek mat-hek commented Feb 20, 2024

No description provided.

@mat-hek mat-hek requested a review from varsill February 20, 2024 11:25
lib/membrane_overlay_filter.ex Outdated Show resolved Hide resolved

alias Membrane.RawVideo

def_input_pad :input, accepted_format: %RawVideo{pixel_format: :I420}
Copy link
Contributor

Choose a reason for hiding this comment

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

Since we rely that heavy on the fact, that the YUV pixels are written in the planar format, perhaps it would be good to add a pixels_order: :planar | :semiplanar | :interleaved field to the RawVideo format?

Copy link
Member Author

Choose a reason for hiding this comment

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

Doesn't I420 already mean it's planar? If not, maybe we could adhere to some common terminology, like v4l https://docs.kernel.org/userspace-api/media/v4l/pixfmt-yuv-planar.html? Adding more fields gives a combinatorial explosion of possibilities, some of which may not exist or not be used in practice

Copy link
Contributor

Choose a reason for hiding this comment

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

You are right, I420 stands for fully planar ;) take a look here: https://wiki.videolan.org/YUV#Planar_formats

Co-authored-by: Łukasz Kita <lukasz.kita0@gmail.com>
@mat-hek mat-hek merged commit aaf5594 into master Feb 23, 2024
@mat-hek mat-hek deleted the overlay branch February 23, 2024 14:37
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.

2 participants