Skip to content
  1. Apr 11, 2024
  2. Mar 25, 2024
  3. Feb 11, 2024
    • Jehan's avatar
      extensions: component "alpha" should be registered with "alpha" attribute. · a28309ca
      Jehan authored
      Though the models may itself be registered with a similarly named
      attribute to mean they encode alpha, babl_format_has_alpha() in
      particular works by verifying if any of the components
      represents/encodes alpha. As a consequence, the function was failing to
      consider e.g. HSVA as a model encoding alpha.
      a28309ca
  4. Feb 09, 2024
  5. Jan 16, 2024
  6. Nov 27, 2023
  7. Nov 15, 2023
    • Jehan's avatar
      bin: add "double" support to the CLI tool. · bf6daf84
      Jehan authored
      Again, even though it's basically the same as float or half for a CLI
      tool (where all these floating point values are just converted from
      string representation), it is still interesting since the tool is doing
      actual conversion with a fish using the requested formats. Therefore
      it's a nice way to quickly test conversions in terminal.
      bf6daf84
    • Jehan's avatar
      babl, babl: new babl-shared-util.[ch] for functions shared between CLI and lib. · 385390f9
      Jehan authored
      While apparently fixing the compilation for Windows (and still compiling
      on Linux), my previous commit was in fact crashing the CLI tool when it
      runs babl_init() in some infinite loop (it looks like it's crashing
      inside babl logging code, hence the infinite looping).
      
      Anyway this was annoying me that we had to build-in more than necessary
      from babl-internal when all I wanted was to share 2 functions. So I
      split babl-util with a new babl-shared-util. The latter is to be used
      only for the few utility functions which we might want to share with the
      CLI tool (so far, only the 2 half to/from float (en|de)coders).
      
      This time, I've not only compiled but also run the CLI tool both on
      Linux and with Wine for the Windows cross-build.
      385390f9
  8. Nov 14, 2023
    • Jehan's avatar
      bin: fix linking for cross-compiled Windows build. · 2b1ce9d6
      Jehan authored
      While I didn't have a problem for Linux builds, when cross-compiling for
      Windows, these errors occur:
      
      > babl-util.c:296: undefined reference to `babl_strcat'
      
      (and a few similar other "undefined reference" as this one gets fixed)
      
      This is because we include babl-internal.h in bin/babl.c but don't add
      the right compilation unit sources. The build was still finding them (or
      maybe ignoring them as the functions were unused in the babl CLI tool
      code) on Linux, but not on Windows.
      2b1ce9d6
  9. Nov 12, 2023
    • Jehan's avatar
      babl, bin: support "half" type in the babl CLI tool. · 0fb83c73
      Jehan authored
      The code to encode half values into and from float values was moved from
      type-half.c to babl-util.h as an internal function, to make it usable by
      the CLI code.
      
      It may not seem totally useful to have half support since anyway we
      convert from/to string for the CLI tool (in this regard, half and float
      are the same). But since the tool performs an actual babl conversion,
      it's actually a good way to test quickly that half conversion works
      properly too.
      0fb83c73
  10. Oct 27, 2023
  11. Oct 04, 2023
    • Jehan's avatar
      babl: new babl_space_is_rgb(). · c35674a0
      Jehan authored
      Similar to babl_space_is_cmyk|gray() functions, because right now to
      know whether a space is RGB, we have to test whether it's **not** any of
      the other. And such code would break as soon as we will add new values
      to BablICCType.
      c35674a0
  12. Aug 12, 2023
  13. Jul 25, 2023
  14. May 16, 2023
  15. May 05, 2023
  16. May 02, 2023
  17. Apr 22, 2023
  18. Apr 20, 2023
  19. Mar 23, 2023
  20. Feb 25, 2023