OpenPOWER ISA > General Discussion

Immages in C

(1/2) > >>

MauryG5:
Sorry guys, I was trying to insert images in jpg format in a code written in C, but I can't figure out how to do it. I've read various information on the net but nothing that is really useful. I was wondering if it is possible to load images using C as a programming language...

ClassicHasClass:
Yes, with libjpeg. Works pretty much anywhere.

MauryG5:
Hi Classic, thank you for the information, I knew I could count on you. Listen, is there a general procedure or a written code to understand in detail how to write? Always thanks

ClassicHasClass:
Something like this would give you a starting point: https://github.com/bitristan/libjpeg-sample/tree/master

MauryG5:
Yes perfect thanks, yesterday I looked on github but I hadn't found this part yet. Above all I have to understand how to enter the path each time to make it send the photos I have to display to the screen. It seems that for each new photo I have to write all these lines of code, good work then... ;D

Navigation

[0] Message Index

[#] Next page

Go to full version