Move code around.
[profile/ivi/gstreamer-vaapi.git] / tests / image.h
1 /*
2  *  image.h - Image utilities for the tests
3  *
4  *  gstreamer-vaapi (C) 2010 Splitted-Desktop Systems
5  *
6  *  This program is free software; you can redistribute it and/or modify
7  *  it under the terms of the GNU General Public License as published by
8  *  the Free Software Foundation; either version 2 of the License, or
9  *  (at your option) any later version.
10  *
11  *  This program is distributed in the hope that it will be useful,
12  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  *  GNU General Public License for more details.
15  *
16  *  You should have received a copy of the GNU General Public License
17  *  along with this program; if not, write to the Free Software
18  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
19  */
20
21 #ifndef IMAGE_H
22 #define IMAGE_H
23
24 #include <gst/vaapi/gstvaapiimage.h>
25 #include <gst/vaapi/gstvaapisurface.h>
26
27 GstVaapiImage *
28 image_generate(
29     GstVaapiDisplay    *display,
30     GstVaapiImageFormat format,
31     guint               width,
32     guint               height
33 );
34
35 gboolean
36 image_draw_rectangle(
37     GstVaapiImage *image,
38     gint           x,
39     gint           y,
40     guint          width,
41     guint          height,
42     guint32        color
43 );
44
45 gboolean
46 image_upload(GstVaapiImage *image, GstVaapiSurface *surface);
47
48 #endif /* IMAGE_H */