File: gap_range_ops.h

package info (click to toggle)
gimp-gap 2.6.0%2Bdfsg-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 19,656 kB
  • ctags: 7,358
  • sloc: ansic: 119,801; sh: 3,890; makefile: 932; lisp: 97; pascal: 55
file content (106 lines) | stat: -rw-r--r-- 3,982 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
/* gap_range_ops.h
 * 1998.07.03 hof (Wolfgang Hofer)
 *
 * GAP ... Gimp Animation Plugins
 *
 * GAP operations on frame Ranges (from - to)
 *
 */
/* The GIMP -- an image manipulation program
 * Copyright (C) 1995 Spencer Kimball and Peter Mattis
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 */

/* revision history:
 * 1.3.5a;  2002/04/20   hof: API cleanup
 * 1.1.10a; 1999/10/22   hof: extended dither options in gap_range_conv
 * 0.97.00; 1998/10/19   hof: extended gap_range_to_multilayer layer seletion
 * 0.96.03; 1998/08/31   hof: gap_range_to_multilayer: all params available
 *                            in non-interactive runmode
 * 0.96.00; 1998/07/02   hof: (extracted from gap_lib.h)
 * 0.94.01; 1998/04/27   hof: added flatten_mode to plugin: gap_range_to_multilayer
 */

#ifndef _GAP_RANGE_OPS_H
#define _GAP_RANGE_OPS_H

#include "libgimp/gimp.h"

/* flatten mode bits used in gap_range_to_multilayer */
#define GAP_RANGE_OPS_FLAM_MERG_EXPAND    0
#define GAP_RANGE_OPS_FLAM_MERG_CLIP_IMG  1
#define GAP_RANGE_OPS_FLAM_MERG_CLIP_BG   2
#define GAP_RANGE_OPS_FLAM_MERG_FLAT      3

/* region selection modes used in gap_range_to_multilayer */
#define GAP_RANGE_OPS_SEL_IGNORE          0
#define GAP_RANGE_OPS_SEL_INITIAL         1
#define GAP_RANGE_OPS_SEL_FRAME_SPECIFIC  2

/* Animation sizechange modes */
typedef enum
{
   GAP_ASIZ_SCALE  
 , GAP_ASIZ_RESIZE 
 , GAP_ASIZ_CROP   
} GapRangeOpsAsiz;




gint32 gap_range_to_multilayer(GimpRunMode run_mode,
                             gint32 image_id,
                             long range_from, long range_to,
                             long flatten_mode, long bg_visible,
                             long   framerate, char  *frame_basename, int frame_basename_len,
                             gint32 sel_mode, gint32 sel_case,
                             gint32 sel_invert, char *sel_pattern,
                             gint32 selection_mode
                             );

gint32 gap_range_flatten(GimpRunMode run_mode,
                             gint32 image_id,
                             long range_from, long range_to);
gint32 gap_range_layer_del(GimpRunMode run_mode,
                             gint32 image_id,
                             long range_from, long range_to, long position);

gint32 gap_range_conv(GimpRunMode run_mode,
                             gint32 image_id,
                             long   range_from, long range_to, 
                             long   flatten,
                             GimpImageBaseType dest_type, 
                             gint32     dest_colors,
                             gint32     dest_dither,
                             char   *basename,
                             char   *extension,
                             gint32  palette_type,
                             gint32  alpha_dither,
                             gint32  remove_unused,
                             char   *palette
                             );

int gap_range_anim_sizechange(GimpRunMode run_mode,
                             GapRangeOpsAsiz asiz_mode,
                             gint32 image_id,
                             long size_x,
                             long size_y,
                             long offs_x,
                             long offs_y);

#endif