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

Reintroduce "Move old ImageDecoder to legacy module and make the nvImageCodec based ImageDecoder the default" #5470

Merged
merged 6 commits into from
May 23, 2024

Conversation

jantonguirao
Copy link
Contributor

@jantonguirao jantonguirao commented May 15, 2024

Category:

Other Replaces default ImageDecoders with the nvImageCodec based implementations.

Description:

  • Replaces default ImageDecoders with the nvImageCodec based implementations.
  • Move former default decoders to a legacy module

Additional information:

Affected modules and functionalities:

  • ImageDecoder*

Key points relevant for the review:

Tests:

  • Existing tests apply
  • New tests added
    • Python tests
    • GTests
    • Benchmark
    • Other
  • N/A

Checklist

Documentation

  • Existing documentation applies
  • Documentation updated
    • Docstring
    • Doxygen
    • RST
    • Jupyter
    • Other
  • N/A

DALI team only

Requirements

  • Implements new requirements
  • Affects existing requirements
  • N/A

REQ IDs: N/A

JIRA TASK: N/A

…vImageCodec based ImageDecoder the default (NVIDIA#5445)""

This reverts commit a1b4fbd.

Signed-off-by: Joaquin Anton <[email protected]>
Signed-off-by: Joaquin Anton <[email protected]>
Signed-off-by: Joaquin Anton <[email protected]>
@jantonguirao
Copy link
Contributor Author

!build

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [15065473]: BUILD FAILED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [15066134]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [15066134]: BUILD PASSED

Signed-off-by: Joaquin Anton <[email protected]>
@dali-automaton
Copy link
Collaborator

CI MESSAGE: [15089873]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [15089873]: BUILD PASSED

@@ -1,4 +1,4 @@
# Copyright (c) 2019-2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# Copyright (c) 2019-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
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 is just reverting previous changes

@jantonguirao jantonguirao changed the title Reintroduce nvimagecodec Reintroduce "Move old ImageDecoder to legacy module and make the nvImageCodec based ImageDecoder the default" May 20, 2024
@jantonguirao jantonguirao marked this pull request as ready for review May 20, 2024 07:44
Signed-off-by: Joaquin Anton <[email protected]>
st->out_shape = st->parsed_sample.dali_img_info.shape;
st->out_shape[2] = NumberOfChannels(format_, st->out_shape[2]);
if (use_orientation_ &&
((st->parsed_sample.nvimgcodec_img_info.orientation.rotated / 90) & 1)) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

(Nitpick) This & is quite non-obvious here. We just want to know if it's rotated by 90 or 270 degrees, why not just

Suggested change
((st->parsed_sample.nvimgcodec_img_info.orientation.rotated / 90) & 1)) {
(st->parsed_sample.nvimgcodec_img_info.orientation.rotated % 180 != 0) {

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [15192159]: BUILD STARTED

Signed-off-by: Joaquin Anton <[email protected]>
@dali-automaton
Copy link
Collaborator

CI MESSAGE: [15196770]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [15196770]: BUILD FAILED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [15224234]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [15224234]: BUILD FAILED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [15235949]: BUILD STARTED

@jantonguirao
Copy link
Contributor Author

!build

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [15236466]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [15236466]: BUILD FAILED

@jantonguirao jantonguirao merged commit 814d004 into NVIDIA:main May 23, 2024
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants