/* * Copyright (c) Hisilicon Technologies Co., Ltd. 2009-2019. All rights reserved. * Description: Defines avplay hal api * Author: Hisilicon * Create: 2009-12-21 * History: */ #ifndef __AVPLAY_HAL_H__ #define __AVPLAY_HAL_H__ #include "drv_ioctl_avplay.h" #ifdef __cplusplus #if __cplusplus extern "C" { #endif #endif #define AVPLAY_EVENT_AUD_ADEC_EOS (AVPLAY_EVENT_TYPE_MAX + 1) #define AVPLAY_EVENT_FLUSH (AVPLAY_EVENT_AUD_ADEC_EOS + 1) td_s32 avplay_hal_init(void); td_s32 avplay_hal_deinit(void); td_s32 avplay_hal_create(td_handle *avplay); td_s32 avplay_hal_destroy(td_handle avplay); td_s32 avplay_hal_reset(td_handle avplay, avplay_channel_type chn); td_s32 avplay_hal_set_channel_state(td_handle avplay, avplay_channel_type chn, avplay_channel_state state); td_s32 avplay_hal_set_resource(td_handle avplay, avplay_resource_type type, td_handle handle, const td_u32 *priv); td_s32 avplay_hal_get_resource(td_handle src, avplay_resource_type type, td_handle *dst); td_s32 avplay_hal_wait_event(td_handle avplay, td_u64 event_mask, avplay_event_type *event, td_u64 *event_param, td_s64 timeout); td_s32 avplay_hal_wakeup_event(td_handle avplay); td_s32 avplay_hal_get_event_param(td_handle avplay, avplay_event_param *event_param); td_s32 avplay_hal_get_video_info(td_handle avplay, avplay_video_info *info); td_s32 avplay_hal_get_global_play_info(td_handle avplay, avplay_global_play_info *info); #ifdef __cplusplus #if __cplusplus } #endif #endif #endif