Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rocAL - Video_pipeline Support #640

Merged
merged 328 commits into from
Nov 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
328 commits
Select commit Hold shift + click to select a range
42280c0
Resolve Merge Conflicts from PR351
Aug 27, 2020
4049b86
Update Repo with latest changes
Aug 27, 2020
8d24bc3
Fix a few bugs
Aug 27, 2020
b3569ff
caffe and caffe2 changes for optimization
swetha097 Sep 3, 2020
6753da2
Merge branch 'AMD-master' into rali_upgrade
shobana-mcw Sep 4, 2020
04494a4
removed commented code
swetha097 Sep 4, 2020
832562a
changes from RALI_upgrade
swetha097 Sep 6, 2020
33130da
Fix issue with SSD meta node.
shobana-mcw Sep 7, 2020
5ef2d4a
Add support for original width and height for TF Detection
swetha097 Sep 10, 2020
5320bdb
Add change required to reflect mean and std values in an images pixel…
swetha097 Sep 14, 2020
eea3dc4
Merge remote-tracking branch 'origin/RALI_Upgrade' into digen_devel
shobana-mcw Sep 17, 2020
8650764
Clean codes
Indumathi31 Sep 17, 2020
1eb7a1e
Hardcoding the key values for tf detection and classification
swetha097 Sep 17, 2020
20d1b5b
Merge branch 'digen_devel' of https://github.com/MCW-Dev/MIVISION int…
swetha097 Sep 17, 2020
cba6494
Merge branch 'digen_devel' into RALI_Upgrade
swetha097 Sep 18, 2020
31b52cf
Release RingBuffer memory
Indumathi31 Oct 6, 2020
a0cc89b
Modify RALI API's to return the bbox coords and bbox labels for all i…
Indumathi31 Oct 6, 2020
8c675bd
Update rali_unittest.cpp
Indumathi31 Oct 6, 2020
766ffe3
Clean repo
Indumathi31 Oct 6, 2020
d866fe4
Add batching support in PYTHON API for labels,bboxes,img_sizes exclud…
swetha097 Oct 7, 2020
ede4f0f
Add support for image names for batching support
swetha097 Oct 7, 2020
568af0d
Merge RALI_Upgrade
swetha097 Oct 7, 2020
889abea
Merge branch 'RALI_Upgrade' of https://github.com/MCW-Dev/MIVISION in…
swetha097 Oct 7, 2020
63c4b9e
Merge branch 'AMD-master' into RALI_Upgrade
Indumathi31 Oct 7, 2020
eba7944
Update raliunittest.cpp
Indumathi31 Oct 7, 2020
f32037e
Add support for bytes instead of str in rali pybind
swetha097 Oct 7, 2020
d983468
Merge branch 'RALI_Upgrade' of https://github.com/MCW-Dev/MIVISION in…
swetha097 Oct 7, 2020
ecc0cea
Code clean Up
swetha097 Oct 7, 2020
770f3a7
Merge branch 'RALI_Upgrade' of https://github.com/MCW-Dev/MIVISION in…
Indumathi31 Oct 7, 2020
ee7d2c5
Fix codacy issues
Indumathi31 Oct 8, 2020
f77d351
Fix codacy issues
Indumathi31 Oct 8, 2020
e12103b
Fix indendation error
swetha097 Oct 9, 2020
6939c2a
Fix codacy warnings
Indumathi31 Oct 9, 2020
244829d
Fix trailing spaces warnings
swetha097 Oct 9, 2020
7e05dd9
Merge branch 'RALI_Upgrade' of https://github.com/MCW-Dev/MIVISION in…
swetha097 Oct 9, 2020
2cf4902
Fix scope of the variable can be reduced warning
Indumathi31 Oct 9, 2020
2c1d214
Merge branch 'RALI_Upgrade' of https://github.com/MCW-Dev/MIVISION in…
Indumathi31 Oct 9, 2020
b073050
Fix errors in the RALI API
Indumathi31 Oct 9, 2020
727f303
Fix Codacy warnings
Indumathi31 Oct 9, 2020
429da03
Remove extra empty lines
Indumathi31 Oct 15, 2020
b9c9ae7
Add support for Box Encoder in coco_pipeline.py
swetha097 Oct 27, 2020
5048205
Add codes to retrieve meta data information in loader module
Indumathi31 Oct 27, 2020
223241a
Add support for One Hot Labels for all classification based Readers
swetha097 Oct 28, 2020
772acb2
Add codes to retrieve meta data information in decoder module
Indumathi31 Nov 2, 2020
c603152
Introduce data loader for coco reader using partail decoder
Indumathi31 Nov 2, 2020
d7e667d
Add casting Support for Encoded Labels
swetha097 Nov 2, 2020
2d55f7c
Add support for RandomBBoxCrop augmenation
Indumathi31 Nov 4, 2020
a28a343
Clean codes
swetha097 Nov 4, 2020
56f1b1c
Introduce RandomBBoxCrop_MetaData Reader to store the crop params ret…
Indumathi31 Nov 4, 2020
a3ca3c5
Update RandomBBoxCrop_MetaData Reader
Indumathi31 Nov 4, 2020
eb5d4c9
Add meta data update support for both vertical and horizontal flip.
shobana-mcw Nov 4, 2020
2552de6
Merge branch 'swetha_RALI_Upgrade' into shobi_devel
shobana-mcw Nov 4, 2020
8e6ef85
Add RandomBBox support.
shobana-mcw Nov 5, 2020
70ff1cc
Add support for BBFlip
swetha097 Nov 5, 2020
613234d
Add support for Random BBox Crop Reader to be part of load routine.
shobana-mcw Nov 5, 2020
f035d59
Fix the warnings.
shobana-mcw Nov 5, 2020
6155cff
Merge branch 'RALI_Upgrade_RBBOX' of https://github.com/MCW-Dev/MIVIS…
Indumathi31 Nov 5, 2020
c5302be
Merge branch 'RALI_Upgrade_RBBOX' into shobi_devel
Indumathi31 Nov 5, 2020
20da49b
Merge branch 'shobi_devel' into RALI_Upgrade_RBBOX
Indumathi31 Nov 5, 2020
b852143
Fix issue with the meta data updation in master graph.
shobana-mcw Nov 22, 2020
118b0b9
Add API changes.
shobana-mcw Nov 22, 2020
17cc8ab
Add support for Random BBox Crop & ImageDecoderSlice
swetha097 Nov 24, 2020
bdbe391
Small changes in Box Encoder
swetha097 Nov 26, 2020
49fff6a
Small Change in Anchor boxes input comment
swetha097 Nov 26, 2020
b4c7466
Add changes for Crop Dim exceding Image Dim
swetha097 Nov 26, 2020
b3e4a0d
Minor Changes for RandomBboxCrop
swetha097 Nov 27, 2020
5165dc1
Fix issues with RandomBboxCrop.
shobana-mcw Nov 29, 2020
5a97fc8
Fix Reader seg fault issue.
shobana-mcw Dec 1, 2020
95ea0b3
Add minor Changes for fp16
swetha097 Dec 7, 2020
a1edb0e
Minor Changes
swetha097 Dec 12, 2020
359452c
Clean Codes
swetha097 Dec 12, 2020
c87c9e9
Merge branch 'RALI_Upgrade_RBBOX' of https://github.com/MCW-Dev/MIVIS…
swetha097 Dec 12, 2020
11659fd
Minor Changes for Random BBox Crop
swetha097 Dec 30, 2020
d7f9c11
Add support for Multi-GPU
swetha097 Jan 3, 2021
22ec9c8
Minor Changes for Multi-GPU support in COCO file souce partial
swetha097 Jan 3, 2021
4a2f361
Merge branch 'swetha_RALI_Upgrade_RBBOX' into RALI_Upgrade_RBBOX
swetha097 Jan 6, 2021
fe1d0d4
Remove unwanted code.
shobana-mcw Jan 12, 2021
48aa9a1
Merge branch 'AMD-master' into RALI_Upgrade_RBBOX
shobana-mcw Jan 12, 2021
2290e8e
Minor Changes in RandomBBoxCrop
swetha097 Jan 12, 2021
190b547
Fix Random BBox Crop
swetha097 Jan 13, 2021
624220e
Comment out the print statements
swetha097 Jan 13, 2021
34914fb
Minor Changes for RBBOX
swetha097 Jan 18, 2021
f802a6d
Merge branch 'RALI_Upgrade_RBBOX' of https://github.com/MCW-Dev/MIVIS…
shobana-mcw Jan 20, 2021
e693832
Code clean up.
shobana-mcw Jan 20, 2021
5c9a548
Fix warnings wrt Ubuntu 20.04
shobana-mcw Jan 21, 2021
781c993
Merge branch 'AMD-master' into RALI_Upgrade_RBBOX
shobana-mcw Jan 21, 2021
a2d4542
Resolve codacy warnings
swetha097 Jan 26, 2021
b390134
Resolve codacy warnings
swetha097 Jan 26, 2021
83df371
Fix PR issues.
swetha097 Jan 28, 2021
3ebf762
Merge branch 'RALI_Upgrade_RBBOX' of https://github.com/MCW-Dev/MIVIS…
swetha097 Jan 28, 2021
2e394c5
Merge remote-tracking branch 'origin/AMD-master' into RALI_Upgrade_RBBOX
swetha097 Jan 28, 2021
aa07881
Revert back Slice to Crop
swetha097 Jan 28, 2021
ce60ac6
Resolve Codacy warnings
swetha097 Feb 2, 2021
160b579
Resolve codacy issues
swetha097 Feb 4, 2021
0872dae
Resolve Minor codacy issue
swetha097 Feb 4, 2021
7e5509d
Merge remote-tracking branch 'origin/AMD-master' into RALI_Upgrade_RBBOX
swetha097 Feb 4, 2021
ac78570
Merge branch 'AMD-master' into RALI_Upgrade_RBBOX
shobana-mcw Feb 9, 2021
e08a24f
Fix issue to make branch compatible with AMDRPP master TOT.
shobana-mcw Feb 9, 2021
e200cbd
Fix the crop_x difference in partial decoding image crop
Indumathi31 Mar 2, 2021
6e48e03
Fix issue with crop fixed.
shobana-mcw Mar 7, 2021
1587ea0
Fix the crop_width difference in partial decoding image crop
Indumathi31 Mar 8, 2021
e8e8b6c
Change wrt invalid_bboxes.
shobana-mcw Mar 9, 2021
40c1ada
Rewrite RandomBBoxCrop Code
swetha097 Mar 11, 2021
ec9856a
Fix issue with random generation.
shobana-mcw Mar 13, 2021
9940a98
Fix Key value zero error.
shobana-mcw Mar 13, 2021
4d1fbbf
Merge branch 'RALI_Upgrade_RBBOX' into shobi_devel
shobana-mcw Mar 16, 2021
153c9f9
Add codes for Video Reader and Loader module
Indumathi31 Mar 5, 2021
83befc6
Changes in image_augmentation library
Indumathi31 Mar 5, 2021
79b3a7b
Fix Build issues
Indumathi31 Mar 11, 2021
afe2497
Fix Build errors
Indumathi31 Mar 14, 2021
9a42e95
Add reader type for video reader
Indumathi31 Mar 14, 2021
1f1066a
Adding codes to decode video input file
Indumathi31 Mar 14, 2021
abe1b19
Introduce Video Decoder module to decode video files
Indumathi31 Mar 16, 2021
0eb3461
Add decoder functions in FFMPEG_VIDEO_DECODER
Indumathi31 Mar 17, 2021
65d8334
Clean Video Decoder codes
Indumathi31 Mar 17, 2021
b40a726
Clean codes to remove build issues
Indumathi31 Mar 17, 2021
4441a27
Clean codes
Indumathi31 Mar 18, 2021
949641a
Initial changes for video reader pipeline. [NBC]
shobana-mcw Mar 18, 2021
7742f32
Temp local changes. [NYC]
shobana-mcw Mar 22, 2021
44365ec
Changes in the video reader pipeline. [NWC]
shobana-mcw Mar 30, 2021
7baaaca
Video Reader changes
shobana-mcw Apr 1, 2021
e48da65
Fix the segmentation fault in the video reader pipeline
shobana-mcw Apr 7, 2021
8653c5e
Add support to save decoded output frames in video decoder
Indumathi31 Apr 16, 2021
ffff76f
Working Pipeline - Single Video file input
fiona-gladwin May 6, 2021
d647cd2
Minor Changes
fiona-gladwin May 6, 2021
151902c
Add support for decoding multiple video files and shuffle
fiona-gladwin May 6, 2021
cdce56f
Add support to initialize ffmpeg context for each video decoder instance
fiona-gladwin May 7, 2021
54f7d2e
Code cleanup
Indumathi31 May 10, 2021
376800f
Fix issue in Shuffling the images in video reader
Indumathi31 May 12, 2021
1adc8cc
Add seek_frame function in video decoder
Indumathi31 May 12, 2021
71fdf34
Code clean up
fiona-gladwin May 13, 2021
877e7fd
Update rali_unittest
Indumathi31 May 14, 2021
fdcdfc0
Add folder based label meta data reader for video reader
Indumathi31 May 14, 2021
7c8704a
Add support for Sequence Reader in RALI
Indumathi31 May 15, 2021
8d33cf6
Fix codacy issue
r-abishek May 15, 2021
ba846a0
Add Sequence Rearrange initial setup.
shobana-mcw May 17, 2021
8349d86
Fix issue with Sequence Rearrange with different sequence length.
shobana-mcw May 17, 2021
de7d0ad
Introduce raliVideoFileResize node in RALI to fuse video decoding and…
Indumathi31 May 17, 2021
81c0c49
Add new_sequence_length parameter to sequence rearrange
fiona-gladwin May 17, 2021
481afa1
Add sequence rearrange algorithm for RGB images
fiona-gladwin May 17, 2021
fbba2af
Add support for Sequence Reader in RALI
Indumathi31 May 17, 2021
4fc318a
Merge branch 'shobi_devel' of https://github.com/MCW-Dev/MIVISION int…
Indumathi31 May 17, 2021
aa88882
Fix random shuffling of sequences in video reader
fiona-gladwin May 18, 2021
4c58d5c
Add support for folder based reader and label support for video decod…
Indumathi31 May 19, 2021
eb1d32a
Clean codes
Indumathi31 May 19, 2021
946184f
Fix issue in raliVideoReaderResize
Indumathi31 May 20, 2021
7100c36
Code clean up.
shobana-mcw May 21, 2021
3424ac8
Add step and stride parameter to VideoReader and SequenceReader
fiona-gladwin May 21, 2021
863b74c
Merge branch 'shobi_devel' of https://github.com/MCW-Dev/MIVISION int…
fiona-gladwin May 21, 2021
3a25b2a
Fix issue with the sequence rearrange.
shobana-mcw May 21, 2021
25ea280
Merge branch 'shobi_devel' of https://github.com/MCW-Dev/MIVISION int…
shobana-mcw May 21, 2021
0473568
Adjust remaining image count in master graph wrt sequence rearrange.
shobana-mcw May 21, 2021
d23ed98
Add meta data support for video reader folder based.
shobana-mcw May 21, 2021
0fc09f3
Update decode image info name according to stride
fiona-gladwin May 21, 2021
3741440
Minor bug fix
fiona-gladwin May 23, 2021
0a18033
Add support for text file input
fiona-gladwin May 24, 2021
1b6121b
Merge branch 'shobi_devel' of https://github.com/MCW-Dev/MIVISION int…
fiona-gladwin May 24, 2021
9466220
Add support to process repeated file inputs in text file
fiona-gladwin May 24, 2021
823f67f
Add meta data reader support to parse timestamps from text file
fiona-gladwin May 24, 2021
4b730e7
Add rali_video_unittests
fiona-gladwin May 25, 2021
092547a
Code clean up
fiona-gladwin May 25, 2021
2bd22ff
Fix maximum limit for decoder instance creation.
shobana-mcw May 25, 2021
c2d6c99
Merge branch 'shobi_devel' of https://github.com/MCW-Dev/MIVISION int…
shobana-mcw May 25, 2021
c401f60
Fix warnings.
shobana-mcw May 25, 2021
a84e796
Minor fix
fiona-gladwin May 25, 2021
ce84689
Add file_list_frame_num parameter
fiona-gladwin Jun 2, 2021
5706cb4
Add data samples for testing
fiona-gladwin Jun 2, 2021
0002848
Add support to generate frame number and timestamps output
fiona-gladwin Jun 3, 2021
ee5c1d0
Merge branch 'video_devel' of https://github.com/MCW-Dev/MIVISION int…
fiona-gladwin Jun 3, 2021
90956bf
Fix multiple video file input to video pipeline
fiona-gladwin Jun 3, 2021
65177fe
Add labelled video folder samples
fiona-gladwin Jun 3, 2021
677015a
Modified test suite
fiona-gladwin Jun 4, 2021
f40840f
Code clean up
fiona-gladwin Jun 6, 2021
2ed52cd
Modify frame_rate variable
fiona-gladwin Jun 9, 2021
8584e05
Add step and stride parameters to SequenceReaderSingleSharded
fiona-gladwin Jun 9, 2021
f55f69b
Minor fix
fiona-gladwin Jun 11, 2021
ecb6671
Modify ffmpeg video decoder functions
fiona-gladwin Jun 11, 2021
4ede0fe
Fix ffmpeg deprecation warnings
fiona-gladwin Jun 11, 2021
ffd680e
Modify ffmpeg video decoder
fiona-gladwin Jun 14, 2021
20d8e98
Code clean up
fiona-gladwin Jun 14, 2021
c7a48fb
Remove text file input parameter to dataloader
fiona-gladwin Jun 15, 2021
5076ae3
Add support to check variable frame rate videos
fiona-gladwin Jun 15, 2021
525ff6b
Minor changes
fiona-gladwin Jun 15, 2021
5e21f5d
Minor fix
fiona-gladwin Jun 15, 2021
ee1e125
Code clean up
fiona-gladwin Jun 15, 2021
7ea9220
Code clean up
fiona-gladwin Jun 15, 2021
a9fe050
Change rali to rocAL
fiona-gladwin Jun 15, 2021
e4101ec
Merge branch 'AMD-Master' into video_devel
fiona-gladwin Jun 16, 2021
33e7a86
Resolve build issues
fiona-gladwin Jun 21, 2021
00911bd
Fix bug with Sequence Rearrange
fiona-gladwin Jun 21, 2021
46d9174
Add sharding support to Video Reader
fiona-gladwin Jun 23, 2021
25e2e19
Add sharding support for Sequence Reader
fiona-gladwin Jun 23, 2021
1427a98
Introduce decoder mode parameter
fiona-gladwin Jun 23, 2021
75aaf82
Add U8 support for Sequence Rearrange
fiona-gladwin Jun 23, 2021
669cbc7
Add SingleShard API for video readers
fiona-gladwin Jun 24, 2021
09a53cb
Add support to decode more than one sequence
fiona-gladwin Jun 25, 2021
4f69536
Merge branch 'video_devel_PR' of https://github.com/MCW-Dev/MIVISION …
fiona-gladwin Jun 25, 2021
20f1bbc
Fix SequenceReader and SequenceReaderSingleShard
fiona-gladwin Jun 27, 2021
52c4a31
Merge branch 'video_devel_PR' of https://github.com/MCW-Dev/MIVISION …
fiona-gladwin Jun 27, 2021
7081864
Resolve merge conflicts
fiona-gladwin Jun 27, 2021
03fc7d6
Minor fix
fiona-gladwin Jun 28, 2021
0011e82
Add codes for multithreading
fiona-gladwin Aug 2, 2021
b42dca3
Merge branch 'AMD-Master' into video_devel_PR
fiona-gladwin Aug 3, 2021
18a5e98
Fix build isssue with HIP backend
fiona-gladwin Aug 3, 2021
841bf8b
Merge branch 'AMD-Master' into video_devel_PR
fiona-gladwin Aug 3, 2021
468868b
Fix warnings
fiona-gladwin Aug 3, 2021
e42499f
Merge branch 'AMD-Master' of https://github.com/MCW-Dev/MIVISION
fiona-gladwin Aug 3, 2021
695f308
Merge branch 'video_devel_PR' of https://github.com/MCW-Dev/MIVISION …
fiona-gladwin Aug 3, 2021
e5aa79a
Resolve codacy issues
fiona-gladwin Aug 10, 2021
061ba33
Resolve codacy issues
fiona-gladwin Aug 11, 2021
78938ac
Modify the sequence reader arguments of the ImageLoaderNode
fiona-gladwin Aug 11, 2021
a62094e
Remove rocAL sample data
fiona-gladwin Aug 11, 2021
c342ac7
Minor changes
fiona-gladwin Aug 13, 2021
9fea304
Add seperate VideoReader
fiona-gladwin Aug 15, 2021
bb1551a
Introduce SequenceInfo struct
fiona-gladwin Aug 16, 2021
07a8f5d
Fix codacy issues in video unit test testScript.sh
fiona-gladwin Aug 18, 2021
006fb55
Minor fix
fiona-gladwin Aug 18, 2021
762651b
Merge branch 'MCW_rocAL_video' of https://github.com/fiona-gladwin/MI…
fiona-gladwin Aug 19, 2021
fffa626
Minor bug fix
fiona-gladwin Aug 19, 2021
518be50
Introduce the latest FFmpeg API in ffmpeg_video_decoder.cpp
fiona-gladwin Aug 20, 2021
626e014
Merge branch 'PR_changes' of https://github.com/fiona-gladwin/MIVisio…
fiona-gladwin Sep 6, 2021
d70f88b
Video Pipeline changes
Indumathi31 Sep 8, 2021
7c5e03e
Batch size changes for Video Reader
fiona-gladwin Sep 13, 2021
7896306
Video Pipeline Meta data reader changes to store the meta data for ea…
Indumathi31 Sep 13, 2021
f4f947f
Merge branch 'video_devel_PR' of https://github.com/MCW-Dev/MIVISION …
Indumathi31 Sep 13, 2021
3193ccd
Code cleanup - Video Reader changes
Indumathi31 Sep 13, 2021
f4a996d
Merge branch 'video_devel_PR' of https://github.com/MCW-Dev/MIVISION …
Indumathi31 Sep 13, 2021
04e9b76
Batch size variable changes
fiona-gladwin Sep 13, 2021
b2e0149
Change datatype of frame_rate to float
Indumathi31 Sep 14, 2021
e7697b5
Enable HIP Backend support for video pipeline
Indumathi31 Sep 27, 2021
9dd92c4
Merge branch 'video_devel_PR' of https://github.com/MCW-Dev/MIVISION …
Indumathi31 Sep 27, 2021
61f5f5e
Add codes to dump the images in each batch as AVI video file
Indumathi31 Oct 5, 2021
1a71876
Minor change in video unit tests
fiona-gladwin Oct 5, 2021
9e25147
Add HIP backend support for sequence rearrange
fiona-gladwin Oct 5, 2021
a8adb05
Add OpenCL backend support for sequence rearrange
fiona-gladwin Oct 5, 2021
bc8752d
Add condtion to disable ResizeNode update in raliVideoFileResize if r…
Indumathi31 Oct 5, 2021
1861a88
Merge branch 'AMD-Master' into video_devel_PR
Indumathi31 Oct 5, 2021
6465f74
PR changes
Indumathi31 Oct 9, 2021
e7cee59
Fix single folder of images issue in Sequence Reader
Indumathi31 Oct 20, 2021
0c84b02
Merge branch 'master' into video
Indumathi31 Oct 24, 2021
e5087ec
Merge branch 'GPUOpen-ProfessionalCompute-Libraries:master' into video
Indumathi31 Oct 25, 2021
ee9eefd
Fix codacy issues
Indumathi31 Oct 26, 2021
bdc3556
PR changes
Indumathi31 Oct 26, 2021
3f19b9a
API changes
Indumathi31 Oct 26, 2021
1755d7d
Introduce separate output routine for the video pipeline
Indumathi31 Oct 27, 2021
b3deef6
PR changes
Indumathi31 Oct 27, 2021
bfacaa2
Merge branch 'GPUOpen-ProfessionalCompute-Libraries:master' into video
Indumathi31 Oct 27, 2021
7e27d90
PR changes
Indumathi31 Oct 28, 2021
ce9cc71
Merge branch 'master' into video
Indumathi31 Oct 30, 2021
8d08eb8
Fix for codacy issues
Indumathi31 Oct 30, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
build*
docker_build*
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this file modified for this PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reverted back.

