Dmitrij D. Czarkoff
d000d3d464
Read file list from standard input continuosly
...
This reduces delay before initial draw in case of slow input, opening
possibilities for use cases like:
$ curl -Osw "%{filename_effective}\n" "http://www.example.com/[1-10].jpg "
which will download all images and start showing them once first arrives.
2016-03-06 03:24:05 +01:00
Harry Jeffery
809aa390bf
Merge pull request #82 from czarkoff/exif
...
Use Exif rotation for JPEG images
2016-02-25 10:46:21 +00:00
Dmitrij D. Czarkoff
66de2c49e5
Remove duplicated "-g" flag
2016-02-25 01:27:22 +01:00
Dmitrij D. Czarkoff
24f8b8a2c4
Honour EXIF orientation tag
2016-02-21 14:57:32 +01:00
Dmitrij D. Czarkoff
9cdab1b173
Add test to check for EXIF rotation of JPEG images
2016-02-21 16:35:36 +01:00
Dmitrij D. Czarkoff
b4dfe40a57
Fix "check" target
...
for i in "..."; do ...; done ideom guarantees single iteration with $i set to
everything between "in" and ';'.
2016-02-21 15:03:21 +01:00
Dmitrij D. Czarkoff
1efd760b8d
Force "-g" flag for tests
2016-02-21 15:07:13 +01:00
Harry Jeffery
bc90a0adcc
Release imv v2.0.0
2016-02-08 11:02:29 +00:00
Harry Jeffery
b7e12de490
Remove tabs
2016-02-08 10:46:41 +00:00
Harry Jeffery
36569715f1
Fix #78
...
If the gif disposal method is unspecified, default to compositing
instead of full disposal.
2016-02-08 10:43:56 +00:00
Harry Jeffery
7e1e553ba9
Fix bug in slideshow timing
2016-01-24 23:04:52 +00:00
Harry Jeffery
81049b6c5f
Fix memory leak in imv_navigator_destroy
2016-01-17 12:07:34 +00:00
Harry Jeffery
60a1969818
Merge pull request #79 from czarkoff/no_upscaling
...
Add third scaling mode: best fit
2016-01-16 16:51:56 +00:00
Dmitrij D. Czarkoff
1013c0cd8b
Add third scaling mode: best fit
...
* Add new switches: "-S" to force (default) "perfect fit" mode and "-s" to force
"best fit" mode.
* Add new control key: "s" to switch scaling mode.
2016-01-16 02:54:31 +01:00
Harry Jeffery
c92edff1d0
Provide some feedback to users when no arguments are given
2016-01-16 00:38:31 +00:00
Harry Jeffery
928a32a171
Trim usage information for -h
2016-01-16 00:34:25 +00:00
Harry Jeffery
58fe28b650
Merge pull request #76 from czarkoff/loader
...
Loading image data from standard input
2016-01-15 16:16:10 +00:00
Dmitrij D. Czarkoff
1ae8a7fe60
Note new syntax in README.md
2016-01-14 21:43:46 +01:00
Dmitrij D. Czarkoff
ecca345f3e
Loading image data from standard input
...
This commit changes processing of arguments:
* When called without arguments (with or without flags), imv reads list of files
from standard input.
* When called with "-" among arguments, read image data from standard input.
2016-01-14 21:43:36 +01:00
Dmitrij D. Czarkoff
de41f9854e
Use PATH_MAX for buffers holding paths
2016-01-13 20:49:48 +01:00
Dmitrij D. Czarkoff
1665390ee9
Sort static functions
2016-01-13 20:49:48 +01:00
Dmitrij D. Czarkoff
9ca6a56de3
Declare static functions above all code
2016-01-13 20:49:48 +01:00
Dmitrij D. Czarkoff
f18c264124
Remove "imv_loader_" prefix from static functions
2016-01-13 20:49:48 +01:00
Dmitrij D. Czarkoff
46df9ae5d8
In 'void *' functions return NULL instead of 0
2016-01-13 20:49:48 +01:00
Harry Jeffery
efa33ab844
Fix strict build on GCC
2016-01-13 16:16:33 +00:00
Harry Jeffery
f18e65c248
Merge pull request #74 from czarkoff/master
...
Add Travis CI support
2016-01-13 01:54:14 +00:00
Dmitrij D. Czarkoff
ddcfe3341a
Gather status of eXeC64/imv in Travis indicator
2016-01-13 02:20:02 +01:00
Dmitrij D. Czarkoff
50c95ac9dd
Add explicit CFLAGS to .travis.yml
...
Include "-Werror" among flags, so that it is easier to catch compiler warnings.
2016-01-12 22:39:50 +01:00
Dmitrij D. Czarkoff
c70995a724
Add Travis CI support
...
Unfortunately, Travis only wants to use Ubuntu LTS releases, so at least until
next Ubuntu LTS release we are stuck with ancient cmocka version. So no
automated testing yet.
2016-01-09 17:55:13 +01:00
Harry Jeffery
3036f56bc6
Merge pull request #73 from czarkoff/test
...
Test
2016-01-07 22:02:49 +00:00
Dmitrij D. Czarkoff
83e7ad5222
Add test for file change detection
2016-01-06 02:52:06 +01:00
Dmitrij D. Czarkoff
16cccb11b1
Fix navigator_add test
...
It was not fixed after imv_navigator_poll_changed() function was changed.
2016-01-06 02:52:06 +01:00
Harry Jeffery
35cabe381d
Merge pull request #72 from czarkoff/timeouts
...
Timeouts
2016-01-01 11:47:32 +00:00
Dmitrij D. Czarkoff
47b702afc8
Include <limits.h>
2016-01-01 12:28:14 +01:00
Dmitrij D. Czarkoff
1ca3d027de
Reduce amount of stat(2) calls
...
Add 8-bit variable that is passed to imv_navigator_poll_changed(). Decrement it
on each run of main loop. When it gets to 0, call stat(2).
2015-12-30 17:44:48 +01:00
Dmitrij D. Czarkoff
c61a0a90db
Allow fractional slideshow timeout
...
Accept slideshow timeout expressed as fractional numbers. It is intentionally
lax, so that arguments like ".1" or "5." are accepted and give no surprises.
2015-12-30 15:48:03 +01:00
Harry Jeffery
aa486c8df0
Merge pull request #71 from czarkoff/mandoc
...
Rewrite manual page using mdoc(7) markup language
2015-12-30 11:24:57 +00:00
Dmitrij D. Czarkoff
775b8ea73f
Fix several issues with manual
2015-12-30 10:47:21 +01:00
Dmitrij D. Czarkoff
a1455d9523
Rewrite manual page using mdoc(7) markup language
2015-12-29 23:32:26 +01:00
Harry Jeffery
8d9a91afca
Merge pull request #70 from czarkoff/general
...
Hide functions that are not exposed via headers
2015-12-28 23:21:53 +00:00
Dmitrij D. Czarkoff
a160a82b91
Add -Wmissing-prototypes to default CFLAGS
2015-12-28 23:15:30 +01:00
Dmitrij D. Czarkoff
fe46955421
Hide functions that are not exposed via headers
2015-12-28 21:22:31 +01:00
Harry Jeffery
287b549ce0
Remove names from file copyright headers
2015-12-28 16:17:50 +00:00
Harry Jeffery
4f31c89351
Add AUTHORS file
2015-12-28 16:17:21 +00:00
Harry Jeffery
433d8195a7
Merge pull request #68 from czarkoff/reload
...
Use stat(2) to monitor file changes
2015-12-28 13:40:35 +00:00
Dmitrij D. Czarkoff
a70919c9ca
Add checks for malloc(3)
...
Exit(3) if memory allocation fails.
2015-12-28 11:59:52 +01:00
Dmitrij D. Czarkoff
c6096967e3
Use stat(2) to monitor file changes
...
Makes file monitoring in imv completely POSIX.
2015-12-28 11:49:52 +01:00
Dmitrij D. Czarkoff
d0b041f17c
Use realloc(3) for extending buffer
...
It may save some CPU cycles if there is enough space to grow the array without
copying memory chunks. Two side effects of the change: proper error checking
added and dangerous memcpy(3) call removed.
2015-12-28 11:07:41 +01:00
Harry Jeffery
f4373a1f83
Merge pull request #66 from czarkoff/master
...
Drop `obj` target
2015-12-27 15:05:49 +00:00
Dmitrij D. Czarkoff
96bd50edc9
Drop "obj" target
...
It was introduced to make object files depend on $(BUILDDIR) so that creating it
could be moved into separate rule, executed once. That was a bad idea, because
"obj" had to be phony, thus making all targets that depend on it obsolete
between runs of make. This change introduces order-only rule that makes object
files depend on $(BUILDDIR) without obsoleting other targets.
2015-12-27 12:33:38 +01:00