/* * Copyright (c) Hisilicon Technologies Co., Ltd.. 2019-2020. All rights reserved. * Description: bootvideo api head file */ #ifndef BOOTVIDEO_API_H #define BOOTVIDEO_API_H namespace android { #ifdef __cplusplus extern "C" { #endif using lpfnBootVideoCallback = int (*)(const void *pArg, int arg1, const void *reserved); struct UserRegisterFunc { lpfnBootVideoCallback firstFrameCb; lpfnBootVideoCallback lastFrameCb; lpfnBootVideoCallback runIntervalCb; }; enum UserCallBackEnum { VIDEO_CB_FIRSTFRAME = 0, VIDEO_CB_LASTFRAME, VIDEO_CB_RUNNING, VIDEO_CB_BUT }; int RegisterVideoCallback(lpfnBootVideoCallback cb); int RegisterFirstFrameCallback(lpfnBootVideoCallback cb); int RegisterLastFrameCallback(lpfnBootVideoCallback cb); int StartBootVideo(const char *path, int callbackInterval, void *arg); void StopBootVideo(void); int DoUserRegisterCallback(UserCallBackEnum type); int GetUserCallBackInterval(); #ifdef __cplusplus }; #endif }; // namespace android #endif