aboutsummaryrefslogtreecommitdiffstats
path: root/filter.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2019-05-08 13:22:33 +0200
committerGerd Hoffmann <kraxel@redhat.com>2019-05-08 13:22:33 +0200
commit8fc776833f83c417d57c43f41479bc034c3863c6 (patch)
tree2fbe3cd51de3947f8fc5144d17b2bd57eccb6271 /filter.c
parent63b5412f8c410694e8c67452452273ae8a9a6871 (diff)
downloadfbida-8fc776833f83c417d57c43f41479bc034c3863c6.tar.gz
portability fixes, some modernization
Diffstat (limited to 'filter.c')
-rw-r--r--filter.c46
1 files changed, 23 insertions, 23 deletions
diff --git a/filter.c b/filter.c
index 12694e4..a75f73a 100644
--- a/filter.c
+++ b/filter.c
@@ -198,9 +198,9 @@ op_sharpe_work(struct ida_image *src, struct ida_rect *rect,
unsigned char *dst, int line, void *data)
{
static struct op_3x3_parm laplace = {
- f1: { 1, 1, 1 },
- f2: { 1, -8, 1 },
- f3: { 1, 1, 1 },
+ .f1 = { 1, 1, 1 },
+ .f2 = { 1, -8, 1 },
+ .f3 = { 1, 1, 1 },
};
struct op_sharpe_handle *h = data;
unsigned char *scanline;
@@ -460,32 +460,32 @@ op_rotate_done(void *data)
/* ----------------------------------------------------------------------- */
struct ida_op desc_grayscale = {
- name: "grayscale",
- init: op_none_init,
- work: op_grayscale,
- done: op_none_done,
+ .name = "grayscale",
+ .init = op_none_init,
+ .work = op_grayscale,
+ .done = op_none_done,
};
struct ida_op desc_3x3 = {
- name: "3x3",
- init: op_3x3_init,
- work: op_3x3_work,
- done: op_3x3_free,
+ .name = "3x3",
+ .init = op_3x3_init,
+ .work = op_3x3_work,
+ .done = op_3x3_free,
};
struct ida_op desc_sharpe = {
- name: "sharpe",
- init: op_sharpe_init,
- work: op_sharpe_work,
- done: op_sharpe_free,
+ .name = "sharpe",
+ .init = op_sharpe_init,
+ .work = op_sharpe_work,
+ .done = op_sharpe_free,
};
struct ida_op desc_resize = {
- name: "resize",
- init: op_resize_init,
- work: op_resize_work,
- done: op_resize_done,
+ .name = "resize",
+ .init = op_resize_init,
+ .work = op_resize_work,
+ .done = op_resize_done,
};
struct ida_op desc_rotate = {
- name: "rotate",
- init: op_rotate_init,
- work: op_rotate_work,
- done: op_rotate_done,
+ .name = "rotate",
+ .init = op_rotate_init,
+ .work = op_rotate_work,
+ .done = op_rotate_done,
};