Commit Graph

1359 Commits

Author SHA1 Message Date
Kovid Goyal
ead73c8209 Prepare for two stage rendering of cells 2017-10-04 14:15:51 +05:30
Kovid Goyal
b032130a20 A spot of refactoring 2017-10-04 10:56:44 +05:30
Kovid Goyal
c5837d4577 More work on the iamge cat utility. Make it useable as a standalone script 2017-10-04 10:22:31 +05:30
Kovid Goyal
1a8d9314fe Fix transmission of chunked compressed data 2017-10-04 10:19:25 +05:30
Kovid Goyal
9ccf9636ce Allow running icat script outside of kitty 2017-10-03 21:37:55 +05:30
Kovid Goyal
e56042c41a Graceful handling of errors from rsvg-convert 2017-10-03 21:31:47 +05:30
Kovid Goyal
72626279c2 Start work on image cat utility 2017-10-03 21:31:42 +05:30
Kovid Goyal
acc43ce9dc Handle T action with chunked transfer correctly 2017-10-03 20:34:48 +05:30
Kovid Goyal
c87dcdbe3c Tests for displaying graphics 2017-10-03 16:10:04 +05:30
Kovid Goyal
aec1612de2 API to enable image placement tests
Also fix cursor movement handling after graphics command
2017-10-02 10:35:51 +05:30
Kovid Goyal
7c488888a0 more work on displaying graphics 2017-10-01 20:17:48 +05:30
Kovid Goyal
6d960e4130 ... 2017-10-01 09:12:14 +05:30
Kovid Goyal
3cbc20005b Implement sending of image data to GPU 2017-10-01 09:04:46 +05:30
Kovid Goyal
e2a8115328 ... 2017-09-30 18:36:25 +05:30
Kovid Goyal
28ae99ed37 More work on displaying images 2017-09-30 14:46:17 +05:30
Kovid Goyal
e5898ad4b0 More work on displaying images 2017-09-30 13:51:52 +05:30
Kovid Goyal
b722bc809c More work on displaying images 2017-09-30 13:51:52 +05:30
Kovid Goyal
710d00674a Export the free texture function 2017-09-30 13:51:52 +05:30
Kovid Goyal
9078ca975e A spot of refactoring 2017-09-30 13:51:52 +05:30
Kovid Goyal
4f98d10caa Remove the requirement to specify sizes for PNG files 2017-09-30 13:51:52 +05:30
Kovid Goyal
9e5dbb45d4 Move the graphics protocol documentation to a separate file 2017-09-30 13:51:52 +05:30
Kovid Goyal
5e5065715e ... 2017-09-30 13:51:52 +05:30
Kovid Goyal
8be7679a38 grrr 2017-09-30 13:51:52 +05:30
Kovid Goyal
6297c9a719 ... 2017-09-30 13:51:52 +05:30
Kovid Goyal
933621b038 Better libpng error handling 2017-09-30 13:51:51 +05:30
Kovid Goyal
c31e608ff9 Tests for loading PNG images 2017-09-30 13:51:51 +05:30
Kovid Goyal
671bcafee5 Dont carry the fd around 2017-09-30 13:51:51 +05:30
Kovid Goyal
c01f009e42 Remove sz requirement and implement proper fix for failure to mmap shm objects on OS X. Apparently they have to be mapped shared. 2017-09-30 13:51:51 +05:30
Kovid Goyal
dbd7ec5b27 Allow specifying the offset and size for reading data from files
Also require size to be specified for SHM objects to support platforms
such as macOS that have no way to get the size from the fd.
2017-09-30 13:51:51 +05:30
Kovid Goyal
898136dbdc Free the mapped file early if possible 2017-09-30 13:51:51 +05:30
Kovid Goyal
ef91f9dc8f Use fstat to get SHM file size instead of seeking 2017-09-30 13:51:51 +05:30
Kovid Goyal
bfd7675639 ... 2017-09-30 13:51:51 +05:30
Kovid Goyal
b644d4620a OS X does not support write() with shared memory 2017-09-30 13:51:51 +05:30
Kovid Goyal
03dd6e0490 Test for image loading from shared memory 2017-09-30 13:51:50 +05:30
Kovid Goyal
dfca991173 Test for loading image data from file 2017-09-30 13:51:50 +05:30
Kovid Goyal
13c4c605b3 Prevent loading of too large PNG images 2017-09-30 13:51:50 +05:30
Kovid Goyal
8e5c4b6f7a Require data size to be sent for PNG format 2017-09-30 13:51:50 +05:30
Kovid Goyal
d0d769f26b Test for zlib de-compression 2017-09-30 13:51:50 +05:30
Kovid Goyal
558b208edd Fix compressed key not being parsed 2017-09-30 13:51:50 +05:30
Kovid Goyal
35acb1497a Fix chunked loading of images 2017-09-30 13:51:50 +05:30
Kovid Goyal
8cd1f76d2b Framework for testing loading of images 2017-09-30 13:51:50 +05:30
Kovid Goyal
f0ee728b94 Fix failing flake 2017-09-30 13:51:50 +05:30
Kovid Goyal
b4a96428f3 DRYer 2017-09-30 13:51:50 +05:30
Kovid Goyal
7d6d8efc26 ... 2017-09-30 13:51:49 +05:30
Kovid Goyal
f3ee3784f7 Fix longjmp handling when calling libpng 2017-09-30 13:51:49 +05:30
Kovid Goyal
7da08d37d2 File to host graphics tests 2017-09-30 13:51:49 +05:30
Kovid Goyal
23c2bdb6f0 Dont silently wrap too large ids, instead ignore the graphics command 2017-09-30 13:51:49 +05:30
Kovid Goyal
7736629bc4 Fix graphics id not going upto UINT32_MAX 2017-09-30 13:51:49 +05:30
Kovid Goyal
204bd97198 Nicer error responses on bad graphics data 2017-09-30 13:51:49 +05:30
Kovid Goyal
2786976c63 ... 2017-09-30 13:51:49 +05:30