Jump to content

WinXP HEVC/HEIF/HEIC Image Encoder/Decoder


user57

Recommended Posts

as promised .heic is brought to windows xp
closing the gap for xp having a very new image encoder and decoder

the resulting image is even better then the one on wikipedia 
https://en.wikipedia.org/wiki/High_Efficiency_Image_File_Format
reason behind this i only choosed the best options, better code, better decisions, and disregarded code 
that decreases image quality
-----

WinXP HEVC/HEIF Image En/Decoder explained


Encoder:

Encode By Filename:
allow you to select a file this heic encoder supports : .jpg, .png and .y4m
the encoder make a .heic file from the choosen file

Encoder By Folder:
this read "Format Ending For En/Decoder"
if you have written jpg then it will search all .jpg files in the choosen folder
do not use a . at "Format Ending For En/Decoder" 
write: png, jpg or y4m
if the entry was jpg
then the encoder will encode all .jpg files in that folder to .heic

Encoder Complexity:
"placebo" is the best setting here
i actually dont see any reason to choose a different setting that actually only results in less image quality
(best: 1: placebo, 2: veryslow, 3: slower, 4: slow, 5: medium, 6: fast , 7: faster, 
8: veryfast, 9: superfast, 10 ultrafast)
why we should we set a setting that decreases image quality? (basicly i not even wanted to have this box)

Hardware Acceleration:
makes use of hardware registers such as MMX, SSE and AVX
this speed up encoding time a lot
since the encoder is very complex image encoding can take time
hardware acceleration makes encoding a lot faster

notice: depending on your cpu power since the encoder is complex can take some time

(if so keep a look "Encoded Image Files")

Quality:
controls the filesize of your .heic file, the lower this number the smaller your .heic file

lossless:
that option is not very useful 
as the real question is how well the pixels was preserved making a compression (we actually dont make a raw format - we make a compression)
so better set this option to 0

Tuner:
this increases the image quality even further
good settings are psnr and ssim - the other settings only decrease image quality 

-----

Decoder:

png compression level (0-9):

