PNG декодирует данные из фрагмента IDAT ⇐ C++
PNG декодирует данные из фрагмента IDAT
I'm trying to make a png file reader in c++. I understood about the chunk structure but I'm struggling in understanding how to read the data in "IDAT" chunk to get each pixel color. This is my data
width: 16 height: 16 bit depth: 8 color type: 2 compression method: 0 filter method: 0 interlace method: 0
IDAT data: 38 4F 63 FC CF 40 1A 60 82 D2 44 83 51 0D C4 80 51 0D C4 00 5A 6B 60 60 00 00 40 2E 01 1F(hex)
I don't know what to do to decode the data, can anyone explain me, even with just an example of a single pixel, thanks
Источник: https://stackoverflow.com/questions/780 ... idat-chunk
I'm trying to make a png file reader in c++. I understood about the chunk structure but I'm struggling in understanding how to read the data in "IDAT" chunk to get each pixel color. This is my data
width: 16 height: 16 bit depth: 8 color type: 2 compression method: 0 filter method: 0 interlace method: 0
IDAT data: 38 4F 63 FC CF 40 1A 60 82 D2 44 83 51 0D C4 80 51 0D C4 00 5A 6B 60 60 00 00 40 2E 01 1F(hex)
I don't know what to do to decode the data, can anyone explain me, even with just an example of a single pixel, thanks
Источник: https://stackoverflow.com/questions/780 ... idat-chunk
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение
-
-
Медиакодек Android декодирует данные на поверхность и сохраняет в mp4
Anonymous » » в форуме Android - 0 Ответы
- 10 Просмотры
-
Последнее сообщение Anonymous
-
-
-
Медиакодек Android декодирует данные на поверхность и сохраняет в mp4
Anonymous » » в форуме Android - 0 Ответы
- 8 Просмотры
-
Последнее сообщение Anonymous
-