Media utility functions. More...

#include "base.h" #include "config.h"

Data Structures
struct otc_media_utils_codecs

Detailed Description

Media utility functions.

This file includes an otc_media_utils_get_supported_codecs(otc_media_utils_codecs** supported_codecs) function, which you can use to find the video codecs supported on the device.

Typedef Documentation

otc_video_codec_type

Video codec type type definition.

Enumeration Type Documentation

otc_video_codec_type

Video codec type enum.

Enumerator
OTC_VIDEO_CODEC_UNKNOWN Video codec unknown (used for stats reports)
OTC_VIDEO_CODEC_VP8 Video codec type for VP8.
OTC_VIDEO_CODEC_H264 Video codec type for H.264.
OTC_VIDEO_CODEC_VP9 Video codec type for VP9.

Function Documentation

otc_media_utils_codecs_delete()

otc_status otc_media_utils_codecs_delete ( otc_media_utils_codecs * supported_codecs )

Deletes an otc_media_utils_codecs instance.

Parameters : | | | | --- | --- | | supported_codecs | The otc_media_utils_codecs instance to be deleted. |

Returns : Return value indicating either error or success.

otc_media_utils_get_supported_codecs()

otc_status otc_media_utils_get_supported_codecs ( otc_media_utils_codecs ** supported_codecs )

Updates a otc_media_utils_codecs struct with the media codecs that are available on the device.

Parameters : | | | | --- | --- | | supported_codecs | Output parameter for a structure representing the media codecs available on the device. The developer is responsible for releasing the memory allocated after using it. |

Returns : Return value indicating either error or success.