int stride[BUFFER_MAX_PLANE_NUM]; /**< stride of plane */
int elevation[BUFFER_MAX_PLANE_NUM]; /**< elevation of plane */
int orientation; /**< orientation */
+ int plane_num;
} MMPlayerVideoStreamDataType;
/**
unsigned int fourcc = 0;
unsigned int pitch = 0;
int index = 0;
+ GstVideoInfo info;
MMPLAYER_FENTER();
MMPLAYER_RETURN_IF_FAIL(player && player->video_stream_cb);
if (string_format)
fourcc = _mmplayer_convert_fourcc_string_to_value(string_format);
stream->format = util_get_pixtype(fourcc);
+ gst_video_info_from_caps(&info, caps);
+ stream->plane_num = GST_VIDEO_INFO_N_PLANES(&info);
gst_caps_unref(caps);
caps = NULL;
if (player->set_mode.video_zc &&
player->set_mode.media_packet_video_stream &&
gst_is_tizen_memory(mem)) {
+
+ tbm_bo bo = NULL;
for (index = 0; index < gst_tizen_memory_get_num_bos(mem); index++) {
+ bo = gst_tizen_memory_get_bos(mem, index);
+ if (bo)
+ stream->bo[index] = tbm_bo_ref(bo);
+ else
+ LOGE("failed to get bo for index %d", index);
+ }
+
+ for (index = 0; index < stream->plane_num; index++) {
tbm_surface_internal_get_plane_data(surface, index, NULL, NULL, &pitch);
- stream->bo[index] = tbm_bo_ref(gst_tizen_memory_get_bos(mem, index));
stream->stride[index] = pitch;
stream->elevation[index] = stream->height;
}