-
Notifications
You must be signed in to change notification settings - Fork 32
Define CpuDeviceInterface #636
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
base: main
Are you sure you want to change the base?
Conversation
@scotts, @NicolasHug : here is a next PR where I attempt to define Pay attention on the need to have I also see that you are adding audio support. I did not move audio |
@dvrogozh, I'm going to be on vacation next week, so I won't be able to provide a full review until after I get back. Some initial comments:
|
Thanks for the PR @dvrogozh . I agree with both of you to keep audio where it currently is for now. |
I added the commit in this PR which moves functions. Overall there are currently 3 commits (you might wish to review commit by commit or the entire diff - your choice):
|
Rebased on top of latest main, resolved minor conflict (in cmakelists.txt). @scotts : please, help to review once you will have some spare time. |
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.
@dvrogozh, this is great! My one request: I think it's a little better for us to pass the timeBase
to convertAVFrameToFrameOutput()
rather than to the constructors for the devices. We don't actually need the timeBase
until we request to convert a frame. I think this makes the device construction more clear. It will have to be a [[maybe_unused]]
parameter for non-CPU devices, but they also weren't using the class member either.
Thanks for working on this!
Fixes: pytorch#619 * Commit defines `CpuDeviceInterface` and moves video `*OnCPU` methods from `SingleStreamDecoder` to it. * Audio `*OnCPU` methods left in `SingleStreamDecoder` * Constructor API of `DeviceInterface` was changed to allow passing `AVRational timeBase` required to initialize ffmpeg filter graph Signed-off-by: Dmitry Rogozhkin <dmitry.v.rogozhkin@intel.com>
Signed-off-by: Dmitry Rogozhkin <dmitry.v.rogozhkin@intel.com>
Signed-off-by: Dmitry Rogozhkin <dmitry.v.rogozhkin@intel.com>
Signed-off-by: Dmitry Rogozhkin <dmitry.v.rogozhkin@intel.com>
Done (last commit in PR, previous not changed). |
That seems to be some CI issue. Was the runner recently changed/updated? |
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.
@dvrogozh, those are some unrelated CI issues that we haven't resolved. This looks great, thanks for working on this and making the changes! I'm approving now, and then I'll merge early next week.
@scotts has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Fixes: #619
CpuDeviceInterface
and moves video*OnCPU
methods fromSingleStreamDecoder
to it.*OnCPU
methods left inSingleStreamDecoder
convertAVFrameToFrameOutput
API ofDeviceInterface
was changed to allow passingAVRational timeBase
required to initialize ffmpeg filter graphCC: @scotts, @NicolasHug