Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c > #402360
| From | fir <profesor.fir@gmail.com> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: [c+ai] one night with image codec |
| Date | 2026-09-24 16:17 +0200 |
| Organization | A noiseless patient Spider |
| Message-ID | <1193bdv$2odlb$1@dont-email.me> (permalink) |
| References | <119391l$2ng62$1@dont-email.me> <1193aol$2o3ou$1@dont-email.me> |
fir pisze:
> here are the results (if i not mistaken the links as after upload my
> names vanished)
>
> this is this codec with interpolation randomly chosen points (240 kb)
>
> https://relavo.net/v/SZDWh8l
>
> this is the codec after tuning this optimising routine and carefully
> chosen points (same interpolation) (240 kb)
>
> https://relavo.net/v/DGANW4e
>
> this is oryginal bitmap 2.07 MB
>
> https://relavo.net/v/G563DYM
>
> this is jotpeg 113 kb (if im not wrong with files , not carefully
> checked yet... it should be difference compered to oryginal bitmap i guess)
>
> https://relavo.net/v/HotiojQ
>
the quetion is ofc how to upgrade this (thou as i coded it in night i
not feel a much urge to improve it but i find its interesting)
note this 240 kb may be simply reduced as i use 6 bytes for
typedef struct { short x, y; unsigned color;} PointColor;
where i probably should not store x,y but deltas among pixels in image
(i mean as p = x +width*y and thise linear deltas probably mostly fit in
one byte or maybe 9 bits so short x,y (whis i packed to 3 bytes , 12
bits for each) may be packed in one byte thus leading to 33% size
reduction...maybe also some approcha to color pallete can also reduce
rgba values
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[c+ai] one night with image codec fir <profesor.fir@gmail.com> - 2026-09-24 15:36 +0200
Re: [c+ai] one night with image codec fir <profesor.fir@gmail.com> - 2026-09-24 16:06 +0200
Re: [c+ai] one night with image codec fir <profesor.fir@gmail.com> - 2026-09-24 16:17 +0200
Re: [c+ai] one night with image codec bart <bc@freeuk.com> - 2026-09-24 15:30 +0100
Re: [c+ai] one night with image codec fir <profesor.fir@gmail.com> - 2026-09-24 16:45 +0200
Re: [c+ai] one night with image codec "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2026-09-24 16:31 -0700
Re: [c+ai] one night with image codec fir <profesor.fir@gmail.com> - 2026-09-25 02:05 +0200
Re: [c+ai] one night with image codec "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2026-09-27 15:05 -0700
Re: [c+ai] one night with image codec bart <bc@freeuk.com> - 2026-09-28 00:44 +0100
Re: [c+ai] one night with image codec fir <profesor.fir@gmail.com> - 2026-09-28 04:22 +0200
Re: [c+ai] one night with image codec Paul <nospam@needed.invalid> - 2026-09-28 04:27 -0400
Re: [c+ai] one night with image codec fir <profesor.fir@gmail.com> - 2026-09-24 18:27 +0200
Re: [c+ai] one night with image codec David Brown <david.brown@hesbynett.no> - 2026-09-25 10:38 +0200
Re: [c+ai] one night with image codec fir <profesor.fir@gmail.com> - 2026-09-25 10:57 +0200
Re: [c+ai] one night with image codec David Brown <david.brown@hesbynett.no> - 2026-09-25 10:49 +0200
Re: [c+ai] one night with image codec bart <bc@freeuk.com> - 2026-09-25 10:49 +0100
Re: [c+ai] one night with image codec Jim Jackson <jj@franjam.org.uk> - 2026-09-25 12:01 +0000
Re: [c+ai] one night with image codec fir <profesor.fir@gmail.com> - 2026-09-26 02:51 +0200
Re: [c+ai] one night with image codec Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> - 2026-10-01 00:08 +0800
csiph-web