Commit graph

72 commits

Author SHA1 Message Date
f17539ac14 Minor fix: un/signed int comparison warning 2024-03-07 16:28:17 +09:00
d551c9da3b Fix use of deprecated OpenCL function
Also specify use of OpenCL 3.0 instead of depending on default.
2024-03-07 16:25:46 +09:00
1d27fd3b21 Fix usage of deprecated AVFrame::pkt_duration
Uses a macro to check FFMpeg version before setting AVFrame::duration or
AVFrame::pkt_duration.
2024-03-07 16:25:31 +09:00
2e03098540 Fix uninit. flag: videos outputted pngs sometimes 2023-05-28 21:46:57 +09:00
1c3554b3ca Update LICENSE year 2023-05-23 22:54:32 +09:00
c1c271b77e Support multiple OpenCL platforms
Previously, the code only checked the first OpenCL platform and failed
if thet platform didn't have any devices.
2023-05-23 22:51:08 +09:00
379fb4cadf Update year in LICENSE 2022-02-18 15:26:32 +09:00
d429cf44ff
Update README.md 2022-02-18 15:25:53 +09:00
41c291f51c Apply fixes based on FFmpeg 5.0
See README.md for more details
2022-02-18 15:24:31 +09:00
2f62762ea7 Set up for more strict version checking of FFmpeg 2022-01-18 12:35:08 +09:00
156b4498c9 Set maximum required versions of ffmpeg dependency 2022-01-18 11:59:43 +09:00
b693dc6e84 Update README.md 2022-01-18 11:55:19 +09:00
c036138fca Update README.md 2022-01-18 11:54:37 +09:00
feba100e67 Update README.md 2022-01-18 11:51:53 +09:00
134fc1e7ee
Update README.md 2021-12-12 16:15:51 +09:00
e8e444b0dd
Update README.md 2021-12-12 15:53:36 +09:00
7a1e250ea3 Minor fix to Help/Usage text 2021-12-10 16:08:47 +09:00
dcf854e16a
Update README.md 2021-12-10 15:49:14 +09:00
0c3fc03da7 Remove unnecessary include 2021-12-07 16:49:09 +09:00
ab6bd428c4 Impl better handling of input video fps 2021-12-06 17:02:09 +09:00
cac72a0cdf Fix memory leak with AVPacket, OpenCL logs 2021-12-06 15:51:49 +09:00
efe6b4ff18 Fix potential memory leak (free AVFrame instance) 2021-12-06 15:24:02 +09:00
926269198e Fix --video-pngs where last frame may not be used 2021-12-06 15:20:06 +09:00
db2d75de06 More tweaking of encoding params for video
Also tweaked the notes/docs about resulting encoded video output.
2021-12-05 20:16:55 +09:00
ddeac3201c Tweak encoding params for better quality video 2021-12-05 19:54:13 +09:00
9558ee2bd6 Update README.md 2021-12-04 20:09:55 +09:00
a4d7156e10 Fix Image::ColorToGray()
Previous implementation had images brighter than usual. The algorithm
used was probably not necessary as it was for converting from
linear-space to a different one.
2021-12-04 11:40:24 +09:00
750e0d07bb Minor efficiency fix/refactoring 2021-12-04 09:59:18 +09:00
f9970025c1 Update README.md 2021-12-03 20:15:02 +09:00
788ce5e490 Impl output to video, update program args
Turns out output to video suffers from loss of quality problems when in
color (not grayscale). It may be better in some cases to just output
each frame as a png and combining them later with ffmpeg like how it is
mentioned here: https://trac.ffmpeg.org/wiki/Slideshow . Grayscale video
is noticably better, but both cases result in large video sizes, so care
may be needed if free disk-space is sparse.
2021-12-03 20:09:56 +09:00
8191a51d9b Minor fixes 2021-12-02 22:01:26 +09:00
cd9c363a48 Minor doc fixes, disable copy, allow move on Video 2021-12-02 13:22:11 +09:00
290ed90f96 Minor fix to documentation 2021-12-01 21:35:05 +09:00
de1b0cc2ac Minor fix regarding blue-noise-offsets 2021-12-01 18:13:21 +09:00
6e27c41f43 Update README.md 2021-12-01 17:41:49 +09:00
46555ce85a Add another generated blue-noise image to res/ 2021-12-01 17:38:34 +09:00
12c7921d63 Add to README.md note about supported file formats 2021-12-01 17:36:46 +09:00
0fc796e582 Update README.md 2021-12-01 17:33:28 +09:00
07d931126f Add arg parsing 2021-12-01 17:31:51 +09:00
af7b28f794 Add comment about video.h 2021-12-01 16:55:17 +09:00
b5cf224935
Update README.md 2021-12-01 16:51:28 +09:00
be976b8ee7
Update README.md 2021-12-01 16:50:11 +09:00
491b8bc531
Create LICENSE 2021-12-01 16:48:26 +09:00
fa7b5a110a Add some comments to video.h 2021-12-01 16:31:56 +09:00
f9e87adcd3 Merge branch 'master' into develop
The merged code has support for decoding video into dithered images.
2021-12-01 16:23:48 +09:00
ce853fa54e Update README.md 2021-12-01 16:16:33 +09:00
6efb6e98cd Merge branch 'master' into develop 2021-12-01 16:13:55 +09:00
56dfb9f8e5 Add README.md 2021-12-01 16:13:34 +09:00
6e5eaac63d Refactoring of opencl_handle and image for reuse
Refactoring was done so that the OpenCL kernels wouldn't need to be
recompiled every time an image was dithered, among other efficiency
fixes.
2021-12-01 16:04:05 +09:00
11f48592bf Impl convert video frames to color dithered pngs 2021-11-30 16:02:51 +09:00