4 * Copyright (C) Georg Martius - June 2007 - 2013
6 * This file is part of transcode, a video stream processing tool
8 * transcode is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2, or (at your option)
13 * transcode is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with GNU Make; see the file COPYING. If not, write to
20 * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
23 #ifndef __TRANSFORMTYPE_H
24 #define __TRANSFORMTYPE_H
29 /* structure to hold information about frame transformations
30 x,y are translations, alpha is a rotation around the center in RAD,
31 zoom is a percentage to zoom in and
32 extra is for additional information like scene cut (unused)
34 typedef struct _transform
{
41 int extra
; /* -1: ignore transform (only internal use);
42 0 for normal trans; 1 for inter scene cut (unused) */
45 /** stores x y and size of a measurement field */
46 typedef struct _field
{
47 int x
; // middle position x
48 int y
; // middle position y
49 int size
; // size of field
52 /** stores x y coordinates (integer) */
54 int x
; // middle position x
55 int y
; // middle position y
58 /* structure to hold information about local motion.
60 typedef struct _localmotion
{
63 double contrast
; // local contrast of the measurement field
64 double match
; // quality of match
67 typedef VSVector LocalMotions
;
73 * c-file-style: "stroustrup"
74 * c-file-offsets: ((case-label . *) (statement-case-intro . *))
75 * indent-tabs-mode: nil
79 * vim: expandtab shiftwidth=2: