nokiatech / heif

High Efficiency Image File Format
Other
1.75k stars 248 forks source link

Can't Find Image Data #47

Open PaulTheLionHeart opened 6 years ago

PaulTheLionHeart commented 6 years ago

I am trying to make a simple Heic image viewer. I was able to link the libraries okay and find the height and width of an image. However, I can't find the routines that get the bits per pixel or the decoded image data.

Do I need codec just to view simple images? Is there a simple way to get the image data?

Thanks.

PaulTheLionHeart commented 6 years ago

Hi again, If I do need a codec, how do I interface with it in C++? Is there a simple codec just for heif/heic image files? Thanks, Paul.

nokiatech commented 6 years ago

Hi, Heif library itself doesn't contain codecs. You need to use external decoder to decode encoded image data you get from heif file parser library. See issue #45 for links to common platform decoders documentation links. BR,

PaulTheLionHeart commented 6 years ago

Thanks for answering, BR. Please guide me as to where I can find a decoder and how I interface with it in c/c++. I am new to working with external decoders. I am more familiar with JPEG/GIF/PNG etc that have full libraries to decode them. Any help is greatly appreciated. Many thanks. Paul.