/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-rocal/checkouts/docs-5.7.0/rocAL/include/api/rocal_api_data_loaders.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_loaders.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_loaders.h Source File
rocal_api_data_loaders.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_LOADERS_H
24 #define MIVISIONX_ROCAL_API_DATA_LOADERS_H
25 #include "rocal_api_types.h"
26 
53  const char *source_path,
54  RocalImageColor rocal_color_format,
55  unsigned internal_shard_count,
56  bool is_output,
57  bool shuffle = false,
58  bool loop = false,
60  unsigned max_width = 0, unsigned max_height = 0, RocalDecoderType rocal_decoder_type = RocalDecoderType::ROCAL_DECODER_TJPEG);
61 
80  const char *source_path,
81  RocalImageColor rocal_color_format,
82  unsigned shard_id,
83  unsigned shard_count,
84  bool is_output,
85  bool shuffle = false,
86  bool loop = false,
88  unsigned max_width = 0, unsigned max_height = 0, RocalDecoderType rocal_decoder_type = RocalDecoderType::ROCAL_DECODER_TJPEG);
89 
106  const char *source_path,
107  RocalImageColor rocal_color_format,
108  unsigned internal_shard_count,
109  unsigned sequence_length,
110  bool is_output,
111  bool shuffle = false,
112  bool loop = false,
113  unsigned step = 0,
114  unsigned stride = 0);
115 
133  const char *source_path,
134  RocalImageColor rocal_color_format,
135  unsigned shard_id,
136  unsigned shard_count,
137  unsigned sequence_length,
138  bool is_output,
139  bool shuffle = false,
140  bool loop = false,
141  unsigned step = 0,
142  unsigned stride = 0);
143 
161  const char *source_path,
162  const char *json_path,
163  RocalImageColor color_format,
164  unsigned internal_shard_count,
165  bool is_output,
166  bool shuffle = false,
167  bool loop = false,
169  unsigned max_width = 0, unsigned max_height = 0,
171 
191  const char *source_path,
192  const char *json_path,
193  RocalImageColor rocal_color_format,
194  unsigned internal_shard_count,
195  bool is_output,
196  std::vector<float> &area_factor,
197  std::vector<float> &aspect_ratio,
198  unsigned num_attempts,
199  bool shuffle = false,
200  bool loop = false,
202  unsigned max_width = 0, unsigned max_height = 0);
203 
223  const char *source_path,
224  const char *json_path,
225  RocalImageColor rocal_color_format,
226  unsigned shard_id,
227  unsigned shard_count,
228  bool is_output,
229  std::vector<float> &area_factor,
230  std::vector<float> &aspect_ratio,
231  unsigned num_attempts,
232  bool shuffle = false,
233  bool loop = false,
235  unsigned max_width = 0, unsigned max_height = 0);
252  const char *source_path,
253  const char *json_path,
254  RocalImageColor color_format,
255  unsigned shard_id,
256  unsigned shard_count,
257  bool is_output,
258  bool shuffle = false,
259  bool loop = false,
261  unsigned max_width = 0, unsigned max_height = 0,
263 
281  const char *source_path,
282  RocalImageColor rocal_color_format,
283  unsigned internal_shard_count,
284  bool is_output,
285  bool shuffle = false,
286  bool loop = false,
288  unsigned max_width = 0, unsigned max_height = 0,
290 
309  const char *source_path,
310  RocalImageColor rocal_color_format,
311  unsigned shard_id,
312  unsigned shard_count,
313  bool is_output,
314  bool shuffle = false,
315  bool loop = false,
317  unsigned max_width = 0, unsigned max_height = 0,
319 
338  const char *source_path,
339  RocalImageColor rocal_color_format,
340  unsigned internal_shard_count,
341  bool is_output,
342  bool shuffle = false,
343  bool loop = false,
345  unsigned max_width = 0, unsigned max_height = 0,
347 
366  const char *source_path,
367  RocalImageColor rocal_color_format,
368  unsigned shard_id,
369  unsigned shard_count,
370  bool is_output,
371  bool shuffle = false,
372  bool loop = false,
374  unsigned max_width = 0, unsigned max_height = 0,
376 
395  const char *source_path,
396  RocalImageColor rocal_color_format,
397  unsigned internal_shard_count,
398  bool is_output,
399  bool shuffle = false,
400  bool loop = false,
402  unsigned max_width = 0, unsigned max_height = 0,
404 
423  const char *source_path,
424  RocalImageColor rocal_color_format,
425  unsigned shard_id,
426  unsigned shard_count,
427  bool is_output,
428  bool shuffle = false,
429  bool loop = false,
431  unsigned max_width = 0, unsigned max_height = 0,
433 
454  const char *source_path,
455  RocalImageColor rocal_color_format,
456  unsigned num_threads,
457  bool is_output,
458  std::vector<float> &area_factor,
459  std::vector<float> &aspect_ratio,
460  unsigned num_attempts,
461  bool shuffle = false,
462  bool loop = false,
464  unsigned max_width = 0, unsigned max_height = 0);
465 
484  const char *source_path,
485  RocalImageColor color_format,
486  unsigned shard_id,
487  unsigned shard_count,
488  bool is_output,
489  std::vector<float> &area_factor,
490  std::vector<float> &aspect_ratio,
491  unsigned num_attempts,
492  bool shuffle = false,
493  bool loop = false,
495  unsigned max_width = 0, unsigned max_height = 0);
496 
515  const char *source_path,
516  RocalImageColor rocal_color_format,
517  unsigned internal_shard_count,
518  bool is_output,
519  const char *user_key_for_encoded,
520  const char *user_key_for_filename,
521  bool shuffle = false,
522  bool loop = false,
524  unsigned max_width = 0, unsigned max_height = 0,
526 
545  const char *source_path,
546  RocalImageColor rocal_color_format,
547  unsigned shard_id,
548  unsigned shard_count,
549  bool is_output,
550  bool shuffle = false,
551  bool loop = false,
553  unsigned max_width = 0, unsigned max_height = 0,
555 
570  const char *source_path,
571  const char *user_key_for_raw,
572  const char *user_key_for_filename,
573  RocalImageColor rocal_color_format,
574  bool is_output,
575  bool shuffle = false,
576  bool loop = false,
577  unsigned out_width = 0, unsigned out_height = 0,
578  const char *record_name_prefix = "");
579 
596  const char *source_path,
597  RocalImageColor rocal_color_format,
598  unsigned shard_id,
599  unsigned shard_count,
600  bool is_output,
601  bool shuffle = false,
602  bool loop = false,
603  unsigned out_width = 0, unsigned out_height = 0,
604  const char *record_name_prefix = "");
605 
625  const char *source_path,
626  RocalImageColor color_format,
627  RocalDecodeDevice rocal_decode_device,
628  unsigned internal_shard_count,
629  unsigned sequence_length,
630  bool is_output = false,
631  bool shuffle = false,
632  bool loop = false,
633  unsigned step = 0,
634  unsigned stride = 0,
635  bool file_list_frame_num = true);
636 
657  const char *source_path,
658  RocalImageColor color_format,
659  RocalDecodeDevice rocal_decode_device,
660  unsigned shard_id,
661  unsigned shard_count,
662  unsigned sequence_length,
663  bool shuffle = false,
664  bool is_output = false,
665  bool loop = false,
666  unsigned step = 0,
667  unsigned stride = 0,
668  bool file_list_frame_num = true);
669 
691  const char *source_path,
692  RocalImageColor color_format,
693  RocalDecodeDevice rocal_decode_device,
694  unsigned internal_shard_count,
695  unsigned sequence_length,
696  unsigned dest_width,
697  unsigned dest_height,
698  bool shuffle = false,
699  bool is_output = false,
700  bool loop = false,
701  unsigned step = 0,
702  unsigned stride = 0,
703  bool file_list_frame_num = true,
705  std::vector<unsigned> max_size = {},
706  unsigned resize_shorter = 0,
707  unsigned resize_longer = 0,
709 
732  const char *source_path,
733  RocalImageColor color_format,
734  RocalDecodeDevice rocal_decode_device,
735  unsigned shard_id,
736  unsigned shard_count,
737  unsigned sequence_length,
738  unsigned dest_width,
739  unsigned dest_height,
740  bool shuffle = false,
741  bool is_output = false,
742  bool loop = false,
743  unsigned step = 0,
744  unsigned stride = 0,
745  bool file_list_frame_num = true,
747  std::vector<unsigned> max_size = {},
748  unsigned resize_shorter = 0,
749  unsigned resize_longer = 0,
751 
765  const char *source_path,
766  RocalImageColor color_format,
767  bool is_output,
768  unsigned out_width, unsigned out_height, const char *filename_prefix = "",
769  bool loop = false);
770 
778 
799  const char *source_path,
800  RocalImageColor rocal_color_format,
801  unsigned shard_id,
802  unsigned shard_count,
803  bool is_output,
804  std::vector<float> &area_factor,
805  std::vector<float> &aspect_ratio,
806  unsigned num_attempts,
807  bool shuffle = false,
808  bool loop = false,
810  unsigned max_width = 0, unsigned max_height = 0);
811 
829  const char *source_path,
830  RocalImageColor rocal_color_format,
831  unsigned shard_id,
832  unsigned shard_count,
833  bool is_output,
834  std::vector<float> &area_factor,
835  std::vector<float> &aspect_ratio,
836  unsigned num_attempts,
837  bool shuffle = false,
838  bool loop = false,
840  unsigned max_width = 0, unsigned max_height = 0);
841 
842 #endif // MIVISIONX_ROCAL_API_DATA_LOADERS_H
RocalImage ROCAL_API_CALL rocalJpegCOCOFileSourcePartialSingleShard(RocalContext p_context, const char *source_path, const char *json_path, RocalImageColor rocal_color_format, unsigned shard_id, unsigned shard_count, bool is_output, std::vector< float > &area_factor, std::vector< float > &aspect_ratio, unsigned num_attempts, bool shuffle=false, bool loop=false, RocalImageSizeEvaluationPolicy decode_size_policy=ROCAL_USE_MOST_FREQUENT_SIZE, unsigned max_width=0, unsigned max_height=0)
Creates JPEG image reader and partial decoder. It allocates the resources and objects required to rea...
RocalImage ROCAL_API_CALL rocalJpegCOCOFileSourceSingleShard(RocalContext context, const char *source_path, const char *json_path, RocalImageColor color_format, unsigned shard_id, unsigned shard_count, bool is_output, bool shuffle=false, bool loop=false, RocalImageSizeEvaluationPolicy decode_size_policy=ROCAL_USE_MOST_FREQUENT_SIZE, unsigned max_width=0, unsigned max_height=0, RocalDecoderType rocal_decoder_type=RocalDecoderType::ROCAL_DECODER_TJPEG)
RocalImage ROCAL_API_CALL rocalFusedJpegCropSingleShard(RocalContext context, const char *source_path, RocalImageColor color_format, unsigned shard_id, unsigned shard_count, bool is_output, std::vector< float > &area_factor, std::vector< float > &aspect_ratio, unsigned num_attempts, bool shuffle=false, bool loop=false, RocalImageSizeEvaluationPolicy decode_size_policy=ROCAL_USE_MOST_FREQUENT_SIZE, unsigned max_width=0, unsigned max_height=0)
Creates JPEG image reader and partial decoder. It allocates the resources and objects required to rea...
RocalImage ROCAL_API_CALL rocalJpegCaffe2LMDBRecordSourcePartialSingleShard(RocalContext p_context, const char *source_path, RocalImageColor rocal_color_format, unsigned shard_id, unsigned shard_count, bool is_output, std::vector< float > &area_factor, std::vector< float > &aspect_ratio, unsigned num_attempts, bool shuffle=false, bool loop=false, RocalImageSizeEvaluationPolicy decode_size_policy=ROCAL_USE_MOST_FREQUENT_SIZE, unsigned max_width=0, unsigned max_height=0)
Creates JPEG image reader and partial decoder for Caffe2 LMDB records. It allocates the resources and...
RocalImage ROCAL_API_CALL rocalJpegFileSourceSingleShard(RocalContext context, const char *source_path, RocalImageColor rocal_color_format, unsigned shard_id, unsigned shard_count, bool is_output, bool shuffle=false, bool loop=false, RocalImageSizeEvaluationPolicy decode_size_policy=ROCAL_USE_MOST_FREQUENT_SIZE, unsigned max_width=0, unsigned max_height=0, RocalDecoderType rocal_decoder_type=RocalDecoderType::ROCAL_DECODER_TJPEG)
Creates JPEG image reader and decoder. It allocates the resources and objects required to read and de...
RocalImage ROCAL_API_CALL rocalJpegTFRecordSourceSingleShard(RocalContext context, const char *source_path, RocalImageColor rocal_color_format, unsigned shard_id, unsigned shard_count, bool is_output, bool shuffle=false, bool loop=false, RocalImageSizeEvaluationPolicy decode_size_policy=ROCAL_USE_MOST_FREQUENT_SIZE, unsigned max_width=0, unsigned max_height=0, RocalDecoderType rocal_decoder_type=RocalDecoderType::ROCAL_DECODER_TJPEG)
Creates TensorFlow records JPEG image reader and decoder. It allocates the resources and objects requ...
RocalImage ROCAL_API_CALL rocalRawTFRecordSourceSingleShard(RocalContext p_context, const char *source_path, RocalImageColor rocal_color_format, unsigned shard_id, unsigned shard_count, bool is_output, bool shuffle=false, bool loop=false, unsigned out_width=0, unsigned out_height=0, const char *record_name_prefix="")
Creates Raw image loader. It allocates the resources and objects required to load images stored on th...
RocalImage ROCAL_API_CALL rocalRawTFRecordSource(RocalContext p_context, const char *source_path, const char *user_key_for_raw, const char *user_key_for_filename, RocalImageColor rocal_color_format, bool is_output, bool shuffle=false, bool loop=false, unsigned out_width=0, unsigned out_height=0, const char *record_name_prefix="")
Creates Raw image loader. It allocates the resources and objects required to load images stored on th...
RocalImage ROCAL_API_CALL rocalJpegCaffe2LMDBRecordSourceSingleShard(RocalContext p_context, const char *source_path, RocalImageColor rocal_color_format, unsigned shard_id, unsigned shard_count, bool is_output, bool shuffle=false, bool loop=false, RocalImageSizeEvaluationPolicy decode_size_policy=ROCAL_USE_MOST_FREQUENT_SIZE, unsigned max_width=0, unsigned max_height=0, RocalDecoderType rocal_decoder_type=RocalDecoderType::ROCAL_DECODER_TJPEG)
Creates JPEG image reader and decoder for Caffe2 LMDB records. It allocates the resources and objects...
RocalImage ROCAL_API_CALL rocalVideoFileResizeSingleShard(RocalContext context, const char *source_path, RocalImageColor color_format, RocalDecodeDevice rocal_decode_device, unsigned shard_id, unsigned shard_count, unsigned sequence_length, unsigned dest_width, unsigned dest_height, bool shuffle=false, bool is_output=false, bool loop=false, unsigned step=0, unsigned stride=0, bool file_list_frame_num=true, RocalResizeScalingMode scaling_mode=ROCAL_SCALING_MODE_DEFAULT, std::vector< unsigned > max_size={}, unsigned resize_shorter=0, unsigned resize_longer=0, RocalResizeInterpolationType interpolation_type=ROCAL_LINEAR_INTERPOLATION)
Creates a video reader and decoder as a source. It allocates the resources and objects required to re...
RocalImage ROCAL_API_CALL rocalVideoFileSourceSingleShard(RocalContext context, const char *source_path, RocalImageColor color_format, RocalDecodeDevice rocal_decode_device, unsigned shard_id, unsigned shard_count, unsigned sequence_length, bool shuffle=false, bool is_output=false, bool loop=false, unsigned step=0, unsigned stride=0, bool file_list_frame_num=true)
Creates a video reader and decoder as a source. It allocates the resources and objects required to re...
RocalImage ROCAL_API_CALL rocalRawCIFAR10Source(RocalContext context, const char *source_path, RocalImageColor color_format, bool is_output, unsigned out_width, unsigned out_height, const char *filename_prefix="", bool loop=false)
Creates CIFAR10 raw data reader and loader. It allocates the resources and objects required to read r...
RocalImage ROCAL_API_CALL rocalVideoFileResize(RocalContext context, const char *source_path, RocalImageColor color_format, RocalDecodeDevice rocal_decode_device, unsigned internal_shard_count, unsigned sequence_length, unsigned dest_width, unsigned dest_height, bool shuffle=false, bool is_output=false, bool loop=false, unsigned step=0, unsigned stride=0, bool file_list_frame_num=true, RocalResizeScalingMode scaling_mode=ROCAL_SCALING_MODE_DEFAULT, std::vector< unsigned > max_size={}, unsigned resize_shorter=0, unsigned resize_longer=0, RocalResizeInterpolationType interpolation_type=ROCAL_LINEAR_INTERPOLATION)
Creates a video reader and decoder as a source. It allocates the resources and objects required to re...
RocalImage ROCAL_API_CALL rocalJpegCaffeLMDBRecordSourceSingleShard(RocalContext p_context, const char *source_path, RocalImageColor rocal_color_format, unsigned shard_id, unsigned shard_count, bool is_output, bool shuffle=false, bool loop=false, RocalImageSizeEvaluationPolicy decode_size_policy=ROCAL_USE_MOST_FREQUENT_SIZE, unsigned max_width=0, unsigned max_height=0, RocalDecoderType rocal_decoder_type=RocalDecoderType::ROCAL_DECODER_TJPEG)
Creates JPEG image reader and decoder for Caffe LMDB records. It allocates the resources and objects ...
RocalImage ROCAL_API_CALL rocalJpegCaffeLMDBRecordSourcePartialSingleShard(RocalContext p_context, const char *source_path, RocalImageColor rocal_color_format, unsigned shard_id, unsigned shard_count, bool is_output, std::vector< float > &area_factor, std::vector< float > &aspect_ratio, unsigned num_attempts, bool shuffle=false, bool loop=false, RocalImageSizeEvaluationPolicy decode_size_policy=ROCAL_USE_MOST_FREQUENT_SIZE, unsigned max_width=0, unsigned max_height=0)
Creates JPEG image reader and partial decoder for Caffe LMDB records. It allocates the resources and ...
RocalImage ROCAL_API_CALL rocalJpegFileSource(RocalContext context, const char *source_path, RocalImageColor rocal_color_format, unsigned internal_shard_count, bool is_output, bool shuffle=false, bool loop=false, RocalImageSizeEvaluationPolicy decode_size_policy=ROCAL_USE_MOST_FREQUENT_SIZE, unsigned max_width=0, unsigned max_height=0, RocalDecoderType rocal_decoder_type=RocalDecoderType::ROCAL_DECODER_TJPEG)
Creates JPEG image reader and decoder. It allocates the resources and objects required to read and de...
RocalImage ROCAL_API_CALL rocalJpegCaffeLMDBRecordSource(RocalContext context, const char *source_path, RocalImageColor rocal_color_format, unsigned internal_shard_count, bool is_output, bool shuffle=false, bool loop=false, RocalImageSizeEvaluationPolicy decode_size_policy=ROCAL_USE_MOST_FREQUENT_SIZE, unsigned max_width=0, unsigned max_height=0, RocalDecoderType rocal_decoder_type=RocalDecoderType::ROCAL_DECODER_TJPEG)
Creates JPEG image reader and decoder for Caffe LMDB records. It allocates the resources and objects ...
RocalImage ROCAL_API_CALL rocalJpegCOCOFileSourcePartial(RocalContext p_context, const char *source_path, const char *json_path, RocalImageColor rocal_color_format, unsigned internal_shard_count, bool is_output, std::vector< float > &area_factor, std::vector< float > &aspect_ratio, unsigned num_attempts, bool shuffle=false, bool loop=false, RocalImageSizeEvaluationPolicy decode_size_policy=ROCAL_USE_MOST_FREQUENT_SIZE, unsigned max_width=0, unsigned max_height=0)
Creates JPEG image reader and partial decoder. It allocates the resources and objects required to rea...
RocalImage ROCAL_API_CALL rocalJpegTFRecordSource(RocalContext context, const char *source_path, RocalImageColor rocal_color_format, unsigned internal_shard_count, bool is_output, const char *user_key_for_encoded, const char *user_key_for_filename, bool shuffle=false, bool loop=false, RocalImageSizeEvaluationPolicy decode_size_policy=ROCAL_USE_MOST_FREQUENT_SIZE, unsigned max_width=0, unsigned max_height=0, RocalDecoderType rocal_decoder_type=RocalDecoderType::ROCAL_DECODER_TJPEG)
Creates TensorFlow records JPEG image reader and decoder. It allocates the resources and objects requ...
RocalImage ROCAL_API_CALL rocalVideoFileSource(RocalContext context, const char *source_path, RocalImageColor color_format, RocalDecodeDevice rocal_decode_device, unsigned internal_shard_count, unsigned sequence_length, bool is_output=false, bool shuffle=false, bool loop=false, unsigned step=0, unsigned stride=0, bool file_list_frame_num=true)
Creates a video reader and decoder as a source. It allocates the resources and objects required to re...
RocalImage ROCAL_API_CALL rocalFusedJpegCrop(RocalContext context, const char *source_path, RocalImageColor rocal_color_format, unsigned num_threads, bool is_output, std::vector< float > &area_factor, std::vector< float > &aspect_ratio, unsigned num_attempts, bool shuffle=false, bool loop=false, RocalImageSizeEvaluationPolicy decode_size_policy=ROCAL_USE_MOST_FREQUENT_SIZE, unsigned max_width=0, unsigned max_height=0)
Creates JPEG image reader and partial decoder. It allocates the resources and objects required to rea...
RocalImage ROCAL_API_CALL rocalSequenceReader(RocalContext context, const char *source_path, RocalImageColor rocal_color_format, unsigned internal_shard_count, unsigned sequence_length, bool is_output, bool shuffle=false, bool loop=false, unsigned step=0, unsigned stride=0)
Creates JPEG image reader and decoder. Reads [Frames] sequences from a directory representing a colle...
RocalStatus ROCAL_API_CALL rocalResetLoaders(RocalContext context)
RocalImage ROCAL_API_CALL rocalJpegCaffe2LMDBRecordSource(RocalContext context, const char *source_path, RocalImageColor rocal_color_format, unsigned internal_shard_count, bool is_output, bool shuffle=false, bool loop=false, RocalImageSizeEvaluationPolicy decode_size_policy=ROCAL_USE_MOST_FREQUENT_SIZE, unsigned max_width=0, unsigned max_height=0, RocalDecoderType rocal_decoder_type=RocalDecoderType::ROCAL_DECODER_TJPEG)
Creates JPEG image reader and decoder for Caffe2 LMDB records. It allocates the resources and objects...
RocalImage ROCAL_API_CALL rocalJpegCOCOFileSource(RocalContext context, const char *source_path, const char *json_path, RocalImageColor color_format, unsigned internal_shard_count, bool is_output, bool shuffle=false, bool loop=false, RocalImageSizeEvaluationPolicy decode_size_policy=ROCAL_USE_MOST_FREQUENT_SIZE, unsigned max_width=0, unsigned max_height=0, RocalDecoderType rocal_decoder_type=RocalDecoderType::ROCAL_DECODER_TJPEG)
Creates JPEG image reader and decoder. It allocates the resources and objects required to read and de...
RocalImage ROCAL_API_CALL rocalMXNetRecordSource(RocalContext context, const char *source_path, RocalImageColor rocal_color_format, unsigned internal_shard_count, bool is_output, bool shuffle=false, bool loop=false, RocalImageSizeEvaluationPolicy decode_size_policy=ROCAL_USE_MOST_FREQUENT_SIZE, unsigned max_width=0, unsigned max_height=0, RocalDecoderType rocal_decoder_type=RocalDecoderType::ROCAL_DECODER_TJPEG)
Creates JPEG image reader and decoder for MXNet records. It allocates the resources and objects requi...
RocalImage ROCAL_API_CALL rocalMXNetRecordSourceSingleShard(RocalContext p_context, const char *source_path, RocalImageColor rocal_color_format, unsigned shard_id, unsigned shard_count, bool is_output, bool shuffle=false, bool loop=false, RocalImageSizeEvaluationPolicy decode_size_policy=ROCAL_USE_MOST_FREQUENT_SIZE, unsigned max_width=0, unsigned max_height=0, RocalDecoderType rocal_decoder_type=RocalDecoderType::ROCAL_DECODER_TJPEG)
Creates JPEG image reader and decoder for MXNet records. It allocates the resources and objects requi...
RocalImage ROCAL_API_CALL rocalSequenceReaderSingleShard(RocalContext context, const char *source_path, RocalImageColor rocal_color_format, unsigned shard_id, unsigned shard_count, unsigned sequence_length, bool is_output, bool shuffle=false, bool loop=false, unsigned step=0, unsigned stride=0)
Creates JPEG image reader and decoder. Reads [Frames] sequences from a directory representing a colle...
RocalDecoderType
rocAL Decoder Type enum
Definition: rocal_api_types.h:244
RocalResizeScalingMode
rocAL Resize Scaling Mode enum
Definition: rocal_api_types.h:295
RocalStatus
rocAL Status enum
Definition: rocal_api_types.h:113
RocalImageSizeEvaluationPolicy
rocAL Image Size Evaluation Policy enum
Definition: rocal_api_types.h:180
RocalDecodeDevice
rocAL Decode Device enum
Definition: rocal_api_types.h:202
void * RocalContext
typedef void* rocAL Context
Definition: rocal_api_types.h:61
RocalResizeInterpolationType
rocAL Resize Interpolation Type enum
Definition: rocal_api_types.h:314
RocalImageColor
rocAL Image Color enum
Definition: rocal_api_types.h:135
void * RocalImage
typedef void* rocAL Image
Definition: rocal_api_types.h:65
@ ROCAL_DECODER_TJPEG
AMD ROCAL_DECODER_TJPEG.
Definition: rocal_api_types.h:247
@ ROCAL_SCALING_MODE_DEFAULT
scales wrt specified size, if only resize width/height is provided the other dimension is scaled acco...
Definition: rocal_api_types.h:298
@ ROCAL_USE_MOST_FREQUENT_SIZE
AMD ROCAL_USE_MOST_FREQUENT_SIZE.
Definition: rocal_api_types.h:189
@ ROCAL_LINEAR_INTERPOLATION
AMD ROCAL_LINEAR_INTERPOLATION.
Definition: rocal_api_types.h:320
The AMD rocAL Library - Types.
#define ROCAL_API_CALL
Definition: rocal_api_types.h:35