if (player->is_content_spherical && __mmplayer_check_video_360_used(player)) {
/* We will get here if player is pending ready or ready and above */
+ LOGD("set enabled %d", enable);
g_object_set(G_OBJECT(player->pipeline->videobin[MMPLAYER_V_360].gst),
"passthrough", !enable, NULL);
-
return MM_ERROR_NONE;
}
g_object_get(G_OBJECT(player->pipeline->videobin[MMPLAYER_V_360].gst),
"passthrough", enabled, NULL);
*enabled = !(*enabled);
+
+ LOGD("get enabled %d", *enabled);
return MM_ERROR_NONE;
}
if (player->is_content_spherical) {
/* We will get here if player is pending ready or ready and above */
if (__mmplayer_check_video_360_used(player)) {
+ LOGD("set yaw %f, pitch %f for video", yaw, pitch);
g_object_set(G_OBJECT(player->pipeline->videobin[MMPLAYER_V_360].gst),
"pose-yaw", (int) (yaw * 180.0f / M_PI),
"pose-pitch", (int) (pitch * 180.0f / M_PI), NULL);
"pose-yaw", &yaw_degrees, "pose-pitch", &pitch_degrees, NULL);
*yaw = M_PI * yaw_degrees / 180.0f;
*pitch = M_PI * pitch_degrees / 180.0f;
+
+ LOGD("get yaw %f, pitch %f", yaw, pitch);
return MM_ERROR_NONE;
}
if (player->is_content_spherical && __mmplayer_check_video_360_used(player)) {
/* We will get here if player is pending ready or ready and above */
+
+ LOGD("set level %f", level);
g_object_set(G_OBJECT(player->pipeline->videobin[MMPLAYER_V_360].gst),
"zoom", 1.0f / level, NULL);
return MM_ERROR_NONE;
g_object_get(G_OBJECT(player->pipeline->videobin[MMPLAYER_V_360].gst),
"zoom", ¤t_zoom, NULL);
*level = 1.0f / current_zoom;
+
+ LOGD("get level %f", *level);
return MM_ERROR_NONE;
}
if (player->is_content_spherical && __mmplayer_check_video_360_used(player)) {
/* We will get here if player is pending ready or ready and above */
+ LOGD("set h-fov %d, v-fov %d", horizontal_degrees, vertical_degrees);
g_object_set(G_OBJECT(player->pipeline->videobin[MMPLAYER_V_360].gst),
"horizontal-fov", horizontal_degrees, "vertical-fov", vertical_degrees, NULL);
return MM_ERROR_NONE;
if (player->is_content_spherical && __mmplayer_check_video_360_used(player)) {
g_object_get(G_OBJECT(player->pipeline->videobin[MMPLAYER_V_360].gst),
"horizontal-fov", horizontal_degrees, "vertical-fov", vertical_degrees, NULL);
+
+ LOGD("get h-fov %d, v-fov %d", *horizontal_degrees, *vertical_degrees);
return MM_ERROR_NONE;
}