-
Notifications
You must be signed in to change notification settings - Fork 2
/
gstcv.h
39 lines (34 loc) · 866 Bytes
/
gstcv.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//
// gstcv.h
// gst_appsrc
//
// Created by Ting Cao on 1/27/13.
// Copyright (c) 2013 Ting Cao. All rights reserved.
//
#ifndef __gst_appsrc__gstcv__
#define __gst_appsrc__gstcv__
#include <gst/gst.h>
typedef enum
{
GSTCV_OPERATION_INPUT = (1<<0),
GSTCV_OPERATION_SOBEL = (1<<1),
GSTCV_OPERATION_CANNY = (1<<2),
// operations can be applied to the aboves
GSTCV_OPERATION_SMOOTH = (1<<30),
GSTCV_OPERATION_INVERSE = (1<<31),
}
GSTCV_OPERATION_TYPE;
typedef struct
{
double data1;
double data2;
double data3;
unsigned int operation;
}
GSTCV_DATA;
unsigned int InitGstCV( const char* input_image, int& width, int& height );
int PerformGstCV( unsigned int handle,
const GSTCV_DATA* data,
GstBuffer** buffer );
int DoneGstCV( unsigned int handle );
#endif /* defined(__gst_appsrc__gstcv__) */