DiscussionsIssue archiveOCCT:Visualization

Archived issue #0022590

Migration to FreeImage: revision of Xw and WNT packages

Open CASCADEOCCT:Visualizationclosed4 public notes

Search issues

Description

In the frames of migration of all OCCT functionality dealing with images to
FreeImage services (Image_PixMap class), it is necessary to revise the code in
Xw and WNT packages and replace all code that deals with images by usage of
Image_PixMap.

This task looks more or less urgent for maintenance reasons, as without it
migration to FreeImage is incomplete and OCCT continues to use very old and
buggy image support code, new bug reports come from the community, etc.

This task should be assigned to Commenter 1 or APL, depending on who of them is more
available.

Public activity

4 archived notes

Participants are labeled by their role within this record.

01Commenter 1
WNT package was cleaned up from custom image load/save operations within #0023712 and #0023663 patches (removal of TKV2d toolkit).
Xw package still contains dead code for image manipulations.
02Commenter 1
Patch is ready for review in CR22590 branch.

Package Xw was cleaned up from unused functionality.
Since V2d package removal the only target for Xw_Window class is to provide OpenGL window definition for graphical driver.
03Commenter 3
Branch CR22590 reviewed without remarks, ready for testing.
04Commenter 2
Dear Commenter 3,

Branch CR22590 (and products from GIT master) was compiled on Linux and Windows platforms and tested with rebase.
[revision removed]

Number of compiler warnings:

occt component :
Linux: 2 (2 on master)
Windows: 11 (11 on master)

products component :
Linux: 0 (0 on master)
Windows: 50 (50 on master)

Regressions:
No regressions

Improvements:
No improvements

Testing cases:
Not needed

Testing on Linux:
Total MEMORY difference: 290140448 / 296830228
Total CPU difference: 25768.64000000112 / 23459.080000000526

Testing on Windows:
Total MEMORY difference: 404502636 / 405895868
Total CPU difference: 27365.578125 / 33344.734375

There are not serious differences in images found by testdiff.

Related records