Last change
on this file since 352 was 338, checked in by Sanahuja Guillaume, 5 years ago |
remove opencv dep
|
File size:
738 bytes
|
Line | |
---|
1 | #include "VisionFilter.h"
|
---|
2 | #include "compile_info.h"
|
---|
3 |
|
---|
4 | static void constructor() __attribute__((constructor));
|
---|
5 |
|
---|
6 | void constructor() {
|
---|
7 | compile_info("FlairVisionFilter");
|
---|
8 | }
|
---|
9 |
|
---|
10 | void saveToJpeg(flair::core::Image* src_img,std::string filename,PictureFormat_t input_format,PictureFormat_t output_format,unsigned char compression_level) {
|
---|
11 | printf("saveToJpeg todo\n");
|
---|
12 | //if(!cvSaveImage(filename.c_str(),src_img)) printf("Could not save.\n");
|
---|
13 | }
|
---|
14 |
|
---|
15 | bool InitVisionFilter(std::string args) {
|
---|
16 | printf("Using default vision lib filter, all functions are not ready!\n");
|
---|
17 | return true;
|
---|
18 | }
|
---|
19 |
|
---|
20 | void CloseVisionFilter(void) {
|
---|
21 |
|
---|
22 | }
|
---|
23 |
|
---|
24 | char* AllocFunction(ssize_t size) {
|
---|
25 | return (char*)malloc(size);
|
---|
26 | }
|
---|
27 |
|
---|
28 | void FreeFunction(char* buffer) {
|
---|
29 | free(buffer);
|
---|
30 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.