/* * Copyright (c) Hisilicon Technologies Co., Ltd. 2009-2019. All rights reserved. * Description: Defines avplay export interface * Author: Hisilicon * Create: 2009-12-21 * History: */ #ifndef __DRV_AVPLAY_H__ #define __DRV_AVPLAY_H__ #include "osal_ext.h" #include "drv_avplay_common.h" #include "drv_ioctl_avplay.h" #ifdef __cplusplus #if __cplusplus extern "C" { #endif #endif #define AVPLAY_MAX_CNT 32 td_s32 avplay_init(void); td_s32 avplay_deinit(void); td_s32 avplay_open(void *private_data); td_s32 avplay_release(void *private_data); td_s32 ext_drv_avplay_create(td_handle *avplay, const void *unique); td_s32 ext_drv_avplay_destroy(td_handle avplay); td_s32 ext_drv_avplay_reset(td_handle avplay, avplay_channel_type chn); td_s32 ext_drv_avplay_set_channel_state(td_handle avplay, avplay_channel_type chn, avplay_channel_state state); td_s32 ext_drv_avplay_set_resource(td_handle avplay, td_handle handle, avplay_resource_type type, td_u32 param); td_s32 ext_drv_avplay_get_resource(td_handle src, avplay_resource_type type, td_u32 param, td_handle *dst); td_s32 ext_drv_avplay_wakeup(td_handle avplay); td_s32 ext_drv_avplay_wait_event(td_handle avplay, td_u64 event_mask, avplay_event_type *event, td_u64 *param, td_s64 timeout); td_s32 ext_drv_avplay_get_event_param(td_handle avplay, avplay_event_param *param); td_s32 ext_drv_avplay_get_video_info(td_handle avplay, avplay_video_info *info); td_s32 ext_drv_avplay_get_global_play_info(td_handle avplay, avplay_global_play_info *info); #ifdef __cplusplus #if __cplusplus } #endif #endif #endif