[0.3.101] remove unused internal api 47/189347/1 accepted/tizen/unified/20180918.062930 submit/tizen/20180917.093300
authorEunhae Choi <eunhae1.choi@samsung.com>
Mon, 17 Sep 2018 06:52:35 +0000 (15:52 +0900)
committerEunhae Choi <eunhae1.choi@samsung.com>
Mon, 17 Sep 2018 06:52:35 +0000 (15:52 +0900)
Change-Id: Ibc0760fa9d1b1e0b55461ef8e9362643c5f0fbda

include/player_internal.h
packaging/capi-media-player.spec
src/player.c
src/player_internal.c

index 1cd57cc2703957d273f2a2bfa9eead4e6666bf6f..635bf3c8b966af7f3e2b4af8d7f68bd5ad3e81d4 100644 (file)
@@ -550,40 +550,6 @@ int player_get_media_packet_video_frame_pool_size(player_h player, int *size);
  */
 int player_enable_media_packet_video_frame_decoded_cb(player_h player, bool enable);
 
-/**
- * @brief Set video codec type as h/w codec or s/w codec.
- * @since_tizen 4.0
- * @details The default video codec type of the player is #PLAYER_VIDEO_CODEC_TYPE_DEFAULT.
- *          Usually the H/W codec has higher priority than S/W codec if it exist.
- * @param[in] player The handle to the media player
- * @param[in] type   The video codec type
- * @return @c 0 on success,
- *         otherwise a negative error value
- * @retval #PLAYER_ERROR_NONE Successful
- * @retval #PLAYER_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #PLAYER_ERROR_INVALID_OPERATION Invalid operation
- * @retval #PLAYER_ERROR_INVALID_STATE Invalid player state
- * @pre The player state must be #PLAYER_STATE_IDLE by player_create() or player_unprepare().
- * @see player_get_video_codec_type()
- */
-int player_set_video_codec_type(player_h player, player_video_codec_type_e type);
-
-/**
- * @brief Get video codec type.
- * @since_tizen 4.0
- * @param[in]  player The handle to the media player
- * @param[out] ptype  The video codec type
- * @return @c 0 on success,
- *         otherwise a negative error value
- * @retval #PLAYER_ERROR_NONE Successful
- * @retval #PLAYER_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #PLAYER_ERROR_INVALID_OPERATION Invalid operation
- * @retval #PLAYER_ERROR_INVALID_STATE Invalid player state
- * @pre The player state must be one of these: #PLAYER_STATE_IDLE, #PLAYER_STATE_READY, #PLAYER_STATE_PLAYING, or #PLAYER_STATE_PAUSED.
- * @see player_set_video_codec_type()
- */
-int player_get_video_codec_type(player_h player, player_video_codec_type_e *ptype);
-
 /**
  * @brief Set audio/video codec type as h/w codec or s/w codec.
  * @since_tizen 4.0
index e2474903965ac14965ab728177fedf548aba0ca3..f26e671d53ca4c08b3a04b86a7e9544517d13135 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-media-player
 Summary:    A Media Player API
-Version:    0.3.100
+Version:    0.3.101
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index 94494a31332af9e73539f87f085482447b76e881..a28729e32fb7aaf798ad4f81e134891b83f9e672 100644 (file)
@@ -2251,6 +2251,8 @@ int player_set_memory_buffer(player_h player, const void *data, int size)
        tbm_bo_handle thandle;
        tbm_fd tfd = INVALID_DEFAULT_VALUE;
 
+       LOGD("ENTER");
+
        /* before setting mem buffer, player state have to be checked. */
        PLAYER_STATE_CHECK(pc, PLAYER_STATE_IDLE);
 
index 59cb077d474b55965d94dcf6f378e857b6e1137b..36f1ff49a1aad96ca087d0f6c9ce6f6f27d36baf 100644 (file)
@@ -381,59 +381,13 @@ int player_enable_media_packet_video_frame_decoded_cb(player_h player, bool enab
        player_cli_s *pc = (player_cli_s *) player;
        char *ret_buf = NULL;
 
-       LOGD("ENTER");
+       LOGD("ENTER %d", enable);
 
        PLAYER_SEND_MSG(api, pc, ret_buf, ret, MUSE_TYPE_INT, "enable", enable);
        g_free(ret_buf);
        return ret;
 }
 
-int player_set_video_codec_type(player_h player, player_video_codec_type_e codec_type)
-{
-       PLAYER_INSTANCE_CHECK(player);
-
-       int ret = PLAYER_ERROR_NONE;
-       muse_player_api_e api = MUSE_PLAYER_API_SET_CODEC_TYPE;
-       player_cli_s *pc = (player_cli_s *) player;
-       char *ret_buf = NULL;
-       int stream_type = PLAYER_STREAM_TYPE_VIDEO;
-
-       LOGD("ENTER %d", codec_type);
-
-       PLAYER_SEND_MSG(api, pc, ret_buf, ret,
-                                       MUSE_TYPE_INT, "stream_type", stream_type,
-                                       MUSE_TYPE_INT, "codec_type", codec_type);
-
-       g_free(ret_buf);
-       LOGD("LEAVE");
-       return ret;
-}
-
-int player_get_video_codec_type(player_h player, player_video_codec_type_e *pcodec_type)
-{
-       PLAYER_INSTANCE_CHECK(player);
-       PLAYER_NULL_ARG_CHECK(pcodec_type);
-
-       int ret = PLAYER_ERROR_NONE;
-       muse_player_api_e api = MUSE_PLAYER_API_GET_CODEC_TYPE;
-       player_cli_s *pc = (player_cli_s *) player;
-       char *ret_buf = NULL;
-       int stream_type = PLAYER_STREAM_TYPE_VIDEO;
-       int codec_type = 0;
-
-       LOGD("ENTER");
-
-       PLAYER_SEND_MSG(api, pc, ret_buf, ret, MUSE_TYPE_INT, "stream_type", stream_type);
-       if (ret == PLAYER_ERROR_NONE) {
-               player_msg_get(codec_type, ret_buf);
-               *pcodec_type = codec_type;
-       }
-
-       g_free(ret_buf);
-       LOGD("LEAVE");
-       return ret;
-}
-
 int player_set_codec_type(player_h player, player_stream_type_e stream_type, player_codec_type_e codec_type)
 {
        PLAYER_INSTANCE_CHECK(player);