1. 21 Jan, 2018 3 commits
    • Ell's avatar
      transform: don't sample past-the-horizon points · dbac6fcf
      Ell authored
      When applying a perspective transform, don't sample past-the-
      horizon output points, which correspond to behind-the-camera input
      points, and should be clipped.
      Currently, we test each point individually, which is suboptimal.
      Ideally, we should precalculate the regions that are inside the
      transformed polygon, and only rasterize those.  Either way, the
      output should now be the same.
    • Ell's avatar
      transform: clip bounding box to the backplane · b429cd48
      Ell authored
      ... so that, when applying a perspective transform, vertices of the
      input bounding box that map behind the camera don't result in a
      wrong bounding box.
    • Øyvind "pippin" Kolås's avatar
  2. 20 Jan, 2018 7 commits
  3. 19 Jan, 2018 1 commit
    • Øyvind "pippin" Kolås's avatar
      gegl: use RGBA rather than RaGaBaA for mipmap related scaling · 0ab81824
      Øyvind "pippin" Kolås authored
      This will cause some minor color-of-transparent-pixels-fringe leaking,
      but paths from commonly used raster storage/layer formats are likely
      nearer to RGBA float than RaGaBaA float, thus being able to use cheaper
      The linear already existing versions do not enforce use of
      pre-multiplied alpha either.
  4. 18 Jan, 2018 8 commits
  5. 17 Jan, 2018 5 commits
  6. 15 Jan, 2018 3 commits
  7. 14 Jan, 2018 3 commits
  8. 13 Jan, 2018 5 commits
  9. 12 Jan, 2018 1 commit
    • Jehan's avatar
      libs/rgbe: RGBE magic number made more generic. · cab443df
      Jehan authored
      So it turns out (cf bug 792453) that a RGBE file made with Photoshop
      starts with "#?RGBE", instead of "#?RADIANCE". Looking up Blender's
      implementation, they only use "#?" with a comment clearly saying the
      string after can be anything. Since there doesn't seem to be any other
      file format starting with the "#?" magic number anyway, I guess we
      should just do the same and simply drop any character between "#?" and
      the first newline in the file.
      While changing the code, amending for this new magic number, I also made
      it a bit more robust to random contents. In particular,
      g_mapped_file_get_contents() can return NULL, so this has to be checked
      before dereferencing its contents. Moreover glib code says that the
      returned string is not necessarily zero-terminated, so we must properly
      limit searches and comparisons to the data size.
  10. 11 Jan, 2018 4 commits