2 * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 #ifndef __TIZEN_MEDIA_CODEC_INTERNAL_H__
18 #define __TIZEN_MEDIA_CODEC_INTERNAL_H__
20 #include <media_codec.h>
27 * @file media_codec_internal.h
28 * @brief This file contains the internal capi media codec API.
32 * @addtogroup CAPI_MEDIA_CODEC_MODULE
37 * @brief Retrieves all supported codecs by invoking callback function once for each supported codecs.
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()
46 int mediacodec_foreach_supported_codec_static(mediacodec_supported_codec_cb callback, void *user_data);
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);
56 #endif /*__TIZEN_MEDIA_CODEC_INTERNAL_H__*/