-
Notifications
You must be signed in to change notification settings - Fork 630
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
Video decoder in plugin #5477
Video decoder in plugin #5477
Conversation
Signed-off-by: Joaquin Anton <janton@nvidia.com>
Signed-off-by: Joaquin Anton <janton@nvidia.com>
…functions Signed-off-by: Joaquin Anton <janton@nvidia.com>
Signed-off-by: Joaquin Anton <janton@nvidia.com>
Signed-off-by: Joaquin Anton <janton@nvidia.com>
Signed-off-by: Joaquin Anton <janton@nvidia.com>
Signed-off-by: Joaquin Anton <janton@nvidia.com>
Signed-off-by: Joaquin Anton <janton@nvidia.com>
Signed-off-by: Joaquin Anton <janton@nvidia.com>
Signed-off-by: Joaquin Anton <janton@nvidia.com>
Signed-off-by: Joaquin Anton <janton@nvidia.com>
Signed-off-by: Joaquin Anton <janton@nvidia.com>
Signed-off-by: Joaquin Anton <janton@nvidia.com>
Signed-off-by: Joaquin Anton <janton@nvidia.com>
Signed-off-by: Joaquin Anton <janton@nvidia.com>
Signed-off-by: Joaquin Anton <janton@nvidia.com>
Signed-off-by: Joaquin Anton <janton@nvidia.com>
Signed-off-by: Joaquin Anton <janton@nvidia.com>
Signed-off-by: Joaquin Anton <janton@nvidia.com>
Signed-off-by: Joaquin Anton <janton@nvidia.com>
Signed-off-by: Joaquin Anton <janton@nvidia.com>
Signed-off-by: Joaquin Anton <janton@nvidia.com>
Signed-off-by: Joaquin Anton <janton@nvidia.com>
Signed-off-by: Joaquin Anton <janton@nvidia.com>
Signed-off-by: Joaquin Anton <janton@nvidia.com>
Signed-off-by: Joaquin Anton <janton@nvidia.com>
if (spec.HasArgument("end_frame")) { | ||
end_frame_ = spec.GetArgument<int>("end_frame"); | ||
} else { | ||
DALI_FAIL("Not passing `end_frame` argument is not yet implemented."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpick, to get rid two negations from the sentence.
DALI_FAIL("Not passing `end_frame` argument is not yet implemented."); | |
DALI_FAIL("Currently, `end_frame` argument is required."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
yuv_to_rgb(pFrame, nPitch, reinterpret_cast<uint8_t *>(dpFrame), | ||
sample.decoder_->GetWidth() * 3, sample.decoder_->GetWidth(), | ||
sample.decoder_->GetHeight(), full_range, cuStream); | ||
CUDA_CALL(cudaStreamSynchronize(cuStream)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this synchronization needed here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was leftover from the more extended version where we might want to do some postprocessing here. Removed it for now, I will add it if needed later.
Signed-off-by: Albert Wolant <awolant@nvidia.com>
Signed-off-by: Albert Wolant <awolant@nvidia.com>
Signed-off-by: Albert Wolant <awolant@nvidia.com>
!build |
CI MESSAGE: [15614667]: BUILD STARTED |
CI MESSAGE: [15614667]: BUILD FAILED |
!build |
CI MESSAGE: [15620547]: BUILD STARTED |
CI MESSAGE: [15620547]: BUILD FAILED |
!build |
CI MESSAGE: [15650237]: BUILD STARTED |
CI MESSAGE: [15650237]: BUILD FAILED |
!build |
2 similar comments
!build |
!build |
CI MESSAGE: [15879104]: BUILD STARTED |
CI MESSAGE: [15879104]: BUILD FAILED |
Signed-off-by: Albert Wolant <awolant@nvidia.com>
!build |
CI MESSAGE: [15887381]: BUILD STARTED |
CI MESSAGE: [15887381]: BUILD PASSED |
Category:
New feature
Description:
Adds video decoder based on the Video Codec SDK 12.0 and is distributed with
nvidia-dali-video
package.Additional information:
This PR adds the basic minimal video decoder based on Video Codec SDK 12.0. It can decode h264 and h265 videos passed as encoded binary buffers. Can be used with external source operator as an input. There is one argument:
end_frame
- it tells what is the index of a last frame that should be decoded.Affected modules and functionalities:
Video plugin, video plugin tests.
Key points relevant for the review:
Tests:
Checklist
Documentation
DALI team only
Requirements
REQ IDs: N/A
JIRA TASK: N/A