Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Add cgif_rgb API #37

Draft
wants to merge 27 commits into
base: main
Choose a base branch
from
Draft

[WIP] Add cgif_rgb API #37

wants to merge 27 commits into from

Conversation

dloebl
Copy link
Owner

@dloebl dloebl commented Jan 18, 2022

Add public cgif_rgb API with the following features:

  • Allows passing RGB(A) image data to cgif.
  • cgif takes care of quantization/dithering and creates the color palette(s).

ToDo:

  • Reuse tree mode (API)
  • Make it possible to provide a partial frame
  • Enable/disable dithering config switch
  • Interlaced write support
  • add global palette mode (reuse global palette until error is too large)
  • interpalette-maxerror config (reuse global palette for subsequent frames if below threshold)
  • support local palettes
  • reuse palette mode
  • Switch from index to raw API
  • Quantization effort configuration (add parameter, but ignore for now): Check time for color quant and lookup time
  • target bit depth (see quantize_and_dither())
  • interframe-maxerror config (pixels shine through)
  • cleanup/refactor cgif_rgb module
  • add documentation to Wiki/README
  • add examples
  • add coverage tests for cgif_rgb module

@dloebl dloebl added the enhancement New feature or request label Jan 18, 2022
@dloebl dloebl self-assigned this Mar 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants