summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge "PaletteSortModifiedZeng: fix leak on error" into 1.2.41.2.4James Zern2023-03-011-0/+1
|\
| * PaletteSortModifiedZeng: fix leak on errorJames Zern2023-03-011-0/+1
| | | | | | | | | | Change-Id: I462bd9a3bc4670efdf251c295f6771a38c08a6ce (cherry picked from commit 0edbb6ea7176eca19955be701178fa70ecb497ee)
* | EncodeAlphaInternal: clear result->bw on errorJames Zern2023-03-011-1/+3
|/ | | | | | | | | | | | | | | | | | This avoids a double free should the function fail prior to VP8BitWriterInit() and a previous trial result's buffer carried over. Previously in ApplyFiltersAndEncode() trial.bw (with a previous iteration's buffer) would be freed, followed by best.bw pointing to the same buffer. Since: 187d379d add a fallback to ALPHA_NO_COMPRESSION In addition, check the return value of VP8BitWriterInit() in this function. Bug: webp:603 Change-Id: Ic258381ee26c8c16bc211d157c8153831c8c6910 (cherry picked from commit a486d800b60d0af4cc0836bf7ed8f21e12974129)
* WebPConfig.cmake.in: add find_dependency(Threads)James Zern2023-02-281-0/+5
| | | | | | | | | | | | | | | | | | | | | | when WEBP_USE_THREAD=1; this is necessary after: 0d1b9bc4 WEBP_DEP_LIBRARIES: use Threads::Threads fixes: CMake Error at WebPTargets.cmake:76 (set_target_properties): The link interface of target "WebP::webp" contains: Threads::Threads but the target was not found. Possible reasons include: * There is a typo in the target name. * A find_package call is missing for an IMPORTED target. * An ALIAS target is missing. Bug: webp:583 Change-Id: I19633bcceccacb95be06aa9610512127f3c288a6 Fixed: webp:583 (cherry picked from commit 5dbc4bfa1b6a6f3b4cc27c99a9e77fc7baa5677c)
* update ChangeLogv1.2.4James Zern2022-08-051-0/+6
| | | | Change-Id: Ie649805f89f4b483c70462d1aafef01e4dff7bc2
* update NEWSJames Zern2022-08-041-0/+6
| | | | | Bug: webp:579 Change-Id: I5cc91d6711a1b2feb3dd2d0cd13befee881fe85a
* bump version to 1.2.4James Zern2022-08-0414-27/+27
| | | | | | | | | | | | | | | libwebp{,decoder} - 1.2.4 libwebp libtool - 8.5.1 libwebpdecoder libtool - 4.5.1 mux - 1.2.4 libtool - 3.10.0 demux - 1.2.4 libtool - 2.11.0 Bug: webp:579 Change-Id: I5fae4184ac6fe4b9c719856080020fd107f18b7f
* lossless: fix crunch mode w/WEBP_REDUCE_SIZE1.2.3James Zern2022-08-031-19/+6
| | | | | | | | | | | | | | | | | | | | | | | | WEBP_REDUCE_SIZE was introduced to bring down the library size by removing cropping and scaling support. Previously WebPPictureView() was only used with these two, but in ec178f2c Add progress hook granularity in lossless an additional use was added in VP8LEncodeStream() when extra side configurations are used in crunch mode (-mt, quality == 100 & method == 6 or quality >= 75 & method == 5 with a palette present currently). WebPPictureView() and, for coherency, WebPPictureIsView() are restored in this configuration to avoid affecting the general encode path. Previously WebPPictureView() was assumed to always succeed in these cases which could result in crashes with WEBP_REDUCE_SIZE defined. Bug: chromium:1345547 Bug: chromium:1345595 Bug: chromium:1345772 Bug: chromium:1345804 Change-Id: Ifecde36a726a434510478a764514b1469942c684 (cherry picked from commit 84163d9d027e4acc51120f3136d251f8e8ee0acd)
* CMakeLists.txt: correct libwebpmux name in WebPConfig.cmakeJames Zern2022-07-211-0/+4
| | | | | | | | | | | | | this fixes link errors when using ${WEBP_LIBRARIES} from WebPConfig.cmake: /usr/bin/ld: cannot find -llibwebpmux: No such file or directory /usr/bin/ld: note to link with /tmp/install/lib/libwebpmux.a use -l:libwebpmux.a or rename it to liblibwebpmux.a previously mentioned in https://github.com/openwrt/packages/pull/16784 Bug: webp:575 Change-Id: I38b45cb102ef1086ed992178cd736f45acf10d35
* Revert "cmake: fix webpmux lib name for cmake linking"James Zern2022-07-211-14/+13
| | | | | | | | | | | | This reverts commit 13b8281609113c4904877e637d4e8a775d8150bc. This breaks target name compatibility with earlier releases. Conflicts: CMakeLists.txt Bug: webp:575 Change-Id: I3d4895b8a8d14b3f4595ec19646ec4a1001c7748
* update ChangeLogv1.2.3James Zern2022-07-151-0/+2
| | | | Change-Id: I6c00a2c32e94d886f749fc09e2bdd71acfeb5402
* dsp/cpu.h: add missing extern "C"James Zern2022-07-081-0/+9
| | | | | | fixes linking of tests/fuzzer/animencoder_fuzzer on windows Change-Id: I0bd14b0e8c7ecb261e861689c25cd4b7fdaecbfd
* update ChangeLogv1.2.3-rc1James Zern2022-07-071-2/+118
| | | | | Bug: webp:568 Change-Id: Icdb0657f9d19ba85e6235c6ce9577afa23e0ce21
* Merge changes Idb037953,Id582e395 into 1.2.3James Zern2022-07-072-2/+15
|\ | | | | | | | | | | * changes: vwebp: fix file name display in windows unicode build webpmux: fix -frame option in windows unicode build
| * vwebp: fix file name display in windows unicode buildJames Zern2022-07-051-1/+14
| | | | | | | | | | | | | | | | | | | | glutBitmapCharacter() isn't limited to 8-bit characters; add PrintStringW() to iterate through the file name. This may not fix all cases, non-existent characters in the font used have no effect. https://www.opengl.org/resources/libraries/glut/spec3/node76.html#SECTION000111000000000000000 Change-Id: Idb0379539d556a89ec694127f766eb662f09d597
| * webpmux: fix -frame option in windows unicode buildJames Zern2022-07-051-1/+1
| | | | | | | | | | | | -frame takes a file name parameter, use wargv[] like in other paths Change-Id: Id582e395d3ff9b00bb7fcc0261b475211758f6d4
* | makefile.unix: add sharpyuv objects to clean targetJames Zern2022-07-051-0/+1
|/ | | | Change-Id: Iad9ac2530bd892681c055e5ae1bf82eb8782d2a2
* update NEWSJames Zern2022-06-301-0/+8
| | | | | Bug: webp:568 Change-Id: I0986c33910eba862ef6c1676d7dc58ea6df7ba3b
* bump version to 1.2.3James Zern2022-06-3014-31/+31
| | | | | | | | | | | | | | | libwebp{,decoder} - 1.2.3 libwebp libtool - 8.4.1 libwebpdecoder libtool - 4.4.1 mux - 1.2.3 libtool - 3.4.0 demux - 1.2.3 libtool - 2.10.0 Bug: webp:568 Change-Id: I943bae1b7eacb445f6a4e13123e63170ac8bb142
* update AUTHORSJames Zern2022-06-301-0/+4
| | | | | Bug: webp:568 Change-Id: I333e9679d1d9a9c33f94e214b7ab1723e063fe51
* update .mailmapJames Zern2022-06-301-0/+2
| | | | | Bug: webp:568 Change-Id: I34df01bf958ef9de87345e5e43034fafd185f42a
* Merge "unicode.h: set console mode before using wprintf" into mainJames Zern2022-07-011-3/+17
|\
| * unicode.h: set console mode before using wprintfJames Zern2022-06-291-3/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes incorrect character display in the file name in e.g., stats output from cwebp.exe in visual studio builds. In mingw further changes will be needed as using %s in wfprintf() for wchar_t pointers is a Microsoft extension that doesn't seem to be supported with gcc -fms-extensions. %ls works, but will require updating format strings and wrapping concatenations with TO_W_CHAR() as visual studio will reject merging string constants of different width. https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/setmode Change-Id: I57d24c3815f7b5aa3971ac315c65c4458258d706
* | Merge "libsharpyuv: add version defines" into mainMaryla Ustarroz-Calonge2022-06-281-0/+12
|\ \ | |/ |/|
| * libsharpyuv: add version definesMaryla2022-06-281-0/+12
| | | | | | | | Change-Id: I2dbe69d1ce5abaf7f5bd83daec99655520b5abad
* | unicode_gif.h: fix -Wdeclaration-after-statementJames Zern2022-06-201-8/+9
|/ | | | | | | | | when building for windows with _UNICODE defined unicode_gif.h|49 col 3| warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] Change-Id: Ib9f0cc0eba036d6cd4221a4f70a078770dde01d0
* Rename Huffman coding to prefix coding in the bitstream specJyrki Alakuijala2022-06-161-89/+89
| | | | | | | | ... since no guarantee of Huffman coding can be introduced at decoding time and encoding didn't actually use Huffman coding in the first place Bug: webp:551 Change-Id: I400466bb3b4a1d5506353eb3f287d658603164ee
* Merge "run_static_analysis.sh: fix scan-build archive path" into mainJames Zern2022-06-161-2/+2
|\
| * run_static_analysis.sh: fix scan-build archive pathJames Zern2022-06-131-2/+2
| | | | | | | | | | | | | | move any error reports to the top-level of OUTPUT_DIR rather than BUILD_DIR Change-Id: Icb6677c42a89ef86d9d295a27b79a8a591672b87
* | Merge "Add -fvisibility=hidden flag in CMakeLists." into mainMaryla Ustarroz-Calonge2022-06-161-2/+11
|\ \
| * | Add -fvisibility=hidden flag in CMakeLists.Maryla2022-06-151-2/+11
| |/ | | | | | | | | | | | | | | This way, only functions marked with WEBP_EXTERN get exposed by the library. This flag is already set in other build configs: configure.ac, makefile.unix, Android.mk Change-Id: Iafd8f160e539290e7ea46ceec764a090c6e626a9
* | Merge "add WEBP_MSAN" into mainJames Zern2022-06-162-0/+15
|\ \
| * | add WEBP_MSANJames Zern2022-06-142-0/+15
| |/ | | | | | | | | | | | | | | | | | | | | | | and use it to suppress a false positive related to data that passes through RGBA32PackedToPlanar_16b_SSE41(). Current versions (tested with clang 13.0.1, using -O0 and the build from oss-fuzz of enc_dec_fuzzer) model shuffles incorrectly reporting use of uninitialized data related to the alpha change that's removed when converting to YUV. valgrind behaves correctly, however. Bug: webp:573 Change-Id: If76997668dcdd436adf280a2e6dcffba766a2875
* | sharpyuv: remove minimum image size from sharpyuv libraryMaryla2022-06-141-4/+5
|/ | | | | | | libwebp still has a size threshold of 4 pixels in picture_csp_enc.c but the sharpyuv library itself can handle any image size. Change-Id: Ic1c78c8f8fae528395fa46a74f717f47cb13098e
* Merge "sharpyuv: increase precision of gamma<->linear conversion" into mainMaryla Ustarroz-Calonge2022-06-028-120/+173
|\
| * sharpyuv: increase precision of gamma<->linear conversionMaryla2022-06-018-120/+173
| | | | | | | | Change-Id: I261bae3628315bda4ec0dafb8798c7512dd03a36
* | Merge changes I3d17d529,I53026880,I1bd61639,I6bd4b25d,Icfec8fba into mainJames Zern2022-06-012-4/+8
|\ \ | |/ |/| | | | | | | | | | | | | * changes: CMake: add src to webpinfo includes CMake: add WEBP_BUILD_WEBPINFO to list of checks for exampleutil CMake: add WEBP_BUILD_WEBPMUX to list of checks for exampleutil CMake: link imageioutil to exampleutil after defined WEBP_DEP_LIBRARIES: use Threads::Threads
| * CMake: add src to webpinfo includesChristopher Degawa2022-05-311-1/+3
| | | | | | | | | | | | | | Fixes an include error with webp/types.h Signed-off-by: Christopher Degawa <ccom@randomderp.com> Change-Id: I3d17d529c904cdb4e5c8ae630e89ed3789791e79
| * CMake: add WEBP_BUILD_WEBPINFO to list of checks for exampleutilChristopher Degawa2022-05-311-1/+2
| | | | | | | | | | Signed-off-by: Christopher Degawa <ccom@randomderp.com> Change-Id: I530268809468107fe29e0f04278791fe7c583208
| * CMake: add WEBP_BUILD_WEBPMUX to list of checks for exampleutilChristopher Degawa2022-05-311-1/+2
| | | | | | | | | | Signed-off-by: Christopher Degawa <ccom@randomderp.com> Change-Id: I1bd6163966d8cec9fc240fa46d41605f11d0c1ac
| * CMake: link imageioutil to exampleutil after definedChristopher Degawa2022-05-311-1/+1
| | | | | | | | | | Signed-off-by: Christopher Degawa <ccom@randomderp.com> Change-Id: I6bd4b25d31a85839aadef57437faa04966085f52
| * WEBP_DEP_LIBRARIES: use Threads::ThreadsChristopher Degawa2022-05-311-1/+1
| | | | | | | | | | Signed-off-by: Christopher Degawa <ccom@randomderp.com> Change-Id: Icfec8fba117cbf5668c6f4c7d46d05cbb17e3dea
* | sharpyuv: add 32bit version of SharpYuvFilterRow.Maryla2022-06-014-15/+120
|/ | | | | | This allows increasing intermediate value precision from 10 bits to 14 bits. Change-Id: I0fc33400d200a849bcc2c677ab8346215a9dbc3b
* Merge "sharpyuv: add support for 10/12/16 bit rgb and 10/12 bit yuv." into mainMaryla Ustarroz-Calonge2022-05-249-189/+347
|\
| * sharpyuv: add support for 10/12/16 bit rgb and 10/12 bit yuv.Maryla2022-05-239-189/+347
| | | | | | | | | | | | 10bit+ input is truncated to 10bits for now. Change-Id: I7ac00ca54c623d94c76ccd8954418e11095997d2
* | normalize WebPValidatePicture declaration w/definitionJames Zern2022-05-171-1/+1
|/ | | | | | | | quiets a warning under visual studio: src\enc\picture_enc.c(48) : warning C4028: formal parameter 1 different from declaration Change-Id: Ic3affbbb0e22ac8c43fa183e13506eee72e180dc
* sharpyuv: slightly improve precisionMaryla2022-05-171-8/+7
| | | | | | | | | - Remove SHALF constant so that we get back the original value when calling UpScale then downscale with rounding - Make the linear->gamma precomputed table bigger (8 bits rather than 5) - Round values in kLinearToGammaTabS Change-Id: Ic9634d32cf93de321d2f6e9e4cad7f156d8d07df
* Merge changes Ia01bd397,Ibf3771af into mainJames Zern2022-05-167-91/+100
|\ | | | | | | | | | | * changes: Add an internal WebPValidatePicture. Some renamings for consistency.
| * Add an internal WebPValidatePicture.Vincent Rabaud2022-05-164-30/+41
| | | | | | | | Change-Id: Ia01bd3975f7bd0d47eb0a1764807baed16f0d268
| * Some renamings for consistency.Vincent Rabaud2022-05-164-61/+59
| | | | | | | | | | | | | | - pic->picture in public header - match implementation to declaration in PictureImport, WebPPictureRescale, WebpBlendAlpha Change-Id: Ibf3771af22d671bba6fd657684add618c6f32978