Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
"id": "image",
"type": "pickString",
"options": [
"lossy/tree.webp",
"lossy/fire.webp",
"lossy/rose.webp",
"lossless/rose.webp",
"lossless/tux.webp",
"lossless/dice.webp",
Expand Down
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ option(JEBP_WERROR "Treat warnings as errors" ${jebp_release})
option(JEBP_SANITIZE "Enable sanitizers" ${jebp_debug})
option(JEBP_STDIO "Enable I/O support" ON)
option(JEBP_SIMD "Enable SIMD optimizations" ON)
option(JEBP_VP8 "Enable VP8 support" ON)
option(JEBP_VP8L "Enable VP8L support" ON)

# Utility functions
Expand Down Expand Up @@ -71,6 +72,9 @@ endif()
if(NOT JEBP_VP8L)
add_compile_definitions(JEBP_NO_VP8L)
endif()
if(NOT JEBP_VP8)
add_compile_definitions(JEBP_NO_VP8)
endif()

# Demo program
find_package(SDL2)
Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
Don't let all the [files](#what-are-all-these-files) scare you away, infact only
[one header file](/jebp.h) is required to use this project.

Currently this project only supports lossless (VP8L) images. This project:
- Does not support decoding lossy files with VP8
([Draft PR](https://github.com/matanui159/jebp/pull/2)).
This is not a feature-complete WebP decoder and has the following limitations:
- Does not support extended file-formats with VP8X.
- Does not support VP8L lossless images with the color-indexing transform
(palleted images).
Expand Down
5 changes: 5 additions & 0 deletions dev/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ endfunction()
if(BUILD_TESTING)
add_executable(jebptest jebptest.c)
target_link_libraries(jebptest PRIVATE ${link_options})
# TODO: adding these for now so I don't get any regressions, but these will
# need to change when I add the deblocking filters
add_test_image(lossy_tree lossy/tree.webp 1024x772 84d87470)
add_test_image(lossy_fire lossy/fire.webp 1024x752 3e8c182b)
add_test_image(lossy_rose lossy/rose.webp 512x384 1cb94230)
add_test_image(lossless_rose lossless/rose.webp 512x384 943882e6)
add_test_image(lossless_tux lossless/tux.webp 386x395 dd77ded2)
add_test_image(lossless_dice lossless/dice.webp 800x600 f3285d5a)
Expand Down
15 changes: 14 additions & 1 deletion dev/credits.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
### [`lossless/rose.webp`](lossless/rose.webp)
### [`lossy/tree.webp`](lossy/tree.webp)
Image: "A Wild Cherry (Prunus avium) in flower" \
Image Author: Benjamin Gimmel \
[JPEG source](https://upload.wikimedia.org/wikipedia/commons/5/57/Frühling_blühender_Kirschenbaum.jpg) \
Photo licensed under the [Creative Commons][cc] [Attribution-Share Alike 3.0 Unported][by-sa] license.

### [`lossy/fire.webp`](lossy/fire.webp)
Image: Fire breathing "Jaipur Maharaja Brass Band" Chassepierre Belgium \
Author: Luc Viatour \
[JPEG source](https://upload.wikimedia.org/wikipedia/commons/0/02/Fire_breathing_2_Luc_Viatour.jpg) \
Photo licensed under the [Creative Commons][cc] [Attribution-Share Alike 3.0 Unported][by-sa] license. \
Author website at [www.lucnix.be](https://www.lucnix.be/)

### [`lossy/rose.webp`](lossy/rose.webp), [`lossless/rose.webp`](lossless/rose.webp)
"Free Stock Photo in High Resolution - Yellow Rose 3 - Flowers" \
Image Author: Jon Sullivan \
This file is in the public domain. \
Expand Down
3 changes: 3 additions & 0 deletions dev/lossy/fire.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions dev/lossy/rose.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions dev/lossy/tree.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading