change file permission to 644
[platform/core/multimedia/libmm-player.git] / src / include / mm_player_es.h
1 /*
2  * libmm-player
3  *
4  * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact: JongHyuk Choi <jhchoi.choi@samsung.com>, heechul jeon <heechul.jeon@samsung.co>,
7  * YoungHwan An <younghwan_.an@samsung.com>, Eunhae Choi <eunhae1.choi@samsung.com>
8  *
9  * Licensed under the Apache License, Version 2.0 (the "License");
10  * you may not use this file except in compliance with the License.
11  * You may obtain a copy of the License at
12  *
13  * http://www.apache.org/licenses/LICENSE-2.0
14  *
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  *
21  */
22
23 #ifndef __MM_PLAYER_ES_H__
24 #define __MM_PLAYER_ES_H__
25
26 /*=======================================================================================
27 | INCLUDE FILES                                                                         |
28 ========================================================================================*/
29 #include <mm_types.h>
30 #include "mm_player_priv.h"
31
32 #ifdef __cplusplus
33 extern "C"
34 {
35 #endif
36
37 /*=======================================================================================
38 | GLOBAL FUNCTION PROTOTYPES                                                            |
39 ========================================================================================*/
40
41 int _mmplayer_set_video_info (MMHandleType player, media_format_h format);
42
43 int _mmplayer_set_audio_info (MMHandleType player, media_format_h format);
44
45 int _mmplayer_set_subtitle_info (MMHandleType player, MMPlayerSubtitleStreamInfo * info);
46
47 int _mmplayer_submit_packet (MMHandleType player, media_packet_h packet);
48
49 int _mmplayer_set_media_stream_buffer_status_cb (MMHandleType player,
50                                                  MMPlayerStreamType type,
51                                                  mm_player_media_stream_buffer_status_callback callback,
52                                                  void * user_param);
53
54 int _mmplayer_set_media_stream_seek_data_cb (MMHandleType player,
55                                              MMPlayerStreamType type,
56                                              mm_player_media_stream_seek_data_callback callback,
57                                              void * user_param);
58
59 int _mmplayer_set_media_stream_max_size (MMHandleType hplayer,
60                                          MMPlayerStreamType type,
61                                          guint64 max_size);
62
63 int _mmplayer_get_media_stream_max_size(MMHandleType hplayer,
64                                         MMPlayerStreamType type,
65                                         guint64 *max_size);
66
67 int _mmplayer_set_media_stream_min_percent(MMHandleType hplayer,
68                                            MMPlayerStreamType type,
69                                            guint min_percent);
70
71 int _mmplayer_get_media_stream_min_percent(MMHandleType hplayer,
72                                            MMPlayerStreamType type,
73                                            guint *min_percent);
74
75 #ifdef __cplusplus
76 }
77 #endif
78
79 #endif