hip_build*
.vscode*
opencv-3.4.0/*
openvx_test_results*
Expand Down
1 change: 1 addition & 0 deletions amd_openvx_extensions/amd_rpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ list(APPEND SOURCES
source/RotatebatchPD.cpp
source/SaturationbatchPD.cpp
source/ScalebatchPD.cpp
source/SequenceRearrange.cpp
source/SnowbatchPD.cpp
source/SobelbatchPD.cpp
source/SubtractbatchPD.cpp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ vx_status ResizeCropMirrorPD_Register(vx_context);
vx_status RotatebatchPD_Register(vx_context);
vx_status SaturationbatchPD_Register(vx_context);
vx_status ScalebatchPD_Register(vx_context);
vx_status SequenceRearrange_Register(vx_context);
vx_status SnowbatchPD_Register(vx_context);
vx_status SobelbatchPD_Register(vx_context);
vx_status SubtractbatchPD_Register(vx_context);
Expand Down Expand Up @@ -195,5 +196,6 @@ vx_status WarpPerspectivebatchPD_Register(vx_context);
#define VX_KERNEL_RPP_CROPMIRRORNORMALIZEBATCHPD_NAME "org.rpp.CropMirrorNormalizebatchPD"
#define VX_KERNEL_RPP_CROPPD_NAME "org.rpp.CropPD"
#define VX_KERNEL_RPP_RESIZECROPMIRRORPD_NAME "org.rpp.ResizeCropMirrorPD"
#define VX_KERNEL_RPP_SEQUENCEREARRANGE_NAME "org.rpp.SequenceRearrange"

#endif //_AMDVX_EXT__PUBLISH_KERNELS_H_
19 changes: 10 additions & 9 deletions amd_openvx_extensions/amd_rpp/include/kernels_rpp.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,16 @@ extern "C"
VX_KERNEL_RPP_SCALEBATCHPD = VX_KERNEL_BASE(VX_ID_AMD, VX_LIBRARY_RPP) + 0x45,
VX_KERNEL_RPP_SATURATIONBATCHPD = VX_KERNEL_BASE(VX_ID_AMD, VX_LIBRARY_RPP) + 0x46,
VX_KERNEL_RPP_SOBELBATCHPD = VX_KERNEL_BASE(VX_ID_AMD, VX_LIBRARY_RPP) + 0x47,
VX_KERNEL_RPP_THRESHOLDINGBATCHPD = VX_KERNEL_BASE(VX_ID_AMD, VX_LIBRARY_RPP) + 0x48,
VX_KERNEL_RPP_TENSORADD = VX_KERNEL_BASE(VX_ID_AMD, VX_LIBRARY_RPP) + 0x49,
VX_KERNEL_RPP_TENSORSUBTRACT = VX_KERNEL_BASE(VX_ID_AMD, VX_LIBRARY_RPP) + 0x4a,
VX_KERNEL_RPP_TENSORMULTIPLY = VX_KERNEL_BASE(VX_ID_AMD, VX_LIBRARY_RPP) + 0x4b,
VX_KERNEL_RPP_TENSORMATRIXMULTIPLY = VX_KERNEL_BASE(VX_ID_AMD, VX_LIBRARY_RPP) + 0x4c,
VX_KERNEL_RPP_TENSORLOOKUP = VX_KERNEL_BASE(VX_ID_AMD, VX_LIBRARY_RPP) + 0x4d,
VX_KERNEL_RPP_VIGNETTEBATCHPD = VX_KERNEL_BASE(VX_ID_AMD, VX_LIBRARY_RPP) + 0x4e,
VX_KERNEL_RPP_WARPAFFINEBATCHPD = VX_KERNEL_BASE(VX_ID_AMD, VX_LIBRARY_RPP) + 0x4f,
VX_KERNEL_RPP_WARPPERSPECTIVEBATCHPD = VX_KERNEL_BASE(VX_ID_AMD, VX_LIBRARY_RPP) + 0x50,
VX_KERNEL_RPP_SEQUENCEREARRANGE = VX_KERNEL_BASE(VX_ID_AMD, VX_LIBRARY_RPP) +0x48,
VX_KERNEL_RPP_THRESHOLDINGBATCHPD = VX_KERNEL_BASE(VX_ID_AMD, VX_LIBRARY_RPP) + 0x49,
VX_KERNEL_RPP_TENSORADD = VX_KERNEL_BASE(VX_ID_AMD, VX_LIBRARY_RPP) + 0x4a,
VX_KERNEL_RPP_TENSORSUBTRACT = VX_KERNEL_BASE(VX_ID_AMD, VX_LIBRARY_RPP) + 0x4b,
VX_KERNEL_RPP_TENSORMULTIPLY = VX_KERNEL_BASE(VX_ID_AMD, VX_LIBRARY_RPP) + 0x4c,
VX_KERNEL_RPP_TENSORMATRIXMULTIPLY = VX_KERNEL_BASE(VX_ID_AMD, VX_LIBRARY_RPP) + 0x4d,
VX_KERNEL_RPP_TENSORLOOKUP = VX_KERNEL_BASE(VX_ID_AMD, VX_LIBRARY_RPP) + 0x4e,
VX_KERNEL_RPP_VIGNETTEBATCHPD = VX_KERNEL_BASE(VX_ID_AMD, VX_LIBRARY_RPP) + 0x4f,
VX_KERNEL_RPP_WARPAFFINEBATCHPD = VX_KERNEL_BASE(VX_ID_AMD, VX_LIBRARY_RPP) + 0x50,
VX_KERNEL_RPP_WARPPERSPECTIVEBATCHPD = VX_KERNEL_BASE(VX_ID_AMD, VX_LIBRARY_RPP) + 0x51
};

#ifdef __cplusplus
Expand Down
2 changes: 1 addition & 1 deletion amd_openvx_extensions/amd_rpp/include/vx_ext_rpp.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ extern "C" SHARED_PUBLIC vx_node VX_API_CALL vxExtrppNode_ThresholdingbatchPD(v
extern "C" SHARED_PUBLIC vx_node VX_API_CALL vxExtrppNode_VignettebatchPD(vx_graph graph,vx_image pSrc,vx_array srcImgWidth,vx_array srcImgHeight,vx_image pDst,vx_array stdDev,vx_uint32 nbatchSize);
extern "C" SHARED_PUBLIC vx_node VX_API_CALL vxExtrppNode_WarpAffinebatchPD(vx_graph graph,vx_image pSrc,vx_array srcImgWidth,vx_array srcImgHeight,vx_image pDst,vx_array dstImgWidth,vx_array dstImgHeight,vx_array affine,vx_uint32 nbatchSize);
extern "C" SHARED_PUBLIC vx_node VX_API_CALL vxExtrppNode_WarpPerspectivebatchPD(vx_graph graph,vx_image pSrc,vx_array srcImgWidth,vx_array srcImgHeight,vx_image pDst,vx_array dstImgWidth,vx_array dstImgHeight,vx_array perspective,vx_uint32 nbatchSize);

extern "C" SHARED_PUBLIC vx_node VX_API_CALL vxExtrppNode_SequenceRearrange(vx_graph graph,vx_image pSrc,vx_image pDst, vx_array newOrder,vx_uint32 newSequenceLength, vx_uint32 sequenceLength, vx_uint32 sequenceCount);
#ifdef __cplusplus
}
#endif
Expand Down
300 changes: 300 additions & 0 deletions amd_openvx_extensions/amd_rpp/source/SequenceRearrange.cpp

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ vx_status get_kernels_to_publish()
STATUS_ERROR_CHECK(ADD_KERENEL(ResizeCropMirrorPD_Register));
STATUS_ERROR_CHECK(ADD_KERENEL(Copy_Register));
STATUS_ERROR_CHECK(ADD_KERENEL(Nop_Register));
STATUS_ERROR_CHECK(ADD_KERENEL(SequenceRearrange_Register));
return status;
}

Expand Down
24 changes: 24 additions & 0 deletions amd_openvx_extensions/amd_rpp/source/kernel_rpp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1800,6 +1800,30 @@ VX_API_CALL vx_node VX_API_CALL vxExtrppNode_Nop(vx_graph graph, vx_image pSrc,
return node;
}

VX_API_CALL vx_node VX_API_CALL vxExtrppNode_SequenceRearrange(vx_graph graph,vx_image pSrc,vx_image pDst, vx_array newOrder, vx_uint32 newSequenceLength, vx_uint32 sequenceLength, vx_uint32 sequenceCount)
{
vx_node node = NULL;
vx_context context = vxGetContext((vx_reference)graph);
if(vxGetStatus((vx_reference)context) == VX_SUCCESS) {
vx_uint32 dev_type = getGraphAffinity(graph);
vx_scalar DEV_TYPE = vxCreateScalar(vxGetContext((vx_reference)graph), VX_TYPE_UINT32, &dev_type);
vx_scalar NEWSEQUENCELENGTH = vxCreateScalar(vxGetContext((vx_reference)graph), VX_TYPE_UINT32, &newSequenceLength);
vx_scalar SEQUENCELENGTH = vxCreateScalar(vxGetContext((vx_reference)graph), VX_TYPE_UINT32, &sequenceLength);
vx_scalar SEQUENCECOUNT = vxCreateScalar(vxGetContext((vx_reference)graph), VX_TYPE_UINT32, &sequenceCount);
vx_reference params[] = {
(vx_reference) pSrc,
(vx_reference) pDst,
(vx_reference) newOrder,
(vx_reference) NEWSEQUENCELENGTH,
(vx_reference) SEQUENCELENGTH,
(vx_reference) SEQUENCECOUNT,
(vx_reference) DEV_TYPE
};
node = createNode(graph, VX_KERNEL_RPP_SEQUENCEREARRANGE, params, 7);
}
return node;
}

// utility functions
vx_node createNode(vx_graph graph, vx_enum kernelEnum, vx_reference params[], vx_uint32 num)
{
Expand Down
6 changes: 4 additions & 2 deletions apps/image_augmentation/image_augmentation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,15 @@ int main(int argc, const char ** argv)

if(video_mode != 0)
{
unsigned sequence_length = 3;
unsigned frame_step = 3;
unsigned frame_stride = 1;
if (decode_height <= 0 || decode_width <= 0)
{
std::cout << "Output width and height is needed for video decode\n";
return -1;
}
input1 = raliVideoFileSource(handle, folderPath1, color_format, ((video_mode == 1) ? RaliDecodeDevice::RALI_HW_DECODE:RaliDecodeDevice::RALI_SW_DECODE)
, true, decode_width, decode_height, false);
input1 = raliVideoFileSource(handle, folderPath1, color_format, ((video_mode == 1) ? RaliDecodeDevice::RALI_HW_DECODE:RaliDecodeDevice::RALI_SW_DECODE), shard_count, sequence_length, frame_step, frame_stride, shuffle, true, false);
}
else
{
Expand Down
21 changes: 16 additions & 5 deletions rocAL/rocAL/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ if(GPU_SUPPORT)
find_package(AMDRPP QUIET)
find_package(TurboJpeg QUIET)
find_package(Protobuf QUIET)
# If FFMPEG is found, vx_amd_media is expected to be built as well
find_package(FFmpeg QUIET)
find_package(OpenCV QUIET)
else()
Expand Down Expand Up @@ -155,7 +154,19 @@ if(${BUILD_RALI})
include/rali_api_meta_data.h
DESTINATION ./include
)
if(FFMPEG_FOUND)
find_path(AVUTIL_INCLUDE_DIR libavutil/avutil.h)
find_path(AVCODEC_INCLUDE_DIR libavcodec/avcodec.h)
find_path(SWSCALE_INCLUDE_DIR libswscale/swscale.h)
find_path(AVFORMAT_INCLUDE_DIR libavformat/avformat.h)
endif()
include_directories(
${OpenCL_INCLUDE_DIRS}
${OpenCL_INCLUDE_DIRS}/Headers
${AVUTIL_INCLUDE_DIR}
${AVCODEC_INCLUDE_DIR}
${SWSCALE_INCLUDE_DIR}
${AVFORMAT_INCLUDE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${TurboJpeg_INCLUDE_DIRS}
${PROTOBUF_INCLUDE_DIRS}
Expand Down Expand Up @@ -203,17 +214,17 @@ if(${BUILD_RALI})
else()
target_compile_definitions(${PROJECT_NAME} PUBLIC ENABLE_OPENCV=0)
endif()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -fopenmp -msse4.2 -mavx2 -Wall -fPIC -pg -pthread -std=c++14")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -fopenmp -msse4.2 -mavx2 -Wall -fPIC -pg -pthread -std=c++14 -Wno-deprecated-declarations")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need to use "wno-depracated-.." compile flag?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This flag is used to suppress the warnings related to ffmpeg libraries. It was removed unknowingly while resolving merge conflicts. So reverted back.

message("-- ${Green}rocAL - CMAKE_CXX_FLAGS:${CMAKE_CXX_FLAGS}")

if(NOT FFMPEG_FOUND)
message("-- ${Yellow}rocAL library is going to be built without video decode functionality ${ColourReset}")
target_link_libraries(${PROJECT_NAME} -fPIC ${PROTOBUF_LIBRARIES} lmdb boost_system boost_filesystem turbojpeg openvx vx_rpp )
target_link_libraries(${PROJECT_NAME} -fPIC ${PROTOBUF_LIBRARIES} lmdb boost_system boost_filesystem turbojpeg openvx vx_rpp)
else()
message("-- ${Green}rocAL library is going to be built with video decode functionality ${ColourReset}")
target_link_libraries(${PROJECT_NAME} -DRALI_VIDEO -fPIC ${PROTOBUF_LIBRARIES} lmdb turbojpeg openvx vx_rpp )
target_compile_definitions(${PROJECT_NAME} PUBLIC -DRALI_VIDEO)
target_link_libraries(${PROJECT_NAME} -fPIC ${PROTOBUF_LIBRARIES} ${FFMPEG_LIBRARIES} lmdb turbojpeg openvx vx_rpp)
endif()

if("${BACKEND}" STREQUAL "HIP" AND HIP_FOUND)
target_link_libraries(${PROJECT_NAME} $<TARGET_OBJECTS:rocAL_hip>)
endif()
Expand Down
4 changes: 2 additions & 2 deletions rocAL/rocAL/include/caffe2_lmdb_record_reader.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class Caffe2LMDBRecordReader : public Reader
\param buf User's provided buffer to receive the loaded images
\return Size of the loaded resource
*/
size_t read(unsigned char* buf, size_t max_size) override;
size_t read_data(unsigned char* buf, size_t max_size) override;
//! Opens the next file in the folder
/*!
\return The size of the next file, 0 if couldn't access it
Expand All @@ -60,7 +60,7 @@ class Caffe2LMDBRecordReader : public Reader
//! Returns the id of the latest file opened
std::string id() override { return _last_id;};

unsigned count() override;
unsigned count_items() override;

~Caffe2LMDBRecordReader() override;

Expand Down
1 change: 1 addition & 0 deletions rocAL/rocAL/include/caffe2_meta_data_reader.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public :
void release(std::string image_name);
void release() override;
void print_map_contents();
bool set_timestamp_mode() override { return false; }
MetaDataBatch * get_output() override { return _output; }
Caffe2MetaDataReader();
~Caffe2MetaDataReader() override { delete _output; }
Expand Down
1 change: 1 addition & 0 deletions rocAL/rocAL/include/caffe2_meta_data_reader_detection.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public :
void release(std::string image_name);
void release() override;
void print_map_contents();
bool set_timestamp_mode() override { return false; }
MetaDataBatch * get_output() override { return _output; }
Caffe2MetaDataReaderDetection();
~Caffe2MetaDataReaderDetection() override { delete _output; }
Expand Down
4 changes: 2 additions & 2 deletions rocAL/rocAL/include/caffe_lmdb_record_reader.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class CaffeLMDBRecordReader : public Reader{
\param buf User's provided buffer to receive the loaded images
\return Size of the loaded resource
*/
size_t read(unsigned char* buf, size_t max_size) override;
size_t read_data(unsigned char* buf, size_t max_size) override;
//! Opens the next file in the folder
/*!
\return The size of the next file, 0 if couldn't access it
Expand All @@ -59,7 +59,7 @@ class CaffeLMDBRecordReader : public Reader{
//! Returns the id of the latest file opened
std::string id() override { return _last_id;};

unsigned count() override;
unsigned count_items() override;

~CaffeLMDBRecordReader() override;

Expand Down
1 change: 1 addition & 0 deletions rocAL/rocAL/include/caffe_meta_data_reader.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public :
void read_all(const std::string& path) override;
void release(std::string image_name);
void release() override;
bool set_timestamp_mode() override { return false; }
void print_map_contents();
MetaDataBatch * get_output() override { return _output; }
CaffeMetaDataReader();
Expand Down
1 change: 1 addition & 0 deletions rocAL/rocAL/include/caffe_meta_data_reader_detection.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public :
void read_all(const std::string& path) override;
void release(std::string image_name);
void release() override;
bool set_timestamp_mode() override { return false; }
void print_map_contents();
MetaDataBatch * get_output() override { return _output; }
CaffeMetaDataReaderDetection();
Expand Down
4 changes: 2 additions & 2 deletions rocAL/rocAL/include/cifar10_data_reader.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class CIFAR10DataReader : public Reader {
\param buf User's provided buffer to receive the loaded images
\return Size of the loaded resource
*/
size_t read(unsigned char* buf, size_t max_size) override;
size_t read_data(unsigned char* buf, size_t max_size) override;
//! Opens the next file in the folder
/*!
\return The size of the next file, 0 if couldn't access it
Expand All @@ -53,7 +53,7 @@ class CIFAR10DataReader : public Reader {
//! Returns the name of the latest data_id opened
std::string id() override { return _last_id;};

unsigned count() override;
unsigned count_items() override;

~CIFAR10DataReader() override;

Expand Down
1 change: 1 addition & 0 deletions rocAL/rocAL/include/cifar10_meta_data_reader.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public :
void release(std::string image_name);
void release() override;
void print_map_contents();
bool set_timestamp_mode() override { return false; }
MetaDataBatch * get_output() override { return _output; }
Cifar10MetaDataReader();
~Cifar10MetaDataReader() override { delete _output; }
Expand Down
4 changes: 2 additions & 2 deletions rocAL/rocAL/include/coco_file_source_reader.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class COCOFileSourceReader : public Reader {
\param buf User's provided buffer to receive the loaded images
\return Size of the loaded resource
*/
size_t read(unsigned char* buf, size_t max_size) override;
size_t read_data(unsigned char* buf, size_t max_size) override;
//! Opens the next file in the folder
/*!
\return The size of the next file, 0 if couldn't access it
Expand All @@ -36,7 +36,7 @@ class COCOFileSourceReader : public Reader {
//! Returns the name of the latest file opened
std::string id() override { return _last_id;};

unsigned count() override;
unsigned count_items() override;
unsigned long long get_shuffle_time() {return _shuffle_time.get_timing();};

~COCOFileSourceReader() override;
Expand Down
1 change: 1 addition & 0 deletions rocAL/rocAL/include/coco_meta_data_reader.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class COCOMetaDataReader: public MetaDataReader
void release(std::string image_name);
void release() override;
void print_map_contents();
bool set_timestamp_mode() override { return false; }
MetaDataBatch * get_output() override { return _output; }
std::map<std::string, std::shared_ptr<BoundingBox>> get_map_content() { return _map_content;}
COCOMetaDataReader();
Expand Down
13 changes: 13 additions & 0 deletions rocAL/rocAL/include/commons.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,16 @@ enum class RaliMemType
HIP
};

/*! \brief Decoder mode for Video decoding
*
* Currently supports Software decoding, will support Hardware decoding in future
*/
enum class DecodeMode
{
HW_VAAPI = 0,
CPU = 1
};

