Skip to content
Snippets Groups Projects
  1. Jun 20, 2023
  2. Jun 19, 2023
  3. Jun 18, 2023
  4. Jun 16, 2023
    • Niklas Haas's avatar
      renderer: automatically expand/constrain distortion canvas · c3e6c2f7
      Niklas Haas authored
      Instead of implicitly clamping the output image to the originally
      specified dst_rect, this allows the result of applying a distortion
      matrix to effectively exceed the indicated target crop area.
      
      Of course, this is probably surprising to some users, but then again,
      distortion isn't exactly a common use case - and I would argue that this
      makes arbitrary rotation work much more intuitively.
      c3e6c2f7
    • Niklas Haas's avatar
      common: add pl_transform2x2_bounds · 2e17877a
      Niklas Haas authored
      Helper function to compute bounding boxes of transformations.
      2e17877a
  5. Jun 15, 2023
  6. Jun 13, 2023
  7. Jun 06, 2023
  8. Jun 05, 2023
  9. May 30, 2023
    • Niklas Haas's avatar
      renderer: simplify need_fbo check · e6846192
      Niklas Haas authored
      Removes the clunky stateful peak_detect_active bool in exchange for a
      properly scoped temporary FBO force bool.
      e6846192
    • Niklas Haas's avatar
      shaders: slightly improve clarity of code flow · 8ff9ca8d
      Niklas Haas authored
      Make it more explicit which case is which.
      8ff9ca8d
    • Niklas Haas's avatar
      shaders: correctly mark flexible shaders as such · a52d8a69
      Niklas Haas authored
      This variable was never currently set.
      a52d8a69
    • Kacper Michajłow's avatar
      meson: prefer UCRT math functions · 34a70f97
      Kacper Michajłow authored and Niklas Haas's avatar Niklas Haas committed
      MinGW-w64 math functions are significantly slower than the UCRT ones.
      In particular powf is over 7 times slower than UCRT counterpart. MinGW-w64
      explicitly excludes some math functions from their ucrtbase def file and
      replaces with own versions. To workaround the issue, generate the import
      library and link it with UCRT versions of math functions.
      
      Fixes slow gamut mapping LUT generation.
      
      For 33x25x45 perceptual map:
      Before: 816 ms
      After : 109 ms
      34a70f97
    • Niklas Haas's avatar
      gamut_mapping: replace PQ EOTF by LUT · c79f26c1
      Niklas Haas authored
      With linear interpolation, this gives enough precision even on a
      256-element LUT, to pass the tests.
      
      1232.685 ms -> 422.975 ms on my machine, almost 3x as fast.
      
      It's worth pointing out that the inverse function, pq_oetf, is not a
      major bottleneck and therefore does not need to be optimized. This is
      quite fortunate, because quantizing the optical domain of PQ would be
      rather terrible for precision.
      c79f26c1
    • Niklas Haas's avatar
      tests/tone_mapping: add 3DLUT generation benchmark · 2d5ec46e
      Niklas Haas authored
      To test impact of performance improvements to the 3DLUT generation code
      2d5ec46e
  10. May 29, 2023
Loading