Lines Matching refs:klass
37 _cache_java_class (GstAmcSurfaceClass * klass, GError ** err) in _cache_java_class() argument
45 klass->jklass = gst_amc_jni_get_class (env, err, "android/view/Surface"); in _cache_java_class()
46 if (!klass->jklass) { in _cache_java_class()
50 klass->constructor = in _cache_java_class()
51 gst_amc_jni_get_method_id (env, err, klass->jklass, "<init>", in _cache_java_class()
53 if (!klass->constructor) { in _cache_java_class()
57 klass->is_valid = in _cache_java_class()
58 gst_amc_jni_get_method_id (env, err, klass->jklass, "isValid", "()Z"); in _cache_java_class()
59 if (!klass->is_valid) { in _cache_java_class()
63 klass->release = in _cache_java_class()
64 gst_amc_jni_get_method_id (env, err, klass->jklass, "release", "()V"); in _cache_java_class()
65 if (!klass->release) { in _cache_java_class()
69 klass->describe_contents = in _cache_java_class()
70 gst_amc_jni_get_method_id (env, err, klass->jklass, "describeContents", in _cache_java_class()
72 if (!klass->describe_contents) { in _cache_java_class()
79 gst_amc_jni_object_unref (env, klass->jklass); in _cache_java_class()
84 gst_amc_surface_class_init (GstAmcSurfaceClass * klass) in gst_amc_surface_class_init() argument
87 GObjectClass *gobject_class = G_OBJECT_CLASS (klass); in gst_amc_surface_class_init()
89 parent_class = g_type_class_peek_parent (klass); in gst_amc_surface_class_init()
92 if (!_cache_java_class (klass, &err)) { in gst_amc_surface_class_init()
137 GstAmcSurfaceClass *klass; in gst_amc_surface_new() local
142 klass = GST_AMC_SURFACE_GET_CLASS (surface); in gst_amc_surface_new()
144 surface->jobject = gst_amc_jni_new_object (env, err, TRUE, klass->jklass, in gst_amc_surface_new()
145 klass->constructor, gst_amc_surface_texture_jni_get_jobject (texture)); in gst_amc_surface_new()
160 GstAmcSurfaceClass *klass; in gst_amc_surface_is_valid() local
163 klass = GST_AMC_SURFACE_GET_CLASS (self); in gst_amc_surface_is_valid()
166 klass->is_valid, result); in gst_amc_surface_is_valid()
173 GstAmcSurfaceClass *klass; in gst_amc_surface_release() local
176 klass = GST_AMC_SURFACE_GET_CLASS (self); in gst_amc_surface_release()
178 return gst_amc_jni_call_void_method (env, err, self->jobject, klass->release); in gst_amc_surface_release()
186 GstAmcSurfaceClass *klass; in gst_amc_surface_describe_contents() local
189 klass = GST_AMC_SURFACE_GET_CLASS (self); in gst_amc_surface_describe_contents()
192 klass->describe_contents, result); in gst_amc_surface_describe_contents()