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

RPP Glitch on HOST and HIP #357

Open
wants to merge 128 commits into
base: develop
Choose a base branch
from
Open

Conversation

r-abishek
Copy link
Member

  • Adds support for glitch augmentation on host and hip
  • Adds relevant unit/performance/QA tests

snehaa8 and others added 30 commits November 29, 2022 05:22
added golden output support for glitch
r-abishek and others added 7 commits May 9, 2024 10:38
* add NFT and NTF layouts

* Set layout for spectrogram and melfilterbank directly in testsuite

* Remove extra blank line in testsuite

* minor changes in test suite

* minor change in MFB description

---------

Co-authored-by: Snehaa Giridharan <snehaa@multicorewareinc.com>
Co-authored-by: sampath1117 <sampath.rachumallu@multicorewareinc.com>
@r-abishek r-abishek requested a review from rrawther May 17, 2024 01:14
@kiritigowda kiritigowda self-assigned this May 17, 2024
@kiritigowda kiritigowda added the enhancement New feature or request label May 17, 2024
@kiritigowda kiritigowda changed the base branch from develop to master May 24, 2024 06:40
@kiritigowda kiritigowda requested a review from a team as a code owner May 24, 2024 06:40
@kiritigowda kiritigowda changed the base branch from master to develop May 24, 2024 06:45
@kiritigowda kiritigowda marked this pull request as draft May 24, 2024 08:05
@r-abishek r-abishek marked this pull request as ready for review May 29, 2024 02:42
inline void compute_src_loc(int row , int col, Rpp32s *locArray, RpptDescPtr srcDescPtr, RpptChannelOffsets *rgbOffsets, RpptROI roi, int batchCount, int channelValue)
{
int xR, yR, xG, yG, xB, yB;
xR = col + rgbOffsets[batchCount].r.x;
Copy link
Contributor

Choose a reason for hiding this comment

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

can we make sure the rgbOffsets[]... are within valid boundary thereby avoiding the boundary checks below

Copy link
Member Author

Choose a reason for hiding this comment

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

Discussed this, and the only solution here without checking bounds might be to just trust the user/caller that they will give the values within bounds, which may not necessarily be true.
Agreed to have the checks on the hip side at least for now.

Rpp32f *dstPtrRow;
dstPtrRow = dstPtrChannel;
Rpp32u vectorIncrement = 8;
Rpp32u alignedLength = (static_cast<int>(roi.xywhROI.roiWidth * 0.75)) & ~7; // Considering 75% of the ROI width to avoid loading out-of-bounds locations.
Copy link
Contributor

@rrawther rrawther Jun 3, 2024

Choose a reason for hiding this comment

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

as we discussed, this can cause some areas visibily showing without glitching. why don't we make it truncated to the nearest multiple of 16 for alignment as well

Copy link
Member Author

Choose a reason for hiding this comment

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

Done, removed the 0.75, changed to nearest multiple of alignedLength

Copy link
Contributor

@rrawther rrawther left a comment

Choose a reason for hiding this comment

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

Added some comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

10 participants