packages
ti
vxlib
src
vx
VXLIB_scaleImageNearest_i8u_o8u
bam_plugin
BAM_VXLIB_scaleImageNearest_i8u_o8u.h
Go to the documentation of this file.
1
/*******************************************************************************
2
**+--------------------------------------------------------------------------+**
3
**| **** |**
4
**| **** |**
5
**| ******o*** |**
6
**| ********_///_**** |**
7
**| ***** /_//_/ **** |**
8
**| ** ** (__/ **** |**
9
**| ********* |**
10
**| **** |**
11
**| *** |**
12
**| |**
13
**| Copyright (c) 2017 Texas Instruments Incorporated |**
14
**| |**
15
**| All rights reserved not granted herein. |**
16
**| |**
17
**| Limited License. |**
18
**| |**
19
**| Texas Instruments Incorporated grants a world-wide, royalty-free, |**
20
**| non-exclusive license under copyrights and patents it now or |**
21
**| hereafter owns or controls to make, have made, use, import, offer to |**
22
**| sell and sell ("Utilize") this software subject to the terms herein. |**
23
**| With respect to the foregoing patent license, such license is granted |**
24
**| solely to the extent that any such patent is necessary to Utilize the |**
25
**| software alone. The patent license shall not apply to any |**
26
**| combinations which include this software, other than combinations |**
27
**| with devices manufactured by or for TI ("TI Devices"). No hardware |**
28
**| patent is licensed hereunder. |**
29
**| |**
30
**| Redistributions must preserve existing copyright notices and |**
31
**| reproduce this license (including the above copyright notice and the |**
32
**| disclaimer and (if applicable) source code license limitations below) |**
33
**| in the documentation and/or other materials provided with the |**
34
**| distribution |**
35
**| |**
36
**| Redistribution and use in binary form, without modification, are |**
37
**| permitted provided that the following conditions are met: |**
38
**| |**
39
**| * No reverse engineering, decompilation, or disassembly of this |**
40
**| software is permitted with respect to any software provided in binary |**
41
**| form. |**
42
**| |**
43
**| * any redistribution and use are licensed by TI for use only with |**
44
**| TI Devices. |**
45
**| |**
46
**| * Nothing shall obligate TI to provide you with source code for |**
47
**| the software licensed and provided to you in object code. |**
48
**| |**
49
**| If software source code is provided to you, modification and |**
50
**| redistribution of the source code are permitted provided that the |**
51
**| following conditions are met: |**
52
**| |**
53
**| * any redistribution and use of the source code, including any |**
54
**| resulting derivative works, are licensed by TI for use only with TI |**
55
**| Devices. |**
56
**| |**
57
**| * any redistribution and use of any object code compiled from the |**
58
**| source code and any resulting derivative works, are licensed by TI |**
59
**| for use only with TI Devices. |**
60
**| |**
61
**| Neither the name of Texas Instruments Incorporated nor the names of |**
62
**| its suppliers may be used to endorse or promote products derived from |**
63
**| this software without specific prior written permission. |**
64
**| |**
65
**| DISCLAIMER. |**
66
**| |**
67
**| THIS SOFTWARE IS PROVIDED BY TI AND TI'S LICENSORS "AS IS" AND ANY |**
68
**| EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |**
69
**| IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |**
70
**| PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL TI AND TI'S LICENSORS BE |**
71
**| LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |**
72
**| CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |**
73
**| SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR |**
74
**| BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, |**
75
**| WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE |**
76
**| OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, |**
77
**| EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |**
78
**+--------------------------------------------------------------------------+**
79
*******************************************************************************/
80
81
#ifndef BAM_VXLIB_SCALEIMAGENEAREST_I8U_O8U_H_
82
#define BAM_VXLIB_SCALEIMAGENEAREST_I8U_O8U_H_
83
84
#include "bam_common.h"
85
#include "../../../common/VXLIB_types.h"
86
87
typedef
struct
88
{
89
VXLIB_F32
xScale
;
90
VXLIB_F32
yScale
;
91
int16_t
srcOffsetX
;
92
int16_t
srcOffsetY
;
93
int16_t
dstOffsetX
;
94
int16_t
dstOffsetY
;
95
96
}
BAM_VXLIB_scaleImageNearest_i8u_o8u_params
;
97
98
typedef
struct
99
{
100
VXLIB_bufParams2D_t bufParams[2];
101
BAM_VXLIB_scaleImageNearest_i8u_o8u_params
params
;
102
}
BAM_VXLIB_scaleImageNearest_i8u_o8u_Args
;
103
104
105
extern
BAM_KernelInfo
gBAM_VXLIB_scaleImageNearest_i8u_o8u_kernel
;
106
extern
BAM_KernelHelperFuncDef
gBAM_VXLIB_scaleImageNearest_i8u_o8u_helperFunc
;
107
extern
BAM_KernelExecFuncDef
gBAM_VXLIB_scaleImageNearest_i8u_o8u_execFunc
;
108
109
typedef
enum
110
{
111
BAM_VXLIB_SCALEIMAGENEAREST_I8U_O8U_INPUT_IMAGE_PORT
= 0,
112
BAM_VXLIB_SCALEIMAGENEAREST_I8U_O8U_NUM_INPUT_BLOCKS
113
}
eBAM_VXLIB_SCALEIMAGENEAREST_I8U_O8U_INPUT_PORTS
;
114
115
typedef
enum
116
{
117
BAM_VXLIB_SCALEIMAGENEAREST_I8U_O8U_OUTPUT_IMAGE_PORT
= 0,
118
BAM_VXLIB_SCALEIMAGENEAREST_I8U_O8U_NUM_OUTPUT_BLOCKS
119
}
eBAM_VXLIB_SCALEIMAGENEAREST_I8U_O8U_OUTPUT_PORTS
;
120
121
void
BAM_VXLIB_scaleImageNearest_i8u_o8u_getKernelInfo
(
const
BAM_VXLIB_scaleImageNearest_i8u_o8u_params
*kernelArgs,
122
BAM_KernelInfo *kernelInfo);
123
124
#endif
/* BAM_VXLIB_SCALEIMAGENEAREST_I8U_O8U_H_ */
BAM_VXLIB_scaleImageNearest_i8u_o8u_Args::params
BAM_VXLIB_scaleImageNearest_i8u_o8u_params params
Definition:
BAM_VXLIB_scaleImageNearest_i8u_o8u.h:101
gBAM_VXLIB_scaleImageNearest_i8u_o8u_helperFunc
BAM_KernelHelperFuncDef gBAM_VXLIB_scaleImageNearest_i8u_o8u_helperFunc
BAM_VXLIB_scaleImageNearest_i8u_o8u_params::srcOffsetX
int16_t srcOffsetX
Definition:
BAM_VXLIB_scaleImageNearest_i8u_o8u.h:91
BAM_VXLIB_scaleImageNearest_i8u_o8u_params::xScale
VXLIB_F32 xScale
Definition:
BAM_VXLIB_scaleImageNearest_i8u_o8u.h:89
BAM_VXLIB_scaleImageNearest_i8u_o8u_getKernelInfo
void BAM_VXLIB_scaleImageNearest_i8u_o8u_getKernelInfo(const BAM_VXLIB_scaleImageNearest_i8u_o8u_params *kernelArgs, BAM_KernelInfo *kernelInfo)
BAM_VXLIB_SCALEIMAGENEAREST_I8U_O8U_NUM_OUTPUT_BLOCKS
Definition:
BAM_VXLIB_scaleImageNearest_i8u_o8u.h:118
BAM_VXLIB_scaleImageNearest_i8u_o8u_params::srcOffsetY
int16_t srcOffsetY
Definition:
BAM_VXLIB_scaleImageNearest_i8u_o8u.h:92
BAM_VXLIB_SCALEIMAGENEAREST_I8U_O8U_OUTPUT_IMAGE_PORT
Definition:
BAM_VXLIB_scaleImageNearest_i8u_o8u.h:117
eBAM_VXLIB_SCALEIMAGENEAREST_I8U_O8U_INPUT_PORTS
eBAM_VXLIB_SCALEIMAGENEAREST_I8U_O8U_INPUT_PORTS
Definition:
BAM_VXLIB_scaleImageNearest_i8u_o8u.h:109
BAM_VXLIB_scaleImageNearest_i8u_o8u_params::yScale
VXLIB_F32 yScale
Definition:
BAM_VXLIB_scaleImageNearest_i8u_o8u.h:90
BAM_VXLIB_SCALEIMAGENEAREST_I8U_O8U_INPUT_IMAGE_PORT
Definition:
BAM_VXLIB_scaleImageNearest_i8u_o8u.h:111
gBAM_VXLIB_scaleImageNearest_i8u_o8u_kernel
BAM_KernelInfo gBAM_VXLIB_scaleImageNearest_i8u_o8u_kernel
gBAM_VXLIB_scaleImageNearest_i8u_o8u_execFunc
BAM_KernelExecFuncDef gBAM_VXLIB_scaleImageNearest_i8u_o8u_execFunc
BAM_VXLIB_SCALEIMAGENEAREST_I8U_O8U_NUM_INPUT_BLOCKS
Definition:
BAM_VXLIB_scaleImageNearest_i8u_o8u.h:112
BAM_VXLIB_scaleImageNearest_i8u_o8u_params::dstOffsetX
int16_t dstOffsetX
Definition:
BAM_VXLIB_scaleImageNearest_i8u_o8u.h:93
eBAM_VXLIB_SCALEIMAGENEAREST_I8U_O8U_OUTPUT_PORTS
eBAM_VXLIB_SCALEIMAGENEAREST_I8U_O8U_OUTPUT_PORTS
Definition:
BAM_VXLIB_scaleImageNearest_i8u_o8u.h:115
BAM_VXLIB_scaleImageNearest_i8u_o8u_params
Definition:
BAM_VXLIB_scaleImageNearest_i8u_o8u.h:87
BAM_VXLIB_scaleImageNearest_i8u_o8u_Args
Definition:
BAM_VXLIB_scaleImageNearest_i8u_o8u.h:98
BAM_VXLIB_scaleImageNearest_i8u_o8u_params::dstOffsetY
int16_t dstOffsetY
Definition:
BAM_VXLIB_scaleImageNearest_i8u_o8u.h:94
Copyright 2024, Texas Instruments Incorporated