-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
13 changed files
with
946 additions
and
76 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,59 @@ | ||
#pragma once | ||
|
||
#include "v3_common.h" | ||
#include "v3_aud.h" | ||
#include "v3_config.h" | ||
#include "v3_isp.h" | ||
#include "v3_rgn.h" | ||
#include "v3_snr.h" | ||
#include "v3_sys.h" | ||
#include "v3_vb.h" | ||
#include "v3_venc.h" | ||
#include "v3_vi.h" | ||
#include "v3_vpss.h" | ||
|
||
#include <fcntl.h> | ||
#include <pthread.h> | ||
#include <sys/ioctl.h> | ||
#include <unistd.h> | ||
|
||
extern char keepRunning; | ||
|
||
extern hal_chnstate v3_state[V3_VENC_CHN_NUM]; | ||
extern int (*v3_venc_cb)(char, hal_vidstream*); | ||
|
||
void v3_hal_deinit(void); | ||
int v3_hal_init(void); | ||
|
||
void v3_audio_deinit(void); | ||
int v3_audio_init(void); | ||
|
||
int v3_channel_bind(char index); | ||
int v3_channel_create(char index, char mirror, char flip, char framerate); | ||
int v3_channel_unbind(char index); | ||
|
||
void *v3_image_thread(void); | ||
|
||
int v3_pipeline_create(void); | ||
void v3_pipeline_destroy(void); | ||
|
||
int v3_region_create(char handle, hal_rect rect); | ||
void v3_region_destroy(char handle); | ||
int v3_region_setbitmap(int handle, hal_bitmap *bitmap); | ||
|
||
void v3_sensor_deconfig(void); | ||
int v3_sensor_config(void); | ||
void v3_sensor_deinit(void); | ||
int v3_sensor_init(char *name, char *obj); | ||
|
||
int v3_video_create(char index, hal_vidconfig *config); | ||
int v3_video_destroy(char index); | ||
int v3_video_destroy_all(void); | ||
int v3_video_snapshot_grab(char index, short width, short height, | ||
char quality, hal_jpegdata *jpeg); | ||
void *v3_video_thread(void); | ||
|
||
int v3_system_calculate_block(short width, short height, v3_common_pixfmt pixFmt, | ||
unsigned int alignWidth); | ||
void v3_system_deinit(void); | ||
int v3_system_init(char *snrConfig); |
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
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
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
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
Oops, something went wrong.