Mercurial > repos > blastem
annotate png.h @ 1971:80920c21bb52
Add an event log soft flush and call it twice per frame in between hard flushes to netplay latency when there are insufficient hardware updates to flush packets in the middle of a frame
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Fri, 08 May 2020 11:40:30 -0700 |
parents | 0ec89dadb36d |
children | eb45ad9d8a3f |
rev | line source |
---|---|
1532
b505083dcd87
Added png screenshot support
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
1 #ifndef PNG_H_ |
b505083dcd87
Added png screenshot support
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
2 #define PNG_H_ |
b505083dcd87
Added png screenshot support
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
3 |
b505083dcd87
Added png screenshot support
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
4 void save_png24(FILE *f, uint32_t *buffer, uint32_t width, uint32_t height, uint32_t pitch); |
b505083dcd87
Added png screenshot support
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
5 void save_png(FILE *f, uint32_t *buffer, uint32_t width, uint32_t height, uint32_t pitch); |
1569
0ec89dadb36d
Add code for loading PNG images. Added 360 controller image. WIP work on gamepad mapping UI
Michael Pavone <pavone@retrodev.com>
parents:
1532
diff
changeset
|
6 uint32_t *load_png(uint8_t *buffer, uint32_t buf_size, uint32_t *width, uint32_t *height); |
1532
b505083dcd87
Added png screenshot support
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
7 |
b505083dcd87
Added png screenshot support
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
8 #endif //PNG_H_ |