Compute Library
 21.02
NEChannelCombine.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2017-2020 Arm Limited.
3  *
4  * SPDX-License-Identifier: MIT
5  *
6  * Permission is hereby granted, free of charge, to any person obtaining a copy
7  * of this software and associated documentation files (the "Software"), to
8  * deal in the Software without restriction, including without limitation the
9  * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
10  * sell copies of the Software, and to permit persons to whom the Software is
11  * furnished to do so, subject to the following conditions:
12  *
13  * The above copyright notice and this permission notice shall be included in all
14  * copies or substantial portions of the Software.
15  *
16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22  * SOFTWARE.
23  */
24 #ifndef ARM_COMPUTE_NECHANNELCOMBINE_H
25 #define ARM_COMPUTE_NECHANNELCOMBINE_H
26 
28 
29 namespace arm_compute
30 {
31 class IMultiImage;
32 class ITensor;
33 using IImage = ITensor;
34 
35 /**Basic function to run @ref NEChannelCombineKernel to perform channel combination.
36  *
37  * @deprecated This function is deprecated and is intended to be removed in 21.05 release
38  *
39 */
41 {
42 public:
43  /** Initialize function's inputs and outputs.
44  *
45  * @param[in] plane0 The 2D plane that forms channel 0. Data type supported: U8
46  * @param[in] plane1 The 2D plane that forms channel 1. Data type supported: U8
47  * @param[in] plane2 The 2D plane that forms channel 2. Data type supported: U8
48  * @param[in] plane3 The 2D plane that forms channel 3. Data type supported: U8
49  * @param[out] output The single planar output tensor. Formats supported: RGB888/RGBA8888/UYVY422/YUYV422
50  */
51  void configure(const ITensor *plane0, const ITensor *plane1, const ITensor *plane2, const ITensor *plane3, ITensor *output);
52  /** Initialize function's inputs and outputs.
53  *
54  * @param[in] plane0 The 2D plane that forms channel 0. Data type supported: U8
55  * @param[in] plane1 The 2D plane that forms channel 1. Data type supported: U8
56  * @param[in] plane2 The 2D plane that forms channel 2. Data type supported: U8
57  * @param[out] output The multi planar output image. Formats supported: NV12/NV21/IYUV/YUV444
58  */
59  void configure(const IImage *plane0, const IImage *plane1, const IImage *plane2, IMultiImage *output);
60 };
61 } // namespace arm_compute
62 #endif /*ARM_COMPUTE_NECHANNELCOMBINE_H*/
void configure(const ITensor *plane0, const ITensor *plane1, const ITensor *plane2, const ITensor *plane3, ITensor *output)
Initialize function's inputs and outputs.
Interface for Neon tensor.
Definition: ITensor.h:36
Copyright (c) 2017-2021 Arm Limited.
Basic interface for functions which have a single Neon kernel and no border.
Interface for multi-planar images.
Definition: IMultiImage.h:34
ITensor IImage
Interface for CPP Images.
Basic function to run NEChannelCombineKernel to perform channel combination.