GstMemory * gst_droid_codec_gralloc_allocator_get_gralloc_memory (GstMemory * mem) { if (!gst_memory_is_type (mem, GST_ALLOCATOR_DROID_CODEC_GRALLOC)) { return NULL; } return ((GstDroidCodecGrallocMemory *) mem)->gralloc; }
OMX_BUFFERHEADERTYPE * gst_droid_codec_gralloc_allocator_get_omx_buffer (GstMemory * mem) { if (!gst_memory_is_type (mem, GST_ALLOCATOR_DROID_CODEC_GRALLOC)) { return NULL; } return ((GstDroidCodecGrallocMemory *) mem)->omx_buf; }
gboolean gst_is_v4l2_memory (GstMemory * mem) { return gst_memory_is_type (mem, GST_V4L2_MEMORY_TYPE); }
gboolean gst_is_droid_media_buffer_memory (GstMemory * mem) { return gst_memory_is_type (mem, GST_ALLOCATOR_DROID_MEDIA_BUFFER); }
gboolean gst_is_wl_shm_memory (GstMemory * mem) { return gst_memory_is_type (mem, GST_ALLOCATOR_WL_SHM); }