[0.6.93] add some log messages for 360 80/170080/2
authorEunhae Choi <eunhae1.choi@samsung.com>
Tue, 13 Feb 2018 07:49:03 +0000 (16:49 +0900)
committerEunhae Choi <eunhae1.choi@samsung.com>
Tue, 13 Feb 2018 07:49:22 +0000 (16:49 +0900)
Change-Id: I847813d0efcb4c2634b1aedb9541cad94d4a98c6

src/mm_player_360.c
src/mm_player_priv.c

index 29fddb9737b74033f2ad1accf4e318a61037e71c..5a872be77d263b5c78f9d873dd9e736b582efcf5 100644 (file)
@@ -69,9 +69,9 @@ int _mmplayer_360_set_enable(MMHandleType hplayer, bool enable)
 
        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;
        }
 
@@ -104,6 +104,8 @@ int _mmplayer_360_is_enabled(MMHandleType hplayer, bool *enabled)
                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;
        }
 
@@ -135,6 +137,7 @@ int _mmplayer_360_set_direction_of_view(MMHandleType hplayer, float yaw, float p
        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);
@@ -180,6 +183,8 @@ int _mmplayer_360_get_direction_of_view(MMHandleType hplayer, float *yaw, float
                                "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;
        }
 
@@ -209,6 +214,8 @@ int _mmplayer_360_set_zoom(MMHandleType hplayer, float level)
 
        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;
@@ -244,6 +251,8 @@ int _mmplayer_360_get_zoom(MMHandleType hplayer, float *level)
                g_object_get(G_OBJECT(player->pipeline->videobin[MMPLAYER_V_360].gst),
                                "zoom", &current_zoom, NULL);
                *level = 1.0f / current_zoom;
+
+               LOGD("get level %f", *level);
                return MM_ERROR_NONE;
        }
 
@@ -274,6 +283,7 @@ int _mmplayer_360_set_field_of_view(MMHandleType hplayer, int horizontal_degrees
 
        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;
@@ -308,6 +318,8 @@ int _mmplayer_360_get_field_of_view(MMHandleType hplayer, int *horizontal_degree
        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;
        }
 
index c7afcefdd5221b4619758d835d8b351b50e856b7..cab514a77c00c0c1c634748d8297993ac4ee9b9a 100644 (file)
@@ -2114,6 +2114,7 @@ if (gst_tag_list_get_double(tag_list, gsttag, &v_double)) {\
                                LOGD("This is spherical content for 360 playback.");
                                player->is_content_spherical = TRUE;
                        } else {
+                               LOGD("This is not spherical content");
                                player->is_content_spherical = FALSE;
                        }