encoder: h264: add missing field in packed Subset SPS header.
[platform/upstream/gstreamer-vaapi.git] / tests / image.h
1 /*
2  *  image.h - Image utilities for the tests
3  *
4  *  Copyright (C) 2010-2011 Splitted-Desktop Systems
5  *    Author: Gwenole Beauchesne <gwenole.beauchesne@splitted-desktop.com>
6  *  Copyright (C) 2013 Intel Corporation
7  *    Author: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
8  *
9  *  This library is free software; you can redistribute it and/or
10  *  modify it under the terms of the GNU Lesser General Public License
11  *  as published by the Free Software Foundation; either version 2.1
12  *  of the License, or (at your option) any later version.
13  *
14  *  This library is distributed in the hope that it will be useful,
15  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17  *  Lesser General Public License for more details.
18  *
19  *  You should have received a copy of the GNU Lesser General Public
20  *  License along with this library; if not, write to the Free
21  *  Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
22  *  Boston, MA 02110-1301 USA
23  */
24
25 #ifndef IMAGE_H
26 #define IMAGE_H
27
28 #include <gst/vaapi/gstvaapiimage.h>
29 #include <gst/vaapi/gstvaapisurface.h>
30
31 GstVaapiImage *
32 image_generate(
33     GstVaapiDisplay    *display,
34     GstVideoFormat      format,
35     guint               width,
36     guint               height
37 );
38
39 GstVaapiImage *
40 image_generate_full(
41     GstVaapiDisplay    *display,
42     GstVideoFormat      format,
43     guint               width,
44     guint               height,
45     guint32             flags
46 );
47
48 gboolean
49 image_upload(GstVaapiImage *image, GstVaapiSurface *surface);
50
51 #endif /* IMAGE_H */