Esempio n. 1
0
static void
_test_query_init_invalid_query_gl (GstGLContext * context, gpointer data)
{
  GstGLQuery q1;

  /* no usage */
  ASSERT_CRITICAL (gst_gl_query_init (&q1, context, GST_GL_QUERY_NONE));
}
Esempio n. 2
0
GstGLQuery *
gst_gl_query_new (GstGLContext * context, GstGLQueryType query_type)
{
  GstGLQuery *query = g_new0 (GstGLQuery, 1);

  gst_gl_query_init (query, context, query_type);

  return query;
}
Esempio n. 3
0
static void
_test_query_init_gl (GstGLContext * context, gpointer data)
{
  GstGLQuery q1;

  /* no usage */
  gst_gl_query_init (&q1, context, GST_GL_QUERY_TIMESTAMP);
  gst_gl_query_unset (&q1);
}
Esempio n. 4
0
static void
_test_query_counter_log_gl (GstGLContext * context, gpointer data)
{
  GstGLQuery q2;

  gst_gl_query_init (&q2, context, GST_GL_QUERY_TIMESTAMP);

  gst_gl_query_counter_log (&q2, gst_test_debug_cat, GST_LEVEL_ERROR, NULL,
      "%s",
      "testing query proxy-logging works from gst_gl_query_counter_log()");
  gst_gl_query_result (&q2);

  gst_gl_query_unset (&q2);
}
Esempio n. 5
0
static void
_test_query_timestamp_gl (GstGLContext * context, gpointer data)
{
  GstGLQuery q2;

  gst_gl_query_init (&q2, context, GST_GL_QUERY_TIMESTAMP);

  /* GST_GL_QUERY_TIMESTAMP doesn't supported start()/end() */
  ASSERT_CRITICAL (gst_gl_query_start (&q2));
  ASSERT_CRITICAL (gst_gl_query_end (&q2));

  gst_gl_query_counter (&q2);
  gst_gl_query_result (&q2);

  gst_gl_query_unset (&q2);
}