diff options
author | Gwenole Beauchesne <gwenole.beauchesne@intel.com> | 2013-01-15 17:30:57 +0100 |
---|---|---|
committer | Gwenole Beauchesne <gwenole.beauchesne@intel.com> | 2013-01-17 19:03:21 +0100 |
commit | b22bade3106d097ce767befb46b9786e095e7497 (patch) | |
tree | 1f8f081b457fb3cf639a9fd28d19cb68eecd409f /tests/codec.h | |
parent | ea3905fa148b6be76450ab45734687e8ff84a450 (diff) | |
download | gst-vaapi-b22bade3106d097ce767befb46b9786e095e7497.tar.gz |
tests: add codec helper utils.
Add helper functions to determine the codec type from a specific file
or utility functions to convert from codec type to GstCaps or from
codec name to codec type.
Diffstat (limited to 'tests/codec.h')
-rw-r--r-- | tests/codec.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/tests/codec.h b/tests/codec.h new file mode 100644 index 00000000..fad160b2 --- /dev/null +++ b/tests/codec.h @@ -0,0 +1,39 @@ +/* + * codec.h - Codec utilities for the tests + * + * Copyright (C) 2013 Intel Corporation + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public License + * as published by the Free Software Foundation; either version 2.1 + * of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free + * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef CODEC_H +#define CODEC_H + +#include <gst/vaapi/gstvaapiprofile.h> + +const gchar * +string_from_codec(GstVaapiCodec codec); + +GstCaps * +caps_from_codec(GstVaapiCodec codec); + +GstVaapiCodec +identify_codec_from_string(const gchar *codec_str); + +GstVaapiCodec +identify_codec(const gchar *filename); + +#endif /* CODEC_H */ |