After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 673624 - [PATCH] Shift Operation
[PATCH] Shift Operation
Status: RESOLVED FIXED
Product: GEGL
Classification: Other
Component: operations
git master
Other Linux
: Normal enhancement
: ---
Assigned To: Default Gegl Component Owner
Default Gegl Component Owner
Depends on:
Blocks:
 
 
Reported: 2012-04-06 05:33 UTC by Hans Lo
Modified: 2012-05-28 10:32 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
shift operation (4.75 KB, patch)
2012-04-06 05:33 UTC, Hans Lo
none Details | Review

Description Hans Lo 2012-04-06 05:33:20 UTC
Created attachment 211447 [details] [review]
shift operation

This is a test port of the shift plugin. It's basically a slightly modified ripple operation and it only does horizontal shifts.
Comment 1 André Klapper 2012-04-06 08:18:39 UTC
(Please use meaningful bug summaries - thanks!)
Comment 2 Michael Muré 2012-05-03 16:46:18 UTC
- using a cubic sampler is probably not a good idea, your a going to blur the image, I think you can use gegl_buffer_get directly, and fetch a line

- you can add yourself in the copyright

- you can register an enum for horizontal/vertical, like in the ripple of for gegl_ripple_wave_type

Thanks =)
Comment 3 Michael Muré 2012-05-28 10:32:42 UTC
Corrected version now in the soc-2012-ops branch:

From 635bae8d2f4dd2e1845eac6bafbd78e64143fec9 Mon Sep 17 00:00:00 2001
From: Hans Lo <hansshulo@gmail.com>
Date: Tue, 22 May 2012 18:17:48 +0000
Subject: Shift operation

Shifts each row or column of pixels by a random amount.