[0.6.286] Change the property name for setting max-bitrate used in adaptivedemux
[platform/core/multimedia/libmm-player.git] / src / include / mm_player_capture.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>, YeJin Cho <cho.yejin@samsung.com>,
7  * Seungbae Shin <seungbae.shin@samsung.com>, YoungHwan An <younghwan_.an@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_CAPTURE_H__
24 #define __MM_PLAYER_CAPTURE_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 #endif
35
36 #define MAX_BUFFER_PLANE        3
37 #define MM_ALIGN(x, a)      (((x) + (a) - 1) & ~((a) - 1))
38
39 /*=======================================================================================
40 | GLOBAL FUNCTION PROTOTYPES                                                            |
41 ========================================================================================*/
42 /**
43  * This function is to initialize video capture
44  *
45  * @param[in]   handle          Handle of player.
46  * @return      This function returns zero on success, or negative value with errors.
47  * @remarks
48  * @see
49  *
50  */
51 int _mmplayer_initialize_video_capture(mmplayer_t *player);
52
53 /**
54  * This function is to release video capture
55  *
56  * @param[in]   handle          Handle of player.
57  * @return      This function returns zero on success, or negative value with errors.
58  * @remarks
59  * @see
60  *
61  */
62 int _mmplayer_release_video_capture(mmplayer_t *player);
63
64 /**
65  * This function is to get video snapshot during playback.
66  *
67  * @param[in]   handle          Handle of player.
68  * @return      This function returns zero on success, or negative value with errors.
69  * @remarks
70  * @see
71  *
72  */
73 int _mmplayer_do_video_capture(MMHandleType hplayer);
74
75 #ifdef __cplusplus
76         }
77 #endif
78
79 #endif