ohos-media-sys 0.1.0

Raw Bindings to the media framework on OpenHarmony
Documentation
// automatically generated by rust-bindgen 0.71.1

#![allow(non_upper_case_globals)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
#![allow(deprecated)]
#[allow(unused_imports)]
use crate::averrors::OH_AVErrCode;

/// Key to get the album title of the media source, value type is const char*.
///
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.AVMetadataExtractor
///
/// Available since API-level: 18
#[cfg(feature = "api-18")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-18")))]
pub const OH_AVMETADATA_EXTRACTOR_ALBUM: &::core::ffi::CStr = c"album";
/// Key to get the album performer or artist associated, value type is const char*.
///
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.AVMetadataExtractor
///
/// Available since API-level: 18
#[cfg(feature = "api-18")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-18")))]
pub const OH_AVMETADATA_EXTRACTOR_ALBUM_ARTIST: &::core::ffi::CStr = c"albumArtist";
/// Key to get the artist name, value type is const char*.
///
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.AVMetadataExtractor
///
/// Available since API-level: 18
#[cfg(feature = "api-18")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-18")))]
pub const OH_AVMETADATA_EXTRACTOR_ARTIST: &::core::ffi::CStr = c"artist";
/// Key to get the author name, value type is const char*.
///
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.AVMetadataExtractor
///
/// Available since API-level: 18
#[cfg(feature = "api-18")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-18")))]
pub const OH_AVMETADATA_EXTRACTOR_AUTHOR: &::core::ffi::CStr = c"author";
/// Key to get the created time of the media source, value type is const char*.
///
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.AVMetadataExtractor
///
/// Available since API-level: 18
#[cfg(feature = "api-18")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-18")))]
pub const OH_AVMETADATA_EXTRACTOR_DATE_TIME: &::core::ffi::CStr = c"dateTime";
/// Key to get the created or modified time with the specific date format, value type is const char*.
///
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.AVMetadataExtractor
///
/// Available since API-level: 18
#[cfg(feature = "api-18")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-18")))]
pub const OH_AVMETADATA_EXTRACTOR_DATE_TIME_FORMAT: &::core::ffi::CStr = c"dateTimeFormat";
/// Key to get the composer of the media source, value type is const char*.
///
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.AVMetadataExtractor
///
/// Available since API-level: 18
#[cfg(feature = "api-18")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-18")))]
pub const OH_AVMETADATA_EXTRACTOR_COMPOSER: &::core::ffi::CStr = c"composer";
/// Key to get the playback duration of the media source, value type is int64_t, value unit is millisecond (ms).
///
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.AVMetadataExtractor
///
/// Available since API-level: 18
#[cfg(feature = "api-18")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-18")))]
pub const OH_AVMETADATA_EXTRACTOR_DURATION: &::core::ffi::CStr = c"duration";
/// Key to get the content type or genre, value type is const char*.
///
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.AVMetadataExtractor
///
/// Available since API-level: 18
#[cfg(feature = "api-18")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-18")))]
pub const OH_AVMETADATA_EXTRACTOR_GENRE: &::core::ffi::CStr = c"genre";
/// Key to get the value whether the media resource contains audio content,
/// value type is int32_t. 1 means true and 0 means false.
///
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.AVMetadataExtractor
///
/// Available since API-level: 18
#[cfg(feature = "api-18")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-18")))]
pub const OH_AVMETADATA_EXTRACTOR_HAS_AUDIO: &::core::ffi::CStr = c"hasAudio";
/// Key to get the value whether the media resource contains video content,
/// value type is int32_t. 1 means true and 0 means false.
///
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.AVMetadataExtractor
///
/// Available since API-level: 18
#[cfg(feature = "api-18")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-18")))]
pub const OH_AVMETADATA_EXTRACTOR_HAS_VIDEO: &::core::ffi::CStr = c"hasVideo";
/// Key to get the mime type of the media source, value type is const char*.
/// Some example mime types include: "video/mp4", "audio/mp4", "audio/amr-wb".
///
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.AVMetadataExtractor
///
/// Available since API-level: 18
#[cfg(feature = "api-18")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-18")))]
pub const OH_AVMETADATA_EXTRACTOR_MIME_TYPE: &::core::ffi::CStr = c"mimeType";
/// Key to get the number of tracks, value type is int32_t.
///
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.AVMetadataExtractor
///
/// Available since API-level: 18
#[cfg(feature = "api-18")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-18")))]
pub const OH_AVMETADATA_EXTRACTOR_TRACK_COUNT: &::core::ffi::CStr = c"trackCount";
/// Key to get the audio sample rate, value type is int32_t.
///
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.AVMetadataExtractor
///
/// Available since API-level: 18
#[cfg(feature = "api-18")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-18")))]
pub const OH_AVMETADATA_EXTRACTOR_SAMPLE_RATE: &::core::ffi::CStr = c"sampleRate";
/// Key to get the media source title, value type is const char*.
///
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.AVMetadataExtractor
///
/// Available since API-level: 18
#[cfg(feature = "api-18")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-18")))]
pub const OH_AVMETADATA_EXTRACTOR_TITLE: &::core::ffi::CStr = c"title";
/// Key to get the video height if the media contains video, value type is int32_t.
///
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.AVMetadataExtractor
///
/// Available since API-level: 18
#[cfg(feature = "api-18")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-18")))]
pub const OH_AVMETADATA_EXTRACTOR_VIDEO_HEIGHT: &::core::ffi::CStr = c"videoHeight";
/// Key to get the video width if the media contains video, value type is int32_t.
///
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.AVMetadataExtractor
///
/// Available since API-level: 18
#[cfg(feature = "api-18")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-18")))]
pub const OH_AVMETADATA_EXTRACTOR_VIDEO_WIDTH: &::core::ffi::CStr = c"videoWidth";
/// Key to get the video rotation angle, value type is int32_t.
///
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.AVMetadataExtractor
///
/// Available since API-level: 18
#[cfg(feature = "api-18")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-18")))]
pub const OH_AVMETADATA_EXTRACTOR_VIDEO_ORIENTATION: &::core::ffi::CStr = c"videoOrientation";
/// Key to get the information whether the video is HDR video, value type is int32_t.
/// For details of the value, see [`OH_Core_HdrType`] defined in [`media_types.h`].
///
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.AVMetadataExtractor
///
/// Available since API-level: 18
#[cfg(feature = "api-18")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-18")))]
pub const OH_AVMETADATA_EXTRACTOR_VIDEO_IS_HDR_VIVID: &::core::ffi::CStr = c"hdrType";
/// Key to get the latitude value in the geographical location, value type is float.
///
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.AVMetadataExtractor
///
/// Available since API-level: 18
#[cfg(feature = "api-18")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-18")))]
pub const OH_AVMETADATA_EXTRACTOR_LOCATION_LATITUDE: &::core::ffi::CStr = c"latitude";
/// Key to get the longitude value in the geographical location, value type is float.
///
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.AVMetadataExtractor
///
/// Available since API-level: 18
#[cfg(feature = "api-18")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-18")))]
pub const OH_AVMETADATA_EXTRACTOR_LOCATION_LONGITUDE: &::core::ffi::CStr = c"longitude";