summaryrefslogtreecommitdiffstats
path: root/debian/transcode/transcode-1.1.7/libtcvideo/zoom.h
blob: 24a05addf987fe07712b4790882199bae719bbce (plain)
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
/*
 * zoom.h - include file for zoom function (internal to libtcvideo)
 *
 * This file is part of transcode, a video stream processing tool.
 * transcode is free software, distributable under the terms of the GNU
 * General Public License (version 2 or later).  See the file COPYING
 * for details.
 */

#ifndef LIBTCVIDEO_ZOOM_H
#define LIBTCVIDEO_ZOOM_H

/*************************************************************************/

/* Internal data used by zoom_process(). (opaque to caller) */
typedef struct zoominfo ZoomInfo;

/* Create a ZoomInfo structure for the given parameters. */
ZoomInfo *zoom_init(int old_w, int old_h, int new_w, int new_h, int Bpp,
                    int old_stride, int new_stride, TCVZoomFilter filter);

/* The resizing function itself. */
void zoom_process(const ZoomInfo *zi, const uint8_t *src, uint8_t *dest);

/* Free a ZoomInfo structure. */
void zoom_free(ZoomInfo *zi);

/*************************************************************************/

#endif  /* LIBTCVIDEO_ZOOM_H */

/*
 * Local variables:
 *   c-file-style: "stroustrup"
 *   c-file-offsets: ((case-label . *) (statement-case-intro . *))
 *   indent-tabs-mode: nil
 * End:
 *
 * vim: expandtab shiftwidth=4:
 */