/**
* @brief Gets container MIME type of media format.
* @since_tizen 3.0
+ * @remarks Since 6.5, #MEDIA_FORMAT_ERROR_INVALID_OPERATION is removed.
* @param[in] fmt The #media_format_h to get container mime type
* @param[out] mimetype The #media_format_mimetype_e, ex) #MEDIA_FORMAT_CONTAINER_MP4
*
* otherwise a negative error value
* @retval #MEDIA_FORMAT_ERROR_NONE Successful
* @retval #MEDIA_FORMAT_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #MEDIA_FORMAT_ERROR_INVALID_OPERATION Invalid operation
* @see media_format_set_container_mime()
*/
int media_format_get_container_mime(media_format_h fmt, media_format_mimetype_e *mimetype);
/**
* @brief Gets text track information of media format.
* @since_tizen 3.0
+ * @remarks Since 6.5, #MEDIA_FORMAT_ERROR_INVALID_OPERATION is removed.
* @param[in] fmt The #media_format_h to get text information
* @param[out] mimetype The #media_format_mimetype_e, ex) #MEDIA_FORMAT_TEXT_MP4
* @param[out] type The #media_format_text_type_e
* otherwise a negative error value
* @retval #MEDIA_FORMAT_ERROR_NONE Successful
* @retval #MEDIA_FORMAT_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #MEDIA_FORMAT_ERROR_INVALID_OPERATION Invalid operation
* @see media_format_set_text_mime()
*/
int media_format_get_text_info(media_format_h fmt, media_format_mimetype_e *mimetype, media_format_text_type_e *type);
/**
* @brief Gets video information of media format.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @remarks Since 6.5, #MEDIA_FORMAT_ERROR_INVALID_OPERATION is removed.
* @details returns mimetype, width, height, average bps, max bps of this media format.
* @param[in] fmt #media_format_h to get video information
* @param[out] mimetype #media_format_mimetype_e , ex) #MEDIA_FORMAT_H264_HP
* otherwise a negative error value
* @retval #MEDIA_FORMAT_ERROR_NONE Successful
* @retval #MEDIA_FORMAT_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #MEDIA_FORMAT_ERROR_INVALID_OPERATION Invalid operation
* @see media_format_set_video_mime()
* @see media_format_set_video_width()
* @see media_format_set_video_height()
/**
* @brief Gets audio information of media format.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @remarks Since 6.5, #MEDIA_FORMAT_ERROR_INVALID_OPERATION is removed.
* @details returns mimetype, channels, height, samplerate bps, max bps of this media format.
* @param[in] fmt #media_format_h to get audio information
* @param[out] mimetype #media_format_mimetype_e , ex) #MEDIA_FORMAT_PCM
* otherwise a negative error value
* @retval #MEDIA_FORMAT_ERROR_NONE Successful
* @retval #MEDIA_FORMAT_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #MEDIA_FORMAT_ERROR_INVALID_OPERATION Invalid operation
* @see media_format_set_audio_mime()
* @see media_format_set_audio_channel()
* @see media_format_set_audio_samplerate()
/**
* @brief Gets audio aac type of media format.
* @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
+ * @remarks Since 6.5, #MEDIA_FORMAT_ERROR_INVALID_OPERATION is removed.
* @param[in] fmt #media_format_h to get audio information
* @param[out] is_adts AAC ADTS flag of the audio
*
* otherwise a negative error value
* @retval #MEDIA_FORMAT_ERROR_NONE Successful
* @retval #MEDIA_FORMAT_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #MEDIA_FORMAT_ERROR_INVALID_OPERATION Invalid operation
* @see media_format_set_audio_aac_type()
*/
int media_format_get_audio_aac_type(media_format_h fmt, bool *is_adts);
/**
* @brief Gets audio aac header type of media format.
* @since_tizen 3.0
+ * @remarks Since 6.5, #MEDIA_FORMAT_ERROR_INVALID_OPERATION is removed.
* @param[in] fmt The #media_format_h to get audio information
* @param[out] aac_header_type The #media_format_aac_header_type_e, ex) #MEDIA_FORMAT_AAC_HEADER_ADTS
*
* otherwise a negative error value
* @retval #MEDIA_FORMAT_ERROR_NONE Successful
* @retval #MEDIA_FORMAT_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #MEDIA_FORMAT_ERROR_INVALID_OPERATION Invalid operation
* @see media_format_set_audio_aac_header_type()
*/
int media_format_get_audio_aac_header_type(media_format_h fmt, media_format_aac_header_type_e *aac_header_type);
/**
* @brief Gets video frame rate of media format.
* @since_tizen 3.0
+ * @remarks Since 6.5, #MEDIA_FORMAT_ERROR_INVALID_OPERATION is removed.
* @param[in] fmt The #media_format_h to get
* @param[out] frame_rate The video frame rate
*
* otherwise a negative error value
* @retval #MEDIA_FORMAT_ERROR_NONE Successful
* @retval #MEDIA_FORMAT_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #MEDIA_FORMAT_ERROR_INVALID_OPERATION Invalid operation
*/
int media_format_get_video_frame_rate(media_format_h fmt, int *frame_rate);
if (!CHECK_IS_TEXT(fmt_handle->mimetype)) {
LOGE("format[%p, mimetype:0x%x] is not for MEDIA_FORMAT_TEXT..", fmt_handle, fmt_handle->mimetype);
- return MEDIA_FORMAT_ERROR_INVALID_OPERATION;
+ return MEDIA_FORMAT_ERROR_INVALID_PARAMETER;
}
if (mimetype)
if (!CHECK_IS_VIDEO(fmt_handle->mimetype)) {
LOGE("format[%p, mimetype:0x%x] is not for MEDIA_FORMAT_VIDEO..", fmt_handle, fmt_handle->mimetype);
- return MEDIA_FORMAT_ERROR_INVALID_OPERATION;
+ return MEDIA_FORMAT_ERROR_INVALID_PARAMETER;
}
if (mimetype)
if (!CHECK_IS_AUDIO(fmt_handle->mimetype)) {
LOGE("format[%p, mimetype:0x%x] is not for MEDIA_FORMAT_AUDIO..", fmt_handle, fmt_handle->mimetype);
- return MEDIA_FORMAT_ERROR_INVALID_OPERATION;
+ return MEDIA_FORMAT_ERROR_INVALID_PARAMETER;
}
if (mimetype)
*mimetype = fmt_handle->mimetype;
if (!(fmt_handle->mimetype == MEDIA_FORMAT_AAC_LC || fmt_handle->mimetype == MEDIA_FORMAT_AAC_HE || fmt_handle->mimetype == MEDIA_FORMAT_AAC_HE_PS)) {
LOGE("format[%p, mimetype:0x%x] is not aac format..", fmt_handle, fmt_handle->mimetype);
- return MEDIA_FORMAT_ERROR_INVALID_OPERATION;
+ return MEDIA_FORMAT_ERROR_INVALID_PARAMETER;
}
*is_adts = fmt_handle->detail.audio.is_adts;
if (!(fmt_handle->mimetype == MEDIA_FORMAT_AAC_LC || fmt_handle->mimetype == MEDIA_FORMAT_AAC_HE || fmt_handle->mimetype == MEDIA_FORMAT_AAC_HE_PS)) {
LOGE("format[%p, mimetype:0x%x] is not aac format..", fmt_handle, fmt_handle->mimetype);
- return MEDIA_FORMAT_ERROR_INVALID_OPERATION;
+ return MEDIA_FORMAT_ERROR_INVALID_PARAMETER;
}
*aac_header_type = fmt_handle->detail.audio.aac_header_type;
if (!CHECK_IS_VIDEO(fmt_handle->mimetype)) {
LOGE("format[%p, mimetype:0x%x] is not for MEDIA_FORMAT_VIDEO..", fmt_handle, fmt_handle->mimetype);
- return MEDIA_FORMAT_ERROR_INVALID_OPERATION;
+ return MEDIA_FORMAT_ERROR_INVALID_PARAMETER;
}
*frame_rate = fmt_handle->detail.video.frame_rate;