-
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
Frames decoder gpu #3615
Frames decoder gpu #3615
Conversation
Signed-off-by: Albert Wolant <awolant@nvidia.com>
Signed-off-by: Albert Wolant <awolant@nvidia.com>
Signed-off-by: Albert Wolant <awolant@nvidia.com>
Signed-off-by: Albert Wolant <awolant@nvidia.com>
Signed-off-by: Albert Wolant <awolant@nvidia.com>
Signed-off-by: Albert Wolant <awolant@nvidia.com>
Signed-off-by: Albert Wolant <awolant@nvidia.com>
Signed-off-by: Albert Wolant <awolant@nvidia.com>
Signed-off-by: Albert Wolant <awolant@nvidia.com>
Signed-off-by: Albert Wolant <awolant@nvidia.com>
CI MESSAGE: [3785236]: BUILD FAILED |
Signed-off-by: Albert Wolant <awolant@nvidia.com>
!build |
CI MESSAGE: [3785564]: BUILD STARTED |
CI MESSAGE: [3785564]: BUILD FAILED |
Signed-off-by: Albert Wolant <awolant@nvidia.com>
!build |
CI MESSAGE: [3787139]: BUILD STARTED |
CI MESSAGE: [3787139]: BUILD FAILED |
Signed-off-by: Albert Wolant <awolant@nvidia.com>
CI MESSAGE: [3792048]: BUILD STARTED |
CI MESSAGE: [3792048]: BUILD FAILED |
Clamp(matYuv2Rgb[2][0] * fy + matYuv2Rgb[2][1] * fu + matYuv2Rgb[2][2] * fv, 0.0f, maxf)}; | ||
} | ||
|
||
__global__ static void YuvToRgbKernel(uint8_t *pYuv, int nYuvPitch, uint8_t *pRgb, int nRgbPitch, int nWidth, int nHeight) { |
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.
I wonder if this can be moved to color_space_conversion_impl.h.
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.
I made this file more readable for now.
In the future, we need to extend this simple code to support more pixel formats. Then I think will be the right time to extract impl. Is that ok?
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.
Sure
FramesDecoderGpu *frames_decoder = static_cast<FramesDecoderGpu*>(user_data); | ||
if (frames_decoder->flush_) { | ||
frames_decoder->flush_ = false; | ||
frames_decoder->decode_success_ = false; |
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 - I guess you can move this to L36 and remove L43.
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
Signed-off-by: Albert Wolant <awolant@nvidia.com>
frames_decoder->piped_pts_.pop(); | ||
|
||
// current_pts is pts of frame that came from the decoder | ||
// CurrentFramePts() is pts of the frame that we want to return |
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.
// CurrentFramePts() is pts of the frame that we want to return | |
// NextFramePts() is pts of the frame that we want to return |
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
Signed-off-by: Albert Wolant <awolant@nvidia.com>
!build |
CI MESSAGE: [3909057]: BUILD STARTED |
CI MESSAGE: [3909057]: BUILD FAILED |
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: [3909959]: BUILD STARTED |
CI MESSAGE: [3909959]: BUILD FAILED |
!build |
CI MESSAGE: [3910090]: BUILD STARTED |
CI MESSAGE: [3910090]: BUILD FAILED |
CI MESSAGE: [3910090]: BUILD PASSED |
* Add FramesDecoderGpu Signed-off-by: Albert Wolant <awolant@nvidia.com>
* Add FramesDecoderGpu Signed-off-by: Albert Wolant <awolant@nvidia.com>
* Add FramesDecoderGpu Signed-off-by: Albert Wolant <awolant@nvidia.com>
Description
What happened in this PR
Adds new class
FramesDecoderGpu
capable of decoding video files using NVIDIA Video Codec SDK.This class derives from
FramesDecoder
that uses FFMPEG to do the same thing.Checklist
Tests
Documentation
DALI team only
Requirements
REQ IDs: N/A
JIRA TASK: 2252