VADisplay display;
gboolean create_display;
VAProfile *profiles;
- unsigned int num_profiles;
+ guint num_profiles;
VAImageFormat *image_formats;
- unsigned int num_image_formats;
+ guint num_image_formats;
VAImageFormat *subpicture_formats;
- unsigned int *subpicture_flags;
- unsigned int num_subpicture_formats;
+ guint *subpicture_flags;
+ guint num_subpicture_formats;
};
enum {
static void
append_format(
VAImageFormat **pva_formats,
- unsigned int *pnum_va_formats,
+ guint *pnum_va_formats,
GstVaapiImageFormat format
)
{
}
static void
-filter_formats(VAImageFormat **pva_formats, unsigned int *pnum_va_formats)
+filter_formats(VAImageFormat **pva_formats, guint *pnum_va_formats)
{
- unsigned int i = 0;
+ guint i = 0;
gboolean has_YV12 = FALSE;
gboolean has_I420 = FALSE;
GstVaapiDisplayPrivate * const priv = display->priv;
VAStatus status;
int major_version, minor_version;
- unsigned int i;
+ guint i;
if (!priv->display && priv->create_display) {
GstVaapiDisplayClass *klass = GST_VAAPI_DISPLAY_GET_CLASS(display);
priv->subpicture_formats = g_new(VAImageFormat, priv->num_subpicture_formats);
if (!priv->subpicture_formats)
return FALSE;
- priv->subpicture_flags = g_new(unsigned int, priv->num_subpicture_formats);
+ priv->subpicture_flags = g_new(guint, priv->num_subpicture_formats);
if (!priv->subpicture_flags)
return FALSE;
status = vaQuerySubpictureFormats(
GstVaapiDisplay *display,
GstVaapiImageFormat format,
const VAImageFormat *va_formats,
- unsigned int num_va_formats
+ guint num_va_formats
)
{
- unsigned int i;
+ guint i;
g_return_val_if_fail(format != 0, FALSE);
_gst_vaapi_display_get_caps(
GstVaapiDisplay *display,
const VAImageFormat *va_formats,
- unsigned int num_va_formats
+ guint num_va_formats
)
{
GstCaps *out_caps;
- unsigned int i;
+ guint i;
out_caps = gst_caps_new_empty();
if (!out_caps)
StructureNotifyMask);
Window
-x11_create_window(Display *display, unsigned int width, unsigned int height)
+x11_create_window(Display *display, guint width, guint height)
{
Window root_window, window;
int screen, depth;
{
Window rootwin;
int x, y;
- unsigned int width, height, border_width, depth;
+ guint width, height, border_width, depth;
x11_trap_errors();
XGetGeometry(