-
Notifications
You must be signed in to change notification settings - Fork 59
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
JPG (Image file format - add Reader ?) #71
Comments
This does both Reader and decoding so it should be refactored to match
format API by separating both levels.
Le jeu. 22 mars 2018 11:37, paling <[email protected]> a écrit :
… https://github.com/HeapsIO/heaps/blob/master/hxd/res/NanoJpeg.hx
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#71>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA-bwMJZPA8G7PB3u7J2sAaFE9nIDjipks5tg37kgaJpZM4S2z4Z>
.
|
I have rearranged the code and put it in my folder project, see reader here format.jpg.Reader.hx. The reader is able to detect progressive JPG's fine ( we can't use them ). And it Compiles on Neko and C++. which is a good start. On C++ the pixels seem to be empty :( shame. Runtime on Neko I get: Test codepackage;
import hxPixels.Pixels; // https://github.com/azrafe7/hxPixels
import folder.Folder;
class Main{
var folder = new Folder();
static function main(){ new Main(); } public function new(){
var images = folder.getImages( './' );
var fileName = 'TestImage.png';
for( img in images ) if( img.fileSpec.name == fileName ) pixels = img.pixels;
var w = pixels.width;
var h = pixels.height;
for( x in 0...w ) for( y in 0...h ) trace( pixels.getPixel32( x, y ) );
}
} compile code
Do you have some good test images, I modified largest "RIP.jpg" from online wikipedia but it was progressive so modified in Krita, but I am unsure if it's an ideal representative jpg. If you have test samples jpg that would help. I am not really very knowledgable in debugging neko / c++, I can try but advise welcome, if you get a chance to take a quick look or send me your test jpgs, if we get this working what else is need prior to pull? |
https://github.com/HeapsIO/heaps/blob/master/hxd/res/NanoJpeg.hx
The text was updated successfully, but these errors were encountered: