figgis / yuv-viewer Goto Github PK
View Code? Open in Web Editor NEWSimple YCbCr-Viewer (YUV-player) with many features
Simple YCbCr-Viewer (YUV-player) with many features
Hello Figgis,
Firstly, thanks to this wonderful code, basically, it works find to display the YUV picture.
Howvever, I think the handling to format YV12 and IYUV is reversed.
I did a experiment using ffmpeg to create a YUV420P YUV picture, YUV420P is also refered to IYUV/I420/YU12, but this YUV picture can be displayed with this code only when using option "YV12", while it's expected to handle this YUV420P YUV picture with option "IYUV".
I go through the code and try to modify the code at line 400 like:
//-line 400---before change-----
memcpy(my_overlay->pixels[1], P.cr_data, P.cr_size);
memcpy(my_overlay->pixels[2], P.cb_data, P.cb_size);
//-------------after change-----------
memcpy(my_overlay->pixels[1], P.cb_data, P.cb_size);
memcpy(my_overlay->pixels[2], P.cr_data, P.cr_size);
In the new test with this change applied, the test result is consistent with ffmpeg behavior.
Would you please review the this issue.
Thanks.
Best regards,
Wilbert
yuv-viewer doesn't compile against the latest SDL version.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.