[1.0.2] fix wrong condition
[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 int _mmplayer_set_video_info(MMHandleType player, media_format_h format);
41
42 int _mmplayer_set_audio_info(MMHandleType player, media_format_h format);
43
44 int _mmplayer_set_subtitle_info(MMHandleType player, mmplayer_subtitle_stream_info_t *info);
45
46 int _mmplayer_submit_packet(MMHandleType player, media_packet_h packet);
47
48 int _mmplayer_set_media_stream_max_size(MMHandleType hplayer,
49                                                                                         mmplayer_stream_type_e type,
50                                                                                         guint64 max_size);
51
52 int _mmplayer_get_media_stream_max_size(MMHandleType hplayer,
53                                                                                         mmplayer_stream_type_e type,
54                                                                                         guint64 *max_size);
55
56 int _mmplayer_set_media_stream_min_percent(MMHandleType hplayer,
57                                                                                         mmplayer_stream_type_e type,
58                                                                                         guint min_percent);
59
60 int _mmplayer_get_media_stream_min_percent(MMHandleType hplayer,
61                                                                                         mmplayer_stream_type_e type,
62                                                                                         guint *min_percent);
63 int _mmplayer_set_media_stream_dynamic_resolution(MMHandleType hplayer, bool drc);
64
65 #ifdef __cplusplus
66 }
67 #endif
68
69 #endif