mirror of
https://github.com/NickeManarin/ScreenToGif.git
synced 2026-04-25 23:25:52 +03:00
[PR #742] [MERGED] Compare images using raw data #1193
Labels
No labels
copy cats
duplicated
future feature
pull-request
⬜ Accepted
⬜ Completed
⬜ Help Wanted 💪
⬜ In Progress
⬜ Missing Details
⬜ Pending
⬜ Waiting For Answer ⏳
🆕 feature preview
🔷 Bug 🐛
🔷 Out Of Scope
🔷 Out Of Scope
🔷 Question
🔷Enhancement
🔷Enhancement
🔷Invalid / External
🔷Knowledge Base
🔷Won't Fix
🕑 High
🕑 High
🕑 High
🕕 Medium
🕙 Low
🕛 Critical
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ScreenToGif#1193
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/NickeManarin/ScreenToGif/pull/742
Author: @DarkOoze
Created: 10/10/2020
Status: ✅ Merged
Merged: 4/27/2021
Merged by: @NickeManarin
Base:
pr/742← Head:image-array-pool📝 Commits (5)
7418fbfAdds method to get row pixel data47555f7Load image to line buffer for lower memory allocation1014807Compare images in parallel for improved performancef99a4d5Fix out of index exception on undo command488fd68Add test for CalculateDifference📊 Changes
9 files changed (+166 additions, -59 deletions)
View changed files
📝
GifRecorder.sln(+19 -0)➕
ScreenToGif.Tests/ImageMethods.cs(+33 -0)➕
ScreenToGif.Tests/ScreenToGif.Tests.csproj(+29 -0)➕
ScreenToGif.Tests/TestData/b1.bmp(+0 -0)➕
ScreenToGif.Tests/TestData/b2.bmp(+0 -0)📝
ScreenToGif/ImageUtil/Gif/LegacyEncoder/PixelUtilOld.cs(+18 -0)📝
ScreenToGif/ImageUtil/ImageMethods.cs(+34 -44)📝
ScreenToGif/Properties/AssemblyInfo.cs(+3 -0)📝
ScreenToGif/Windows/Editor.xaml.cs(+30 -15)📄 Description
Improves the performance of image comparison by using raw data instead of Color structs.
Reading the image to the buffer line by line to prevent the array getting placed on the LOH.
Did not save the measurements I did, but from memory I think this lowered the time from around 80ms to 10ms per image pair.
This adds some dependencies and complexity, not sure what you think of that.
Made a smaller edit with improvements if you rather not add more dependencies I can make a pull-request of that:
https://github.com/DarkOoze/ScreenToGif/tree/local-counter
P.S. My first pull-request, please be gentle 😄.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.