#![allow(non_upper_case_globals)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
#![allow(deprecated)]
#[allow(unused_imports)]
use crate::averrors::OH_AVErrCode;
#[allow(unused_imports)]
use crate::avimage_generator_base::OH_AVImageGenerator_QueryOptions;
use ohos_sys_opaque_types::OH_PixelmapNative;
#[cfg(feature = "api-18")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-18")))]
#[repr(C)]
pub struct OH_AVImageGenerator {
_unused: [u8; 0],
}
extern "C" {
#[cfg(feature = "api-18")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-18")))]
pub fn OH_AVImageGenerator_Create() -> *mut OH_AVImageGenerator;
#[cfg(feature = "api-18")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-18")))]
pub fn OH_AVImageGenerator_SetFDSource(
generator: *mut OH_AVImageGenerator,
fd: i32,
offset: i64,
size: i64,
) -> OH_AVErrCode;
#[cfg(feature = "api-18")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-18")))]
pub fn OH_AVImageGenerator_FetchFrameByTime(
generator: *mut OH_AVImageGenerator,
timeUs: i64,
options: OH_AVImageGenerator_QueryOptions,
pixelMap: *mut *mut OH_PixelmapNative,
) -> OH_AVErrCode;
#[cfg(feature = "api-18")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-18")))]
pub fn OH_AVImageGenerator_Release(generator: *mut OH_AVImageGenerator) -> OH_AVErrCode;
}