png compression level -1 actually represents png compression 6
i actually dont see a well reason to have -1 as option, since -1 just represent compression 6
(you can try this out by looking at the filesize of the resulting .png file (try -1 and 6 they are the same)
-1 actually is called png_default_compression what then is defined as 6 
0 means no compression (this is good to make a compare how well your .heic file was preserved)
increasing values make higher compressions losing more pixels (again 6 is equal to -1) 
0 is the best png compression regarding pixels

going from 0 to higher numbers decreasing image quality (higher numbers create smaller file sizes)

(and make a compromise about pixels and compression)


jpg compression (1-100):
nothing much to say here the higher this value the better the resultung jpg image
notice higher values also cause bigger filze sizes
90 seems to be a good choice


Decode By Filename:
this button actually reads out "Format Ending For En/Decoder"
why ? because if you select a .heic file the decoder has to know the decompression format
valid formats are: png , jpg , y4m (dont use . in that box (i removed because unneccesary typing 1 more time)

Decode By Folder:
reads out "Format Ending For En/Decoder"
then the selected folder is searched for .heic files 
and then the decoder decodes all .heic files into the image format you set in "Format Ending For En/Decoder"
------


rumors say .heic is the best image encoder at the moment 
as we know .heic passes jpg, jpg2000 and jxr (jpeg xr)
what we can see in the wikipedia site for heic

maybe .heic also other jpg formats like the jxs format (what is rather speed orientated then quality orientated)
there are some (jpeg xt, jpeg xs, jpeg ls, jpeg xe)
(https://jpeg.org)


if someone wants to makes the compares the h.266 by frauenhofer or jxl would be candidates to try 
or even the others ...

i actually never seen a h.266 frauenhofer image yet


and here goes the file 2 (backups):

https://www.file-upload.net/download-15206758/WinXP_HEIC.zip.html
https://www.mediafire.com/file/ksrtm0gie4fgh51/WinXP_HEIC.zip/file
 

Link to comment
Share on other sites


well it interhents from hevc (h.265)

then the idea seems to be .HEIF (High Efficiency Image File Format)

what can store multiple formats (such as jpg2000)

but jpg2000 is not a new file format

so the new files that are actually encoded with the new encoder are called .heic

so .heic is what we want (High Efficiency Image Coding)

Link to comment
Share on other sites

I downloaded this on my tablet, I'll be checking out if this can work on  my Windows ME system tomorrow as I've only partial read support for this format on that system and none for encoding. I can read some flavors of it in XnView via a susie plugin and an old version of Image Magick and others with Gpac, and yet some other with nothing.

BTW, with regards to png decoding, compression levels have to to do with file size vs speed not quality, png is always lossless.

Heic, avif and jxl beat old formats quite massively with regards to filesize for identical quality but are all damn slow, about 100x slower to decode in a few tests I made, so nothing I am going to adopt for my own use, especially as storage space is not issue anymore these days. Nice to have decoding options for these formats though.

 

Link to comment
Share on other sites

Thanks for this, user57, I've been searching all over for a way to manage HEIC on XP! On XP Pro x64, I tried the decoding on an iPhone picture, both jpg and png, but sadly it ended up with random line artifacts throughout the picture. I haven't tried it on x86 yet.

If it's ok to mention here, I have found another free program that just recently started handling HEIC on XP too. It has an editor, viewer and converter!

Link to comment
Share on other sites

3 minutes ago, Teslaman said:

If it's ok to mention here, I have found another free program that just recently started handling HEIC on XP too. It has an editor, viewer and converter!

Sure man, what is it?

Link to comment
Share on other sites

19 hours ago, loblo said:

Sure man, what is it?

It's the latest version of Chasys Draw IES.

Oh and it also creates thumbnails for the folder view! It's a bit slow at that for me, but that could be due to which method it uses. It uses the HEVC codec, either an included or installed one.

Edited by Teslaman
Link to comment
Share on other sites

well there are some websites that offer a decoder for that heif format

https://strukturag.github.io/libheif/

is that one working for you ?

but encoders are rare for now, special a encoder for winxp dont exits, and having hardware acceleration 

and this encoder use the best settings, best code, and dont go down the road any time to create a .heic file 

cmp3.thumb.jpg.3d5e2f52644131dce4d1fe0212d4a706.jpg

 

as everybody can see normal jpg, jpeg 2000 and jpeg jxr are beaten up even the heif file from wiki is beaten up

 

Edited by user57
Link to comment
Share on other sites

I tried a few different browsers, but no it didn't work for me. Ah yeah I'm not sure if Chasys does encoding either, my install currently doesn't, but in my case I'm just looking for decoding anyways. I did try your encoder on a JPG and it worked fine! :cool:

Link to comment
Share on other sites

On 10/25/2023 at 3:08 PM, user57 said:

as everybody can see normal jpg, jpeg 2000 and jpeg jxr are beaten up even the heif file from wiki is beaten up

Your JPEG screenshot is noticeably degraded, which you can see if you look around the red icons on the GUI. This distorts the comparison.

This program is mainly useful to decode downloaded images that can't be decoded on WinXP at all. With fast networks and large disks, one can easily use high quality JPEG. Extreme compression is not necessary today. All these advanced formats load very slowly. JPEG-XL is somewhat better because it includes options for producing a lower complexity file that is easier to decode, but you're no in control over them if you download images from the internet.

Link to comment
Share on other sites

j7n is absolutly right that it also degraded

actually the orginal file with same size isnt provided by wikipedia

but what i still can tell is that even then it degraded a lot lower then the other heic file
(even double compressed)

because i didnt even have the orginal file, and compressed the entire image to around the same filesize
then the image still had more pixels preserved 

even when 2 compressions happend, even then we can see the improvment

and even when put to a higher compression the encoder from msfn still passed the other heic file
(for this i actually made a even smaller filesize, what is around compared to the target filesize)


the places are:
1 heic from msfn
2 heic from wikipedia heic
3 jxr - preserved the image better then the others
4 jpeg 2000 - yes preserved more pixels then normal jpeg 
5 normal jpg - huge losses nowhere near the other compressions

it can be seen on the lamp, that window, or from the "tree top left to the white car"

the heic from wikipedia has lost that window split, jxr also lost that texture
that can be tested by somebody just looking the lamp/or that window at the wikipedia file
then testing if that texture was preserved with the msfn heic file 
(also trying different filesizes can be tryed)

orginal_vs_jpeg_xr.thumb.jpg.e7af143e7d168652823da737d2a53a6e.jpg
many image encoders actually have that "recompression problem", that they transfer to a RGB image
and then recompress the image again. sometimes the differens ist not well seen
but actually the image itself is not changed like in a RGB image
for compression often a other approach is done:

it just call the encoder (with the same settings) again ... what useally means again a few losses

i wonder why Francebb hasnt answered yet
he might actually have a h.266 image

Link to comment
Share on other sites

  • 4 weeks later...

well i was trying those who actually say they work in windows xp

i tryed (chasys draw ies converter)
1: checking dependencies (heif/avif/avci)
2: video codec not found HEIC, common (avif, and av1)
when doing the convert it dont create the file (it created an empty folder)

prgramm (pixillion)
calls up 
http://www.nch.com.au/components/libheif.exe

i had to download that one, because IE6 in xp cant download that file
but after that i installed libheif.exe 
but the converter just hangs up


do i make something wrong ? both of these opened in windows xp but and installede.jpg.236471e16d4f15af1092927498a13859.jpg

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...