mrayy / mrayGStreamerUnity

GStreamer Integration with Unity using a Native plugin
MIT License
108 stars 37 forks source link

RGB format flip shader #59

Open ahmadreza-hadidi opened 3 months ago

ahmadreza-hadidi commented 3 months ago

@mrayy thank you for this great plugin. It works very good. I have a problem in video quality by using default I420 converting you provide within plugin. So i decided to use RGB format, Can you add a shader like I420 that just flip the texture in Y axis.

The problem of using default I420 format is that by the "height/1.5" converting my image quality decreased compared to using "autovideosink" with gst-launch

mrayy commented 3 months ago

Hello @ahmadreza-hadidi The reason I used I420 instead of RGB is to speed up the upload speed to the GPU. If you want to use RGB instead, then it should be straightforward.