-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdsCompositeIn.c
63 lines (61 loc) · 1.67 KB
/
dsCompositeIn.c
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <time.h>
#include "dsTypes.h"
#include "dsError.h"
#include "dsCompositeInTypes.h"
#include "dsCompositeIn.h"
dsError_t dsCompositeInInit (void)
{
return dsERR_OPERATION_NOT_SUPPORTED;
}
dsError_t dsCompositeInTerm (void)
{
return dsERR_OPERATION_NOT_SUPPORTED;
}
dsError_t dsCompositeInGetNumberOfInputs (uint8_t *pNumberOfInputs)
{
if(pNumberOfInputs == NULL)
{
return dsERR_INVALID_PARAM;
}
return dsERR_OPERATION_NOT_SUPPORTED;
}
dsError_t dsCompositeInGetStatus (dsCompositeInStatus_t *pStatus)
{
if(pStatus == NULL)
{
return dsERR_INVALID_PARAM;
}
return dsERR_OPERATION_NOT_SUPPORTED;
}
dsError_t dsCompositeInSelectPort (dsCompositeInPort_t Port)
{
return dsERR_OPERATION_NOT_SUPPORTED;
}
dsError_t dsCompositeInScaleVideo (int32_t x, int32_t y, int32_t width, int32_t height)
{
if (width <= 0 || height <= 0)
{
return dsERR_INVALID_PARAM; // Width and height must be positive
}
if (x < 0 || y < 0)
{
return dsERR_INVALID_PARAM; // x and y must be non-negative
}
return dsERR_OPERATION_NOT_SUPPORTED;
}
dsError_t dsCompositeInRegisterConnectCB (dsCompositeInConnectCB_t CBFunc)
{
return dsERR_OPERATION_NOT_SUPPORTED;
}
dsError_t dsCompositeInRegisterSignalChangeCB (dsCompositeInSignalChangeCB_t CBFunc)
{
return dsERR_OPERATION_NOT_SUPPORTED;
}
dsError_t dsCompositeInRegisterStatusChangeCB (dsCompositeInStatusChangeCB_t CBFunc)
{
return dsERR_OPERATION_NOT_SUPPORTED;
}