X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Finclude%2Fmm_player_internal.h;h=8f68a98016316b4efb20ea8ed56c50e8f439ec06;hb=74aa44f93940e2e97ac69c64c02f039bc605df9a;hp=0d4d0341c9ce38f166783e7aa8ad1174b5720ba9;hpb=2c3ca63050b6b747263782b330abbddc0a82005e;p=platform%2Fcore%2Fmultimedia%2Flibmm-player.git diff --git a/src/include/mm_player_internal.h b/src/include/mm_player_internal.h old mode 100755 new mode 100644 index 0d4d034..8f68a98 --- a/src/include/mm_player_internal.h +++ b/src/include/mm_player_internal.h @@ -39,16 +39,16 @@ typedef enum { MM_PLAYER_COLORSPACE_NV12, MM_PLAYER_COLORSPACE_BGRx, /**< BGRx pixel format */ MM_PLAYER_COLORSPACE_MAX = 0x7FFFFFFF -} MMPlayerVideoColorspace; +} mmplayer_video_color_space_e; typedef struct { unsigned char *data; /* capture image buffer */ int size; /* capture image size */ - MMPlayerVideoColorspace fmt; /* color space type */ + mmplayer_video_color_space_e fmt; /* color space type */ unsigned int width; /* width of captured image */ unsigned int height; /* height of captured image */ unsigned int orientation; /* content orientation */ -} MMPlayerVideoCapture; +} mmplayer_video_capture_t; typedef struct { void *data; @@ -58,10 +58,10 @@ typedef struct { int depth; bool is_little_endian; guint64 channel_mask; -} MMPlayerAudioStreamDataType; +} mmplayer_audio_decoded_data_info_t; /** - * Video stream callback function type. + * Video decoded callback function type. * * @param stream [in] Reference pointer to video frame data * @param stream_size [in] Size of video frame data @@ -72,7 +72,7 @@ typedef struct { * * @return This callback function have to return MM_ERROR_NONE. */ -typedef bool (*mm_player_video_stream_callback) (void *stream, void *user_param); +typedef bool (*mm_player_video_decoded_callback)(void *stream, void *user_param); /** * Audio stream callback function type. @@ -84,7 +84,7 @@ typedef bool (*mm_player_video_stream_callback) (void *stream, void *user_param) * * @return This callback function have to return MM_ERROR_NONE. */ -typedef bool (*mm_player_video_capture_callback) (void *stream, int stream_size, void *user_param); +typedef bool (*mm_player_video_capture_callback)(void *stream, int stream_size, void *user_param); /** * Video frame render error callback function type. @@ -95,7 +95,7 @@ typedef bool (*mm_player_video_capture_callback) (void *stream, int stream_size, * * @return This callback function have to return MM_ERROR_NONE. */ -typedef bool (*mm_player_video_frame_render_error_callback) (void *error_id, void *user_param); +typedef bool (*mm_player_video_frame_render_error_callback)(void *error_id, void *user_param); /** * Audio stream callback function type. @@ -106,7 +106,7 @@ typedef bool (*mm_player_video_frame_render_error_callback) (void *error_id, voi * * @return This callback function have to return MM_ERROR_NONE. */ -typedef bool (*mm_player_audio_stream_callback_ex) (MMPlayerAudioStreamDataType *stream, void *user_param); +typedef bool (*mm_player_audio_decoded_callback)(mmplayer_audio_decoded_data_info_t *stream, void *user_param); /** * This function is to set play speed for playback. * @@ -133,26 +133,25 @@ int mm_player_set_play_speed(MMHandleType player, float rate, bool streaming); * @return This function returns zero on success, or negative value with error * code. * @remark - * @see mm_player_video_stream_callback mm_player_set_audio_stream_callback * @since */ -int mm_player_set_video_stream_callback(MMHandleType player, mm_player_video_stream_callback callback, void *user_param); +int mm_player_set_video_decoded_callback(MMHandleType player, mm_player_video_decoded_callback callback, void *user_param); /** * This function set callback function for receiving audio stream from player. * * @param player [in] Handle of player. - * @param sync [in] sync Sync on the clock. - * @param callback [in] audio stream callback function. + * @param opt [in] audio extract option. + * @param callback [in] audio stream callback function. * @param user_param [in] User parameter. * * @return This function returns zero on success, or negative value with error * code. * @remark - * @see mm_player_audio_stream_callback_ex + * @see mm_player_audio_decoded_callback * @since */ -int mm_player_set_audio_stream_callback_ex(MMHandleType player, bool sync, mm_player_audio_stream_callback_ex callback, void *user_param); +int mm_player_set_audio_decoded_callback(MMHandleType player, mmplayer_audio_extract_opt_e opt, mm_player_audio_decoded_callback callback, void *user_param); /** * This function is to capture video frame. @@ -185,19 +184,6 @@ int mm_player_do_video_capture(MMHandleType player); int mm_player_change_videosink(MMHandleType player, MMDisplaySurfaceType display_surface_type, void *display_overlay); /** - * This function is to set pcm spec. - * - * @param player [in] Handle of player. - * @param samplerate [in] Samplerate. - * @param channel [in] Channel. - * - * @return This function returns zero on success, or negative value with error - * @see - * @since - */ -int mm_player_set_pcm_spec(MMHandleType player, int samplerate, int channel); - -/** @} */