Jump to content

Heiko Behrens

Members
  • Posts

    2
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Thanks for the quick response. I see that you're addressing quite a few topics in your response going from limitations in the JPEG decoder over reasoning behind integration tests, lack of unit-tests, wish for contributions, ideas around alpha blending, and uGFX 3.0. While this helps me to understand the overall situation, I'd like to focus on automated testing in this thread. My goal is to make sure I don't break known behavior with my work so that I can contribute with confidence. Likewise, I don't want to invest time in test coverage that may already exist. Does this mean that there's another repository with images and scripts to run the uGFX against expectations of those on a development environment? I am thinking of a CLI that decodes an image and re-encodes it using a trustworthy encoder (we use lodepng for these cases) orchestrated by scripts that traverse over input files to compare them against expected output. That sounds like a good starting point. How do I use those to verify correctness and more so, how do I compile them in the first place (ideally on my development machine to run them locally)? From what I see, their readme states "Only the main files are contained. No compile-able projects".
  2. Hey, I am new to this forum Currently, I am evaluating libraries to decode standard image formats such as (animated) GIF, (animated) PNG and JPEG on limited device I am working on. I was previously involved in firmware development at Pebble (the Smartwatch) where we modified uPNG (https://github.com/elanthis/upng) to support APNG – unfortunately, this work was never open-sourced. uGFX looks like a promising candidate, it's structure is well designed and there was no problem integrating its features of gdispImage into the larger system by writing adapter functions around GFILE and GDisplay. During this process, I was stumbling upon several smaller and larger limitations. Most-noticably, the JPEG implementation didn't even compile without a change. As it's current practice for me and my team to drive any work with tests, I started to write automated tests to measure memory leaks, memory footprint, among actual functional correctness. Going forward, I will integrate this into a larger setup of ours that runs the decoders against a set of reference images (to test in bulk which features are insufficiently supported by comparing the decoded output against the output of a trusted decoder). If uGFX lives up to my expectations, I want to add support for alpha blending and APNG. But before I start, I wanted to see if I could avoid the risk of regressions and wanted to double-check: I could not find any automated tests in the repository. Are there any unit-tests or otherwise automated (integration) tests I can run to verify that changes don't negatively affect the current behavior? Looking at the most-recent pull-requests, e.g. https://git.ugfx.io/uGFX/uGFX/pulls/22/files or https://git.ugfx.io/uGFX/uGFX/pulls/19 I cannot see how people manage their tests. In fact, I don't see any CI system being configured. If not, are there plans to do so? Cheers, Heiko
×
×
  • Create New...