const gchar *string_format = NULL;
unsigned int fourcc = 0;
unsigned int pitch = 0;
+ unsigned int size = 0;
int index = 0;
GstVideoInfo info;
}
for (index = 0; index < stream->plane_num; index++) {
- tbm_surface_internal_get_plane_data(surface, index, NULL, NULL, &pitch);
+ tbm_surface_internal_get_plane_data(surface, index, &size, NULL, &pitch);
stream->stride[index] = pitch;
- stream->elevation[index] = stream->height;
+ if (pitch)
+ stream->elevation[index] = size / pitch;
+ else
+ stream->elevation[index] = stream->height;
}
stream->internal_buffer = gst_buffer_ref(buffer);
} else { /* sw codec */