[gegl] bayer-matrix: minor polish
- From: N/A <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] bayer-matrix: minor polish
- Date: Sun, 5 Feb 2017 00:19:25 +0000 (UTC)
commit 6ad21ad54fd1855751a6689c6fb1eefd4e6b1099
Author: Ell <ell_se yahoo com>
Date: Sat Feb 4 19:18:55 2017 -0500
bayer-matrix: minor polish
operations/workshop/bayer-matrix.c | 15 +++++++++------
1 files changed, 9 insertions(+), 6 deletions(-)
---
diff --git a/operations/workshop/bayer-matrix.c b/operations/workshop/bayer-matrix.c
index 04c18d1..7303847 100644
--- a/operations/workshop/bayer-matrix.c
+++ b/operations/workshop/bayer-matrix.c
@@ -28,10 +28,10 @@ property_int (subdivisions, _("Subdivisions"), 1)
value_range (0, 15)
enum_start (gegl_bayer_matrix_rotation)
- enum_value (GEGL_BAYER_MATRIX_ROTATION_0, "0", N_("0°"))
- enum_value (GEGL_BAYER_MATRIX_ROTATION_90, "90", N_("90°"))
- enum_value (GEGL_BAYER_MATRIX_ROTATION_180, "180", N_("180°"))
- enum_value (GEGL_BAYER_MATRIX_ROTATION_270, "270", N_("270°"))
+ enum_value (GEGL_BAYER_MATRIX_ROTATION_0, "0", N_("0°"))
+ enum_value (GEGL_BAYER_MATRIX_ROTATION_90, "90", N_("90°"))
+ enum_value (GEGL_BAYER_MATRIX_ROTATION_180, "180", N_("180°"))
+ enum_value (GEGL_BAYER_MATRIX_ROTATION_270, "270", N_("270°"))
enum_end (GeglBayerMatrixRotation)
property_enum (rotation, _("Rotation"),
@@ -104,7 +104,10 @@ value_at (GeglProperties *o,
{
guint value = 0;
- static const gint subdivision_value_luts[2][4][2][2] =
+ static const gint subdivision_value_luts[2 /* reflection */]
+ [4 /* rotation */]
+ [2 /* row */]
+ [2 /* column */] =
{
{
{{0, 2},
@@ -252,7 +255,7 @@ gegl_op_class_init (GeglOpClass *klass)
"categories", "render",
"position-dependent", "true",
"license", "GPL3+",
- "description", _("Generate a bayer matrix pattern"),
+ "description", _("Generate a Bayer matrix pattern"),
NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]