~ubuntu-branches/ubuntu/vivid/gstreamer-vaapi/vivid

« back to all changes in this revision

Viewing changes to gst-libs/gst/vaapi/gstvaapiutils_mpeg2.h

  • Committer: Package Import Robot
  • Author(s): Vincent Cheng
  • Date: 2014-08-06 23:56:00 UTC
  • mfrom: (0.1.4 sid) (1.1.3)
  • Revision ID: package-import@ubuntu.com-20140806235600-fg1kcmiu67k315q5
Tags: 0.5.9-2
* Remove spurious build-deps: libva-drm1, libavcodec-dev. (Closes: #757283)
* Drop Build-Depends-Indep and build docs unconditionally on all archs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *  gstvaapiutils_mpeg2.h - MPEG-2 related utilities
 
3
 *
 
4
 *  Copyright (C) 2011-2014 Intel Corporation
 
5
 *    Author: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
 
6
 *
 
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.
 
11
 *
 
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.
 
16
 *
 
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
 
21
 */
 
22
 
 
23
#ifndef GST_VAAPI_UTILS_MPEG2_H
 
24
#define GST_VAAPI_UTILS_MPEG2_H
 
25
 
 
26
#include <va/va.h>
 
27
#include <gst/vaapi/gstvaapiprofile.h>
 
28
#include <gst/vaapi/gstvaapisurface.h>
 
29
 
 
30
G_BEGIN_DECLS
 
31
 
 
32
/**
 
33
 * GstVaapiLevelMPEG2:
 
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.
 
38
 *
 
39
 * The set of all levels for #GstVaapiLevelMPEG2.
 
40
 */
 
41
typedef enum {
 
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,
 
46
} GstVaapiLevelMPEG2;
 
47
 
 
48
/* Returns a relative score for the supplied GstVaapiProfile */
 
49
guint
 
50
gst_vaapi_utils_mpeg2_get_profile_score (GstVaapiProfile profile);
 
51
 
 
52
/* Returns GstVaapiProfile from a string representation */
 
53
GstVaapiProfile
 
54
gst_vaapi_utils_mpeg2_get_profile_from_string (const gchar * str);
 
55
 
 
56
/* Returns a string representation for the supplied MPEG-2 profile */
 
57
const gchar *
 
58
gst_vaapi_utils_mpeg2_get_profile_string (GstVaapiProfile profile);
 
59
 
 
60
/* Returns GstVaapiLevelMPEG2 from a string representation */
 
61
GstVaapiLevelMPEG2
 
62
gst_vaapi_utils_mpeg2_get_level_from_string (const gchar * str);
 
63
 
 
64
/* Returns a string representation for the supplied MPEG-2 level */
 
65
const gchar *
 
66
gst_vaapi_utils_mpeg2_get_level_string (GstVaapiLevelMPEG2 level);
 
67
 
 
68
G_END_DECLS
 
69
 
 
70
#endif /* GST_VAAPI_UTILS_MPEG2_H */