2
* gstvaapiutils_mpeg2.h - MPEG-2 related utilities
4
* Copyright (C) 2011-2014 Intel Corporation
5
* Author: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
7
* This library is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU Lesser General Public License
9
* as published by the Free Software Foundation; either version 2.1
10
* of the License, or (at your option) any later version.
12
* This library is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
* Lesser General Public License for more details.
17
* You should have received a copy of the GNU Lesser General Public
18
* License along with this library; if not, write to the Free
19
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20
* Boston, MA 02110-1301 USA
23
#ifndef GST_VAAPI_UTILS_MPEG2_H
24
#define GST_VAAPI_UTILS_MPEG2_H
27
#include <gst/vaapi/gstvaapiprofile.h>
28
#include <gst/vaapi/gstvaapisurface.h>
34
* @GST_VAAPI_LEVEL_MPEG2_LOW: Low level.
35
* @GST_VAAPI_LEVEL_MPEG2_MAIN: Main level.
36
* @GST_VAAPI_LEVEL_MPEG2_HIGH_1440: High-1440 level.
37
* @GST_VAAPI_LEVEL_MPEG2_HIGH: High level.
39
* The set of all levels for #GstVaapiLevelMPEG2.
42
GST_VAAPI_LEVEL_MPEG2_LOW = 1,
43
GST_VAAPI_LEVEL_MPEG2_MAIN,
44
GST_VAAPI_LEVEL_MPEG2_HIGH_1440,
45
GST_VAAPI_LEVEL_MPEG2_HIGH,
48
/* Returns a relative score for the supplied GstVaapiProfile */
50
gst_vaapi_utils_mpeg2_get_profile_score (GstVaapiProfile profile);
52
/* Returns GstVaapiProfile from a string representation */
54
gst_vaapi_utils_mpeg2_get_profile_from_string (const gchar * str);
56
/* Returns a string representation for the supplied MPEG-2 profile */
58
gst_vaapi_utils_mpeg2_get_profile_string (GstVaapiProfile profile);
60
/* Returns GstVaapiLevelMPEG2 from a string representation */
62
gst_vaapi_utils_mpeg2_get_level_from_string (const gchar * str);
64
/* Returns a string representation for the supplied MPEG-2 level */
66
gst_vaapi_utils_mpeg2_get_level_string (GstVaapiLevelMPEG2 level);
70
#endif /* GST_VAAPI_UTILS_MPEG2_H */