https://bugs.kde.org/show_bug.cgi?id=506778

            Bug ID: 506778
           Summary: Krita 5.2.10 HEIF support does not build with libheif
                    1.20
    Classification: Applications
           Product: krita
      Version First 5.2.10
       Reported In:
          Platform: Other
                OS: All
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: File formats
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

SUMMARY

Krita 5.2.10 HEIF support does not build with libheif 1.20

STEPS TO REPRODUCE
1.  Build with libheif 1.20

OBSERVED RESULT

```
/home/brad/ports/pobj/krita-5.2.10/krita-5.2.10/plugins/impex/heif/HeifExport.cpp:258:37:
error: no matching member function for call to 'get_plane'
  258 |                 uint8_t *ptrR = img.get_plane(heif_channel_R,
&strideR);
      |                                 ~~~~^~~~~~~~~
/usr/local/include/libheif/heif_cxx.h:909:32: note: candidate function not
viable: no known conversion from 'int *' to 'size_t *' (aka 'unsigned long *')
for 2nd argument
  909 |   inline const uint8_t* Image::get_plane(enum heif_channel channel,
size_t* out_stride) const noexcept
      |                                ^                                   
~~~~~~~~~~~~~~~~~~
/usr/local/include/libheif/heif_cxx.h:914:26: note: candidate function not
viable: no known conversion from 'int *' to 'size_t *' (aka 'unsigned long *')
for 2nd argument
  914 |   inline uint8_t* Image::get_plane(enum heif_channel channel, size_t*
out_stride) noexcept
      |                          ^                                   
~~~~~~~~~~~~~~~~~~
/home/brad/ports/pobj/krita-5.2.10/krita-5.2.10/plugins/impex/heif/HeifExport.cpp:259:37:
error: no matching member function for call to 'get_plane'
  259 |                 uint8_t *ptrG = img.get_plane(heif_channel_G,
&strideG);
      |                                 ~~~~^~~~~~~~~
/usr/local/include/libheif/heif_cxx.h:909:32: note: candidate function not
viable: no known conversion from 'int *' to 'size_t *' (aka 'unsigned long *')
for 2nd argument
  909 |   inline const uint8_t* Image::get_plane(enum heif_channel channel,
size_t* out_stride) const noexcept
      |                                ^                                   
~~~~~~~~~~~~~~~~~~
/usr/local/include/libheif/heif_cxx.h:914:26: note: candidate function not
viable: no known conversion from 'int *' to 'size_t *' (aka 'unsigned long *')
for 2nd argument
  914 |   inline uint8_t* Image::get_plane(enum heif_channel channel, size_t*
out_stride) noexcept
      |                          ^                                   
~~~~~~~~~~~~~~~~~~
/home/brad/ports/pobj/krita-5.2.10/krita-5.2.10/plugins/impex/heif/HeifExport.cpp:260:37:
error: no matching member function for call to 'get_plane'
  260 |                 uint8_t *ptrB = img.get_plane(heif_channel_B,
&strideB);
      |                                 ~~~~^~~~~~~~~
...
```

EXPECTED RESULT

The respective code builds Ok.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to