Opened 3 years ago

Closed 3 years ago

#64465 closed enhancement (fixed)

opencv4: enable built-in image codecs

Reported by: larsgrobe (Lars O Grobe) Owned by: mascguy (Christopher Nielsen)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: stromnov (Andrey Stromnov)
Port: opencv4

Description

Dear macports developers and maintainers,

I just ran into the problem that an image codec, the Radiance RGBE high dynamic range encoding (hdr), that is supported by opencv, is not available when installed via macports. It is explicitly disabled in the portsfile (by toggling -DWITH_IMGCODEC_HDR):

-DWITH_LIBREALSENSE:BOOL=OFF \
-DWITH_VA:BOOL=OFF \
-DWITH_VA_INTEL:BOOL=OFF \
-DWITH_MFX:BOOL=OFF \
-DWITH_GDAL:BOOL=OFF \
-DWITH_GPHOTO2:BOOL=OFF \
-DWITH_ITT:BOOL=OFF \
-DWITH_PROTOBUF:BOOL=OFF \
-DWITH_IMGCODEC_HDR:BOOL=OFF \
-DWITH_IMGCODEC_SUNRASTER:BOOL=OFF \
-DWITH_IMGCODEC_PXM:BOOL=OFF \
-DWITH_IMGCODEC_PFM:BOOL=OFF \
-DWITH_QUIRC:BOOL=OFF \

Unless there are very good reasons to keep it disabled, I highly recommend to enable the built-in codecs. These are taken for granted on opencv installations.

Best regards, Lars.

Change History (4)

comment:1 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: mascguy added
Owner: set to stromnov
Status: newassigned
Summary: opencv4 disables built-in image codecsopencv4: enable built-in image codecs
Type: requestenhancement

Looks like it's been that way ever since the port was added in 2019.

comment:2 Changed 3 years ago by mascguy (Christopher Nielsen)

Cc: stromnov added; mascguy removed
Owner: changed from stromnov to mascguy

comment:3 Changed 3 years ago by Christopher Nielsen <mascguy@…>

In d29712ca2085d6f9c81922af8f7c1027e1a06263/macports-ports (master):

opencv4-devel: enable built-in image codecs
See: #64465

comment:4 Changed 3 years ago by Christopher Nielsen <mascguy@…>

Resolution: fixed
Status: assignedclosed

In 2c7fb52b5f751108a0e65f2b6082bf2f6ef75ed7/macports-ports (master):

opencv4: enable built-in image codecs
Closes: #64465

Note: See TracTickets for help on using tickets.