Manuel Stoeckl
248210d6e8
Stop using cairo_surface_t
2022-01-20 11:19:49 +01:00
Manuel Stoeckl
c0859c96ba
write_png: switch from cairo_surface_t to pixman_image_t
2022-01-20 11:19:49 +01:00
Manuel Stoeckl
6742c6b347
write_jpg: switch from cairo_surface_t to pixman_image_t
2022-01-20 11:19:49 +01:00
Manuel Stoeckl
67b7f51f76
write_ppm: switch from cairo_surface_t to pixman_image_t
2022-01-20 11:19:49 +01:00
Manuel Stoeckl
e57b8fa7a0
Stop using cairo_status_t
2022-01-20 11:19:49 +01:00
Manuel Stoeckl
6947e6d43d
write_jpg: use FILE* in cairo_surface_write_to_jpeg_stream
2022-01-20 11:19:49 +01:00
Manuel Stoeckl
c608cf08da
write_ppm: use FILE* in cairo_surface_write_to_ppm_stream
2022-01-20 11:19:49 +01:00
Manuel Stoeckl
4bc093405d
Remove unused functions to write image to file
2022-01-20 11:19:49 +01:00
Manuel Stoeckl
982d2783b3
Rename cairo_{jpg,ppm} to write_{jpg,ppm}
2022-01-20 11:19:49 +01:00
Manuel Stoeckl
fcaba96aab
Allow setting compression level for PNG output
...
Because cairo_surface_write_to_png does not have a way to configure
the compression level, this change adds code which directly uses
libpng to save images in 'write_png.c'.
2021-10-08 14:12:45 +02:00
Josef Gajdusek
d22c2ef82a
Add support for the ppm output format
2019-06-01 18:09:39 +03:00
emersion
b5ad4f9db5
Add an option to disable JPEG support
2018-12-04 22:22:20 +01:00
Jan Pokorný
aa679f0501
Fix i686 build -Werror=incompatible-pointer-types complaint
...
This was caused with jpeg_mem_dest expecting pointer to unsigned long
and being fed with pointer to size_t, which may amount to different
data-width types. There's also a simple overflow check for such
cases now.
Signed-off-by: Jan Pokorný <jpokorny@fedoraproject.org>
2018-11-06 01:35:06 +01:00
meak
7d2f5aca85
fix: header function rename
...
cairo_image_surface...jpeg_mem to cairo_surface...jpeg_mem
2018-07-28 09:50:18 +02:00
meak
879a2c88b0
refactor: cairo_jpg
...
style cairo_jpg
rename cairo_image_surface_* to cairo_surface_*
remove comments
2018-07-28 01:16:46 +02:00
meak
f576fc4b1d
wip(jpeg): add cairo_jpg from https://github.com/rahra/cairo_jpg
2018-07-27 12:03:08 +02:00
emersion
8480e3ebdb
Add support for wlr-screencopy-unstable-v1
...
Fixes #13
2018-07-13 19:25:56 +01:00
emersion
4b0041bf03
Split rendering and output layout functions in separate files
2018-05-18 09:16:59 +01:00
emersion
0f29f30164
Only screenshot outputs we're interested in
...
Fixes #7
2018-05-18 08:54:33 +01:00
emersion
69b7dc35a8
Add -g and -o
...
Fixes #3
Fixes #5
2018-05-17 23:17:47 +01:00
emersion
9cf56c106f
Add HiDPI support for output image
2018-05-13 17:26:51 +01:00
emersion
d4648e804f
First commit
2018-05-11 22:26:31 +01:00