Add new internal API to enable extra video convert element
[platform/core/api/mediacodec.git] / include / media_codec_internal.h
1 /*
2 * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 #ifndef __TIZEN_MEDIA_CODEC_INTERNAL_H__
18 #define __TIZEN_MEDIA_CODEC_INTERNAL_H__
19
20 #include <media_codec.h>
21
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25
26 /**
27 * @file media_codec_internal.h
28 * @brief This file contains the internal capi media codec API.
29 */
30
31 /**
32 * @addtogroup CAPI_MEDIA_CODEC_MODULE
33 * @{
34 */
35
36 /**
37  * @brief Retrieves all supported codecs by invoking callback function once for each supported codecs.
38  * @since_tizen 3.0
39  * @param[in] callback  The callback function to invoke
40  * @param[in] user_data The user data to be passed to the callback function
41  * @return @c 0 on success, otherwise a negative error value
42  * @retval #MEDIACODEC_ERROR_NONE Successful
43  * @retval #MEDIACODEC_ERROR_INVALID_PARAMETER Invalid parameter
44  * @see mediacodec_foreach_supported_codec()
45  */
46 int mediacodec_foreach_supported_codec_static(mediacodec_supported_codec_cb callback, void *user_data);
47
48 int mediacodec_enable_extra_video_converter(mediacodec_h mediacodec, gboolean enable, const char *converter_name, int crop_x, int crop_y, int crop_w, int crop_h);
49
50 /**
51  * @}
52  */
53 #ifdef __cplusplus
54 }
55 #endif
56 #endif /*__TIZEN_MEDIA_CODEC_INTERNAL_H__*/