/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-rocal/checkouts/docs-5.7.0/rocAL/include/api/rocal_api_data_transfer.h Source File

/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-rocal/checkouts/docs-5.7.0/rocAL/include/api/rocal_api_data_transfer.h Source File#

rocAL: /home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-rocal/checkouts/docs-5.7.0/rocAL/include/api/rocal_api_data_transfer.h Source File
rocal_api_data_transfer.h
Go to the documentation of this file.
1 /*
2 Copyright (c) 2019 - 2023 Advanced Micro Devices, Inc. All rights reserved.
3 
4 Permission is hereby granted, free of charge, to any person obtaining a copy
5 of this software and associated documentation files (the "Software"), to deal
6 in the Software without restriction, including without limitation the rights
7 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8 copies of the Software, and to permit persons to whom the Software is
9 furnished to do so, subject to the following conditions:
10 
11 The above copyright notice and this permission notice shall be included in
12 all copies or substantial portions of the Software.
13 
14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20 THE SOFTWARE.
21 */
22 
23 #ifndef MIVISIONX_ROCAL_API_DATA_TRANSFER_H
24 #define MIVISIONX_ROCAL_API_DATA_TRANSFER_H
25 #include "rocal_api_types.h"
26 
42 extern "C" RocalStatus ROCAL_API_CALL rocalCopyToOutput(RocalContext context, unsigned char *out_ptr, size_t out_size);
43 
51 extern "C" RocalStatus ROCAL_API_CALL rocalToTensor32(RocalContext rocal_context, float *out_ptr,
52  RocalTensorLayout tensor_format, float multiplier0,
53  float multiplier1, float multiplier2, float offset0,
54  float offset1, float offset2,
55  bool reverse_channels, RocalOutputMemType output_mem_type);
56 
64 extern "C" RocalStatus ROCAL_API_CALL rocalToTensor16(RocalContext rocal_context, half *out_ptr,
65  RocalTensorLayout tensor_format, float multiplier0,
66  float multiplier1, float multiplier2, float offset0,
67  float offset1, float offset2,
68  bool reverse_channels, RocalOutputMemType output_mem_type);
69 
77 extern "C" RocalStatus ROCAL_API_CALL rocalToTensor(RocalContext rocal_context, void *out_ptr,
78  RocalTensorLayout tensor_format, RocalTensorOutputType tensor_output_type,
79  float multiplier0, float multiplier1, float multiplier2, float offset0,
80  float offset1, float offset2,
81  bool reverse_channels, RocalOutputMemType output_mem_type);
89 extern "C" void ROCAL_API_CALL rocalSetOutputs(RocalContext p_context, unsigned int num_of_outputs, std::vector<RocalImage> &output_images);
90 
91 #endif // MIVISIONX_ROCAL_API_DATA_TRANSFER_H
void ROCAL_API_CALL rocalSetOutputs(RocalContext p_context, unsigned int num_of_outputs, std::vector< RocalImage > &output_images)
TBD.
RocalStatus ROCAL_API_CALL rocalCopyToOutput(RocalContext context, unsigned char *out_ptr, size_t out_size)
TBD.
RocalStatus ROCAL_API_CALL rocalToTensor16(RocalContext rocal_context, half *out_ptr, RocalTensorLayout tensor_format, float multiplier0, float multiplier1, float multiplier2, float offset0, float offset1, float offset2, bool reverse_channels, RocalOutputMemType output_mem_type)
TBD.
RocalStatus ROCAL_API_CALL rocalToTensor32(RocalContext rocal_context, float *out_ptr, RocalTensorLayout tensor_format, float multiplier0, float multiplier1, float multiplier2, float offset0, float offset1, float offset2, bool reverse_channels, RocalOutputMemType output_mem_type)
TBD.
RocalStatus ROCAL_API_CALL rocalToTensor(RocalContext rocal_context, void *out_ptr, RocalTensorLayout tensor_format, RocalTensorOutputType tensor_output_type, float multiplier0, float multiplier1, float multiplier2, float offset0, float offset1, float offset2, bool reverse_channels, RocalOutputMemType output_mem_type)
TBD.
RocalTensorLayout
rocAL Tensor Layout enum
Definition: rocal_api_types.h:215
RocalStatus
rocAL Status enum
Definition: rocal_api_types.h:113
RocalTensorOutputType
rocAL Tensor Output Type enum
Definition: rocal_api_types.h:228
RocalOutputMemType
rocAL Output Mem Type enum
Definition: rocal_api_types.h:266
void * RocalContext
typedef void* rocAL Context
Definition: rocal_api_types.h:61
The AMD rocAL Library - Types.
#define ROCAL_API_CALL
Definition: rocal_api_types.h:35