/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-rpp/checkouts/develop/projects/rpp/api/rppt_tensor_data_exchange_operations.h Source File

/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-rpp/checkouts/develop/projects/rpp/api/rppt_tensor_data_exchange_operations.h Source File#

RPP: /home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-rpp/checkouts/develop/projects/rpp/api/rppt_tensor_data_exchange_operations.h Source File
rppt_tensor_data_exchange_operations.h
Go to the documentation of this file.
1 /*
2 MIT License
3 
4 Copyright (c) 2019 - 2026 Advanced Micro Devices, Inc.
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 deal
8 in the Software without restriction, including without limitation the rights
9 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 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 
25 #ifndef RPPT_DATA_EXCHANGE_OPERATIONS_H
26 #define RPPT_DATA_EXCHANGE_OPERATIONS_H
27 
28 #include "rpp.h"
29 #include "rppdefs.h"
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
63 RppStatus rppt_copy(RppPtr_t srcPtr, RpptDescPtr srcDescPtr, RppPtr_t dstPtr,
64  RpptDescPtr dstDescPtr, rppHandle_t rppHandle, RppBackend executionBackend);
65 
89  RpptDescPtr dstDescPtr, Rpp32u* permutationTensor,
90  rppHandle_t rppHandle, RppBackend executionBackend);
91 
112  RpptDescPtr dstDescPtr, RpptSubpixelLayout srcSubpixelLayout,
113  rppHandle_t rppHandle, RppBackend executionBackend);
114 
138 RppStatus rppt_yuv_to_rgb(RppPtr_t srcYPtr, RppPtr_t srcUVPtr, RpptDescPtr srcDescPtr,
139  RppPtr_t dstPtr, RpptDescPtr dstDescPtr, Rpp32u src_y_pitch,
140  Rpp32u src_uv_pitch, Rpp32u dst_pitch, Rpp32u width, Rpp32u height,
141  RpptColorStandard col_standard, RpptColorRange color_range,
142  rppHandle_t rppHandle, RppBackend executionBackend);
143 
171  RppPtr_t dstPtr, RpptDescPtr dstDescPtr, Rpp32u src_y_pitch,
172  Rpp32u src_uv_pitch, Rpp32u dst_pitch, Rpp32u width,
173  Rpp32u height, RpptColorStandard col_standard,
174  RpptColorRange color_range, rppHandle_t rppHandle,
175  RppBackend executionBackend);
176 
204  RppPtr_t dstPtr, RpptDescPtr dstDescPtr, Rpp32u src_y_pitch,
205  Rpp32u src_uv_pitch, Rpp32u dst_pitch, Rpp32u width,
206  Rpp32u height, RpptColorStandard col_standard,
207  RpptColorRange color_range, rppHandle_t rppHandle,
208  RppBackend executionBackend);
209 
213 #ifdef __cplusplus
214 }
215 #endif
216 #endif // RPPT_DATA_EXCHANGE_OPERATIONS_H
unsigned int Rpp32u
32 bit unsigned int
Definition: rppdefs.h:147
void * RppPtr_t
void pointer
Definition: rppdefs.h:159
RpptColorStandard
Color space standard for NV12 to RGB (YUV/YCbCr to RGB matrix).
Definition: rppdefs.h:436
RppStatus
RPP RppStatus type enums.
Definition: rppdefs.h:166
RpptColorRange
Color range (luma/chroma legal levels) for NV12 to RGB.
Definition: rppdefs.h:452
RpptSubpixelLayout
RPPT Tensor subpixel layout type enum.
Definition: rppdefs.h:476
RppBackend
RPP RppBackend type enums.
Definition: rppdefs.h:331
RppStatus rppt_yuv_to_rgb_linear_v(RppPtr_t srcYPtr, RppPtr_t srcUVPtr, RpptDescPtr srcDescPtr, RppPtr_t dstPtr, RpptDescPtr dstDescPtr, Rpp32u src_y_pitch, Rpp32u src_uv_pitch, Rpp32u dst_pitch, Rpp32u width, Rpp32u height, RpptColorStandard col_standard, RpptColorRange color_range, rppHandle_t rppHandle, RppBackend executionBackend)
YUV to RGB color conversion with linear vertical chroma upsampling on HIP backend (NV12 8-bit only)
RppStatus rppt_channel_permute(RppPtr_t srcPtr, RpptDescPtr srcDescPtr, RppPtr_t dstPtr, RpptDescPtr dstDescPtr, Rpp32u *permutationTensor, rppHandle_t rppHandle, RppBackend executionBackend)
Channel permute operation on HIP/HOST backend for a NCHW/NHWC layout tensor.
RppStatus rppt_yuv_to_rgb(RppPtr_t srcYPtr, RppPtr_t srcUVPtr, RpptDescPtr srcDescPtr, RppPtr_t dstPtr, RpptDescPtr dstDescPtr, Rpp32u src_y_pitch, Rpp32u src_uv_pitch, Rpp32u dst_pitch, Rpp32u width, Rpp32u height, RpptColorStandard col_standard, RpptColorRange color_range, rppHandle_t rppHandle, RppBackend executionBackend)
YUV to RGB color conversion on HIP backend (NV12 8-bit only)
RppStatus rppt_yuv_to_rgb_cubic_v(RppPtr_t srcYPtr, RppPtr_t srcUVPtr, RpptDescPtr srcDescPtr, RppPtr_t dstPtr, RpptDescPtr dstDescPtr, Rpp32u src_y_pitch, Rpp32u src_uv_pitch, Rpp32u dst_pitch, Rpp32u width, Rpp32u height, RpptColorStandard col_standard, RpptColorRange color_range, rppHandle_t rppHandle, RppBackend executionBackend)
YUV to RGB color conversion with cubic vertical chroma upsampling on HIP backend (NV12 8-bit only)
RppStatus rppt_color_to_greyscale(RppPtr_t srcPtr, RpptDescPtr srcDescPtr, RppPtr_t dstPtr, RpptDescPtr dstDescPtr, RpptSubpixelLayout srcSubpixelLayout, rppHandle_t rppHandle, RppBackend executionBackend)
Color to greyscale operation on HIP/HOST backend for a NCHW/NHWC layout tensor.
RppStatus rppt_copy(RppPtr_t srcPtr, RpptDescPtr srcDescPtr, RppPtr_t dstPtr, RpptDescPtr dstDescPtr, rppHandle_t rppHandle, RppBackend executionBackend)
Copy operation on HIP/HOST backend for a NCHW/NHWC layout tensor.
RPP top-level header with RPP handle API.
RPP common HOST/GPU typedef, enum and structure definitions.
RPPT Tensor descriptor type struct.
Definition: rppdefs.h:609