Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf400a6d

Browse files
committed
Drop timeBase from convertAVFrameToFrameOutput API
Signed-off-by: Dmitry Rogozhkin <dmitry.v.rogozhkin@intel.com>
1 parent39461cb commitf400a6d

File tree

6 files changed

+1
-11
lines changed

6 files changed

+1
-11
lines changed

‎src/torchcodec/_core/CpuDeviceInterface.cpp‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ std::unique_ptr<FiltersContext> CpuDeviceInterface::initializeFiltersContext(
117117
// `dimension_order` parameter. It's up to callers to re-shape it if needed.
118118
voidCpuDeviceInterface::convertAVFrameToFrameOutput(
119119
const VideoStreamOptions& videoStreamOptions,
120-
[[maybe_unused]]const AVRational& timeBase,
121120
UniqueAVFrame& avFrame,
122121
FrameOutput& frameOutput,
123122
std::optional<torch::Tensor> preAllocatedOutputTensor) {

‎src/torchcodec/_core/CpuDeviceInterface.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ class CpuDeviceInterface : public DeviceInterface {
3333

3434
voidconvertAVFrameToFrameOutput(
3535
const VideoStreamOptions& videoStreamOptions,
36-
const AVRational& timeBase,
3736
UniqueAVFrame& avFrame,
3837
FrameOutput& frameOutput,
3938
std::optional<torch::Tensor> preAllocatedOutputTensor =

‎src/torchcodec/_core/CudaDeviceInterface.cpp‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,6 @@ std::unique_ptr<FiltersContext> CudaDeviceInterface::initializeFiltersContext(
263263

264264
voidCudaDeviceInterface::convertAVFrameToFrameOutput(
265265
const VideoStreamOptions& videoStreamOptions,
266-
[[maybe_unused]]const AVRational& timeBase,
267266
UniqueAVFrame& avFrame,
268267
FrameOutput& frameOutput,
269268
std::optional<torch::Tensor> preAllocatedOutputTensor) {
@@ -281,11 +280,7 @@ void CudaDeviceInterface::convertAVFrameToFrameOutput(
281280

282281
FrameOutput cpuFrameOutput;
283282
cpuInterface->convertAVFrameToFrameOutput(
284-
videoStreamOptions,
285-
timeBase,
286-
avFrame,
287-
cpuFrameOutput,
288-
preAllocatedOutputTensor);
283+
videoStreamOptions, avFrame, cpuFrameOutput, preAllocatedOutputTensor);
289284

290285
frameOutput.data = cpuFrameOutput.data.to(device_);
291286
return;

‎src/torchcodec/_core/CudaDeviceInterface.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ class CudaDeviceInterface : public DeviceInterface {
2828

2929
voidconvertAVFrameToFrameOutput(
3030
const VideoStreamOptions& videoStreamOptions,
31-
const AVRational& timeBase,
3231
UniqueAVFrame& avFrame,
3332
FrameOutput& frameOutput,
3433
std::optional<torch::Tensor> preAllocatedOutputTensor =

‎src/torchcodec/_core/DeviceInterface.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ class DeviceInterface {
5656

5757
virtualvoidconvertAVFrameToFrameOutput(
5858
const VideoStreamOptions& videoStreamOptions,
59-
const AVRational& timeBase,
6059
UniqueAVFrame& avFrame,
6160
FrameOutput& frameOutput,
6261
std::optional<torch::Tensor> preAllocatedOutputTensor = std::nullopt) = 0;

‎src/torchcodec/_core/SingleStreamDecoder.cpp‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1284,7 +1284,6 @@ FrameOutput SingleStreamDecoder::convertAVFrameToFrameOutput(
12841284
}
12851285
deviceInterface_->convertAVFrameToFrameOutput(
12861286
streamInfo.videoStreamOptions,
1287-
streamInfo.timeBase,
12881287
avFrame,
12891288
frameOutput,
12901289
preAllocatedOutputTensor);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp