Modify

Opened 3 years ago

Closed 3 years ago

#21693 closed enhancement (fixed)

[PATCH] Map only visible part of image, read directly from buffer array when buffer type is byte.

Reported by: GhostFoxSledgehammer Owned by: team
Priority: normal Milestone: 22.03
Component: Core image mapping Version:
Keywords: performance Cc:

Description

Problem
When the image is zoomed CameraPlane still maps the entire image even if some part of image will not be displayed. Also when source/target image buffer is of type byte then colors are mapped using getRGB() and setRGB() which are slow compared to directly accessing image data buffer.

Solution
Map only the visible part of image.
Map colors using data buffer when both source and target image have data buffers of type byte.

Attachments (1)

cameraPlane_fast_mapping.patch (10.4 KB ) - added by GhostFoxSledgehammer 3 years ago.

Download all attachments as: .zip

Change History (6)

by GhostFoxSledgehammer, 3 years ago

comment:1 by Don-vip, 3 years ago

Milestone: 22.01

comment:2 by Don-vip, 3 years ago

Keywords: performance added

comment:3 by stoecker, 3 years ago

Milestone: 22.0122.02

Milestone renamed

comment:4 by Don-vip, 3 years ago

Milestone: 22.0222.03

comment:5 by stoecker, 3 years ago

Resolution: fixed
Status: newclosed

In 18398/josm:

fix #21693 - patch by GhostFoxSledgehammer - performance optimizations with image display

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.