struct Timing
{
// The following timings are accumulated timing not just the most recent activity
Expand All @@ -86,4 +96,7 @@ struct Timing
long long unsigned bb_load_time= 0;
long long unsigned mask_load_time = 0;
long long unsigned shuffle_time = 0;
long long unsigned video_read_time= 0;
long long unsigned video_decode_time= 0;
long long unsigned video_process_time= 0;
};
48 changes: 48 additions & 0 deletions rocAL/rocAL/include/ffmpeg_video_decoder.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
/*
Copyright (c) 2019 - 2021 Advanced Micro Devices, Inc. All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/

#pragma once

#include "video_decoder.h"

#ifdef RALI_VIDEO
class FFmpegVideoDecoder : public VideoDecoder
{
public:
//! Default constructor
FFmpegVideoDecoder();
VideoDecoder::Status Initialize(const char *src_filename) override;
VideoDecoder::Status Decode(unsigned char *output_buffer, unsigned seek_frame_number, size_t sequence_length, size_t stride, int out_width, int out_height, int out_stride, AVPixelFormat out_format) override;
int seek_frame(AVRational avg_frame_rate, AVRational time_base, unsigned frame_number) override;
void release() override;
~FFmpegVideoDecoder() override;
private:
const char *_src_filename = NULL;
AVFormatContext *_fmt_ctx = NULL;
AVCodecContext *_video_dec_ctx = NULL;
AVCodec *_decoder = NULL;
AVStream *_video_stream = NULL;
int _video_stream_idx = -1;
AVPixelFormat _dec_pix_fmt;
int _codec_width, _codec_height;
};
#endif
4 changes: 2 additions & 2 deletions rocAL/rocAL/include/file_source_reader.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class FileSourceReader : public Reader {
\param buf User's provided buffer to receive the loaded images
\return Size of the loaded resource
*/
size_t read(unsigned char* buf, size_t max_size) override;
size_t read_data(unsigned char* buf, size_t max_size) override;
//! Opens the next file in the folder
/*!
\return The size of the next file, 0 if couldn't access it
Expand All @@ -55,7 +55,7 @@ class FileSourceReader : public Reader {
//! Returns the name of the latest file opened
std::string id() override { return _last_id;};

unsigned count() override;
unsigned count_items() override;

~FileSourceReader() override;

Expand Down
1 change: 1 addition & 0 deletions rocAL/rocAL/include/label_reader_folders.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public :
void release(std::string image_name);
void release() override;
void print_map_contents();
bool set_timestamp_mode() override { return false; }
MetaDataBatch * get_output() override { return _output; }
LabelReaderFolders();
~LabelReaderFolders() override { delete _output; }
Expand Down
Loading