Skip to content

Commit

Permalink
Color conv nppi (#232)
Browse files Browse the repository at this point in the history
* nv12 to  rgb, rgb to yuv420 commit

* added more coversions

* added more conversions

* added more conversions

* modified and added more tests

* working model for all direct conversions

* working for all direct conversions

* working for intermediate conversions

* refactoring

* disabled similar tests

* disabled few tests

* refactoring

* modified convmatrix

* added output images

* disabled Mp4 reader test

* added precondition

* removed pre condition

* deleted img

* added nv12 image

* removed unecessary headers

* disabled monotorgb

* disabled nv12toyuv420

* diabled few tests

* refactoring

* refactoring

* added precompute condition

* refactoring

* changed few declarations

* deleted ccnppi outputs

* disabled all tests

* enabled tests

* refactoring

* refactoring

* refactoring

* disabled few tests

* refactoring

* refactoring

* nv12 to  rgb, rgb to yuv420 commit

* added more coversions

* added more conversions

* added more conversions

* modified and added more tests

* working model for all direct conversions

* working for all direct conversions

* working for intermediate conversions

* refactoring

* disabled similar tests

* disabled few tests

* refactoring

* modified convmatrix

* added output images

* added precondition

* removed pre condition

* deleted img

* added nv12 image

* removed unecessary headers

* disabled monotorgb

* disabled nv12toyuv420

* diabled few tests

* refactoring

* refactoring

* added precompute condition

* refactoring

* changed few declarations

* deleted ccnppi outputs

* disabled all tests

* enabled tests

* refactoring

* refactoring

* refactoring

* disabled few tests

* refactoring

* refactoring

* added output images

* addressed all the PR comments

* changed props to mProps

* added compute cap pre condition

* improve submodules listing based on latest git client

Trial

* nv12 to  rgb, rgb to yuv420 commit

* added more coversions

* added more conversions

* added more conversions

* modified and added more tests

* working model for all direct conversions

* working for all direct conversions

* working for intermediate conversions

* refactoring

* disabled similar tests

* disabled few tests

* refactoring

* modified convmatrix

* added output images

* added precondition

* removed pre condition

* deleted img

* added nv12 image

* removed unecessary headers

* disabled monotorgb

* disabled nv12toyuv420

* diabled few tests

* refactoring

* refactoring

* added precompute condition

* refactoring

* changed few declarations

* deleted ccnppi outputs

* disabled all tests

* enabled tests

* refactoring

* refactoring

* refactoring

* disabled few tests

* refactoring

* refactoring

* nv12 to  rgb, rgb to yuv420 commit

* added more coversions

* working model for all direct conversions

* working for intermediate conversions

* refactoring

* disabled similar tests

* refactoring

* modified convmatrix

* added output images

* added precondition

* removed pre condition

* deleted img

* added nv12 image

* disabled monotorgb

* disabled nv12toyuv420

* diabled few tests

* refactoring

* added precompute condition

* refactoring

* deleted ccnppi outputs

* disabled all tests

* enabled tests

* refactoring

* refactoring

* refactoring

* disabled few tests

* refactoring

* refactoring

* added output images

* addressed all the PR comments

* changed props to mProps

* added compute cap pre condition

* resolved merge conflicts

---------

Co-authored-by: “Vinayak-YB” <“vinayak.bhustali@gmail.com”>
Co-authored-by: mohammedzakikochargi <97148049+mohammedzakikochargi@users.noreply.github.com>
Co-authored-by: Akhil Kumar <kumaakh@users.noreply.github.com>
  • Loading branch information
4 people authored Jul 17, 2023
1 parent c9b51d3 commit a3b4240
Show file tree
Hide file tree
Showing 31 changed files with 62,309 additions and 424 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-test-lin-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ jobs:
submodules: 'recursive'
lfs: true
fetch-depth: 0

- name: List Submodules
run: |
git config --global --add safe.directory "*"
Expand Down
2 changes: 1 addition & 1 deletion base/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,7 @@ IF (ENABLE_CUDA)
test/cudamemcopy_tests.cpp
test/resizenppi_tests.cpp
test/rotatenppi_tests.cpp
test/ccnppi_tests.cpp
)
IF(NOT ENABLE_ARM64) # following tests need CUDA but can not run on ARM ?

Expand All @@ -486,7 +487,6 @@ IF (ENABLE_CUDA)
test/jpegdecodernvjpeg_tests.cpp
test/resizenppi_jpegencodernvjpeg_tests.cpp
test/nvjpeg_combo_tests.cpp
test/ccnppi_tests.cpp
test/overlaynppi_tests.cpp
test/effectsnppi_tests.cpp
test/h264Encodernvcodec_tests.cpp
Expand Down
4 changes: 3 additions & 1 deletion base/include/CCNPPI.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
class CCNPPIProps : public ModuleProps
{
public:

CCNPPIProps(ImageMetadata::ImageType _imageType, cudastream_sp& _stream)
{
stream_sp = _stream;
Expand Down Expand Up @@ -49,6 +50,7 @@ class CCNPPI : public Module
int mOutputFrameType;
size_t mFrameLength;
framemetadata_sp mOutputMetadata;
framemetadata_sp mIntermediateMetadata;
std::string mOutputPinId;
CCNPPIProps props;
CCNPPIProps mProps;
};
Loading

0 comments on commit a3b4240

Please sign in to comment.