Commit graph

84 commits

Author SHA1 Message Date
f6e482ce15 Rename 2023-07-03 15:11:23 +00:00
9590520a78 Fork and change module 2023-06-21 22:15:23 +00:00
Rohan Singh
1fabc3b466
Fix memory leak in animation encoding (#1)
We were never freeing the buffer that holds the assembled WebP
animation.

Instead, copy the buffer into Go and free it right after assembly.
2022-08-02 18:19:33 -04:00
Rohan Singh
6042ce446e
README: Credit original upstream 2022-03-02 10:45:36 -05:00
Rohan Singh
dd1cead28d Fork and add module
The upstream harukasan/go-libwebp hasn't been updated in almost three
years, so we're officially forking this into tidbyt/go-libwebp and
making it a Go module.
2022-03-01 22:33:50 -05:00
Rohan Singh
7718986fb5 Add support for decoding an animated WebP
The initial implementation doesn't fully expose `WebPAnimDecoderOptions`.
2020-10-15 13:37:51 -04:00
Rohan Singh
98c7c251dd Drop libwebp 0.4 support 2020-09-18 10:29:16 -04:00
Rohan Singh
fb5d8a6b3d Add documentation and tests for animation 2020-09-18 10:01:55 -04:00
Rohan Singh
7430f2cbfa Fix animation timing
The timing of the final animation frame wasn't being recorded correctly.
2020-02-24 15:50:34 -05:00
Rohan Singh
1c4bc9fe39 Add support for creating an animated WebP
This initial implementation doesn't fully expose the `WebPAnimEncoderOptions`.
It also still needs some unit tests and examples.
2020-01-13 14:27:58 -05:00
Michii Shunsuke
68562c9c99
Merge pull request #22 from e-conomic/master
Fix typo in Config.SetLossless()
2019-07-03 15:09:27 +09:00
Michii Shunsuke
810c283197
Merge pull request #23 from unak/fix/lossless
Need to initialize not only lossless preset but also normal preset
2019-07-03 15:08:48 +09:00
NAKAMURA Usaku
e639517b57 Need to initialize not only lossless preset but also normal preset 2019-07-02 12:27:55 +09:00
Hans Viken Duedal
d2032b00c9 Fix typo in Config.SetLossless() 2019-04-04 10:39:37 +02:00
Shunsuke Michii
de5a25c05e Merge pull request #19 from harukasan/feature/upgrade_travis_env
Upgrade CI environment.
2017-07-13 15:07:18 +09:00
Shunsuke Michii
114b4a2588 Merge pull request #20 from yoya/master
fix condition (picture->colorspace == WEBP_YUV420A)
2017-07-13 15:07:04 +09:00
Yoshihiro Yamazaki
4dbcceca01 fix condition (picture->colorspace == WEBP_YUV420A) 2017-04-21 17:51:25 +09:00
Shunsuke Michii
509a62cdda Merge pull request #18 from harukasan/fix/go_pointer_checks
Fix to adopt cgo pointer rules in EncodeYUVA and EncodeGray.
2017-03-29 18:18:43 +09:00
Shunsuke Michii
86e7ee25aa Upgrade CI environment.
- remove Go 1.4 and 1.5
  - add Go 1.7 and 1.8
2017-03-29 18:08:59 +09:00
Shunsuke Michii
8a2921d35f Fix to adopt cgo pointer rules in EncodeYUVA and EncodeGray.
This changes will fix these errors:

- "cgo argument has Go pointer to Go pointer" in EncodeYUVA
- "Go pointer stored into non-Go memory" in EncodeYUVA and EncodeGray
2017-03-29 18:01:06 +09:00
Shunsuke Michii
8e7242c458 Merge pull request #16 from saturday06/fix/avoid_false_pointer_dealloc_go1.8
Avoid false pointer deallocation in Go 1.8
2017-03-29 14:17:14 +09:00
Isamu Mogi
f5dd7f7ed3 Avoid false pointer deallocation in Go 1.8
See https://github.com/golang/go/issues/19135#issuecomment-280560041
2017-03-15 16:47:23 +09:00
Shunsuke Michii
e05d69dcb5 Merge pull request #15 from harukasan/fix/param_method
Fix method parameter type.
2016-10-16 01:27:38 +09:00
Shunsuke Michii
6df432145c Fix method parameter type. 2016-10-14 20:36:12 +09:00
Shunsuke Michii
1b70081941 Merge pull request #14 from harukasan/fix/alpha_quality
Add AlphaQuality parameter to Config.
2016-09-02 13:16:22 +09:00
Shunsuke Michii
249daa0280 Add AlphaQuality parameter to Config. 2016-09-02 12:54:53 +09:00
Shunsuke Michii
1291ea2ac7 Merge pull request #13 from harukasan/feature/docker
Make enable to test on docker.
2016-08-02 16:02:19 +09:00
Shunsuke Michii
24cf2659f0 Use libwebp version as docker tag. 2016-08-02 15:46:21 +09:00
Shunsuke Michii
14284277bc Add libwebp 0.5.1 to test env. 2016-08-01 20:39:56 +09:00
Shunsuke Michii
3442b49af7 Fix typo. 2016-08-01 20:37:24 +09:00
Shunsuke Michii
d6d718df83 Update libwebp version to 0.5.1. 2016-08-01 20:36:45 +09:00
Shunsuke Michii
ab01b3f166 Update .PHONY list. 2016-08-01 20:33:00 +09:00
Shunsuke Michii
6874fb1fcc Add clean task for docker. 2016-08-01 20:01:51 +09:00
Shunsuke Michii
21bb24f6c1 format 2016-08-01 20:00:33 +09:00
Shunsuke Michii
caba001de3 Make to use dependencies and variables. 2016-08-01 19:52:23 +09:00
Shunsuke Michii
ad17bf0e32 Add docker tasks. 2016-08-01 19:29:13 +09:00
Shunsuke Michii
5a45e720fb Fix .travis.yml. 2016-06-30 20:11:54 +09:00
Shunsuke Michii
781d9ffa9c Add Dockerfile. 2016-06-30 20:06:41 +09:00
Shunsuke Michii
ebe49d470c Add Makefile. 2016-06-30 20:06:26 +09:00
Shunsuke Michii
b6fdea0f69 Merge pull request #10 from harukasan/feature/importGray
Add support encoding image.Gray.
2016-06-29 21:47:44 +09:00
Shunsuke Michii
0e5bb2d99a Add const keyword to arguments. 2016-06-29 21:24:39 +09:00
Shunsuke Michii
805c26f53f Merge pull request #12 from harukasan/travis
Make faster CI.
2016-06-29 19:45:39 +09:00
Shunsuke Michii
3139fc4b4f Make faster Travis. 2016-06-29 19:35:46 +09:00
Shunsuke Michii
3a78b3d0d3 Impl EncodeGray. 2016-06-29 18:12:39 +09:00
Shunsuke Michii
00f04ef2a9 Merge pull request #9 from harukasan/feature/config
Modify config to support all encoding options.
2016-06-29 18:06:42 +09:00
Shunsuke Michii
bbce08acb6 Add support for libwebp version 4. 2016-06-29 09:43:37 +09:00
Shunsuke Michii
1743f9ad8e Merge pull request #11 from harukasan/fix/readme
Fix readme to specify git branch parameter of travis badge.
2016-06-28 16:58:35 +09:00
Shunsuke Michii
6608fdcc01 Update examples. 2016-06-28 16:49:57 +09:00
Shunsuke Michii
fff8a5bbce Support all encoding options. 2016-06-28 16:49:21 +09:00
Shunsuke Michii
b54cbd7f6d Remove cover.out. 2016-06-28 16:37:37 +09:00