File: gap_onion_base.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,526 bytes parent folder | download | duplicates (6)
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_onion_base.h
 * 2003.05.22 hof (Wolfgang Hofer)
 *
 * GAP ... Gimp Animation Plugins
 *
 * This Module contains ONION Skin Layers worker Procedures
 *
 */
/* 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:
 * version 1.3.16c; 2003.07.09   hof: created (as extract of the gap_onion_worker.c module)
 * version 1.2.2a;  2001.12.10   hof: created
 */

#ifndef _GAP_ONION_BASE_H
#define _GAP_ONION_BASE_H


#include "config.h"

/* SYTEM (UNIX) includes */
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>

/* #include <locale.h> */
#include <gap-intl.h>

#include <gtk/gtk.h>
#include <libgimp/gimp.h>
#include <libgimp/gimpui.h>

#include <gap_vin.h>




#define GAP_ONION_PARASITE_NAME     "gap_onion_skin_layer"

#define GAP_ONION_VISI_FALSE   0
#define GAP_ONION_VISI_TRUE    1
#define GAP_ONION_VISI_TOGGLE  2

#define GAP_ONION_REFMODE_NORMAL   0
#define GAP_ONION_REFMODE_BIDRIECTIONAL_SINGLE   1
#define GAP_ONION_REFMODE_BIDRIECTIONAL_DOUBLE   2

typedef struct GapOnionBaseParasite_data {
   long         timestamp;      /* UTC timecode of creation time */
   gint32       tattoo;         /* unique tattoo */
} GapOnionBaseParasite_data;


/* Function Typedefs */
typedef  void    (*GapOnionBaseFptrAddImageToCache)(void *gpp_void
                                           , gint32 framenr
                                           , gint32 image_id
                                           , gint32 layer_id);
typedef  gint32  (*GapOnionBaseFptrFindFrameInImageCache)(void *gpp_void
                                                  , gint32 framenr
                                                  , gint32 *image_id
                                                  , gint32 *layer_id);


/* onion_base procedures */
void    gap_onion_base_mark_as_onionlayer(gint32 layer_id);
gint32  gap_onion_base_check_is_onion_layer(gint32 layer_id);
gint    gap_onion_base_onionskin_visibility(gint32 image_id, gint visi_mode);
gint    gap_onion_base_onionskin_delete(gint32 image_id);
gint    gap_onion_base_onionskin_apply(gpointer gpp
             , gint32 image_id
             , GapVinVideoInfo *vin_ptr
             , long   ainfo_curr_frame_nr
             , long   ainfo_first_frame_nr
             , long   ainfo_last_frame_nr
             , char  *ainfo_basename
             , char  *ainfo_extension
             , GapOnionBaseFptrAddImageToCache        fptr_add_img_to_cache
             , GapOnionBaseFptrFindFrameInImageCache fptr_find_frame_in_img_cache
             , gboolean use_cache
             );

gboolean gap_onion_image_has_oinonlayers(gint32 image_id, gboolean only_visible);
gint32   gap_onion_base_image_duplicate(gint32 image_id);

#endif