-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
48 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#if 0 | ||
|
||
#include "ak_hal.h" | ||
|
||
ak_aud_impl ak_aud; | ||
ak_venc_impl ak_venc; | ||
ak_vi_impl ak_vi; | ||
|
||
hal_chnstate ak_state[AK_VENC_CHN_NUM] = {0}; | ||
int (*ak_aud_cb)(hal_audframe*); | ||
int (*ak_vid_cb)(char, hal_vidstream*); | ||
|
||
void *_ak_vi_dev; | ||
|
||
void ak_hal_deinit(void) | ||
{ | ||
ak_vi_unload(&ak_vi); | ||
ak_venc_unload(&ak_venc); | ||
ak_aud_unload(&ak_aud); | ||
} | ||
|
||
int ak_hal_init(void) | ||
{ | ||
int ret; | ||
|
||
if (ret = ak_aud_load(&ak_aud)) | ||
return ret; | ||
if (ret = ak_venc_load(&ak_venc)) | ||
return ret; | ||
if (ret = ak_vi_load(&ak_vi)) | ||
return ret; | ||
|
||
return EXIT_SUCCESS; | ||
} | ||
|
||
int ak_channel_grayscale(char enable) | ||
{ | ||
return ak_vi.fnSetDeviceMode(_ak_vi_dev, enable & 1); | ||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters