tests: image: fix string representation for GstVideoFormat.
[platform/upstream/gstreamer-vaapi.git] / tests / codec.h
1 /*
2  *  codec.h - Codec utilities for the tests
3  *
4  *  Copyright (C) 2013 Intel Corporation
5  *
6  *  This library is free software; you can redistribute it and/or
7  *  modify it under the terms of the GNU Lesser General Public License
8  *  as published by the Free Software Foundation; either version 2.1
9  *  of the License, or (at your option) any later version.
10  *
11  *  This library 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 GNU
14  *  Lesser General Public License for more details.
15  *
16  *  You should have received a copy of the GNU Lesser General Public
17  *  License along with this library; if not, write to the Free
18  *  Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  *  Boston, MA 02110-1301 USA
20  */
21
22 #ifndef CODEC_H
23 #define CODEC_H
24
25 #include <gst/vaapi/gstvaapiprofile.h>
26
27 const gchar *
28 string_from_codec(GstVaapiCodec codec);
29
30 GstCaps *
31 caps_from_codec(GstVaapiCodec codec);
32
33 GstVaapiCodec
34 identify_codec_from_string(const gchar *codec_str);
35
36 GstVaapiCodec
37 identify_codec(const gchar *filename);
38
39 #endif /* CODEC_H */