We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent39461cb commitf400a6dCopy full SHA for f400a6d
src/torchcodec/_core/CpuDeviceInterface.cpp
@@ -117,7 +117,6 @@ std::unique_ptr<FiltersContext> CpuDeviceInterface::initializeFiltersContext(
117
// `dimension_order` parameter. It's up to callers to re-shape it if needed.
118
voidCpuDeviceInterface::convertAVFrameToFrameOutput(
119
const VideoStreamOptions& videoStreamOptions,
120
- [[maybe_unused]]const AVRational& timeBase,
121
UniqueAVFrame& avFrame,
122
FrameOutput& frameOutput,
123
std::optional<torch::Tensor> preAllocatedOutputTensor) {
src/torchcodec/_core/CpuDeviceInterface.h
@@ -33,7 +33,6 @@ class CpuDeviceInterface : public DeviceInterface {
33
34
voidconvertAVFrameToFrameOutput(
35
36
-const AVRational& timeBase,
37
38
39
std::optional<torch::Tensor> preAllocatedOutputTensor =
src/torchcodec/_core/CudaDeviceInterface.cpp
@@ -263,7 +263,6 @@ std::unique_ptr<FiltersContext> CudaDeviceInterface::initializeFiltersContext(
263
264
voidCudaDeviceInterface::convertAVFrameToFrameOutput(
265
266
267
268
269
@@ -281,11 +280,7 @@ void CudaDeviceInterface::convertAVFrameToFrameOutput(
281
280
282
FrameOutput cpuFrameOutput;
283
cpuInterface->convertAVFrameToFrameOutput(
284
- videoStreamOptions,
285
- timeBase,
286
- avFrame,
287
- cpuFrameOutput,
288
- preAllocatedOutputTensor);
+ videoStreamOptions, avFrame, cpuFrameOutput, preAllocatedOutputTensor);
289
290
frameOutput.data = cpuFrameOutput.data.to(device_);
291
return;
src/torchcodec/_core/CudaDeviceInterface.h
@@ -28,7 +28,6 @@ class CudaDeviceInterface : public DeviceInterface {
28
29
30
31
32
src/torchcodec/_core/DeviceInterface.h
@@ -56,7 +56,6 @@ class DeviceInterface {
56
57
virtualvoidconvertAVFrameToFrameOutput(
58
59
60
61
62
std::optional<torch::Tensor> preAllocatedOutputTensor = std::nullopt) = 0;
src/torchcodec/_core/SingleStreamDecoder.cpp
@@ -1284,7 +1284,6 @@ FrameOutput SingleStreamDecoder::convertAVFrameToFrameOutput(
1284
}
1285
deviceInterface_->convertAVFrameToFrameOutput(
1286
streamInfo.videoStreamOptions,
1287
- streamInfo.timeBase,
1288
avFrame,
1289
frameOutput,
1290
preAllocatedOutputTensor);