Skip to content

Commit 1ee851b

Browse files
committed
getInterfaceDetails -> getDeviceInterfaceDetails
1 parent 329e130 commit 1ee851b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/torchcodec/_core/SingleStreamDecoder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1702,7 +1702,7 @@ double SingleStreamDecoder::getPtsSecondsForFrame(int64_t frameIndex) {
17021702
streamInfo.allFrames[frameIndex].pts, streamInfo.timeBase);
17031703
}
17041704

1705-
std::string SingleStreamDecoder::getInterfaceDetails() const {
1705+
std::string SingleStreamDecoder::getDeviceInterfaceDetails() const {
17061706
TORCH_CHECK(deviceInterface_ != nullptr, "Device interface doesn't exist.");
17071707
return deviceInterface_->getDetails();
17081708
}

src/torchcodec/_core/SingleStreamDecoder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ class SingleStreamDecoder {
186186
DecodeStats getDecodeStats() const;
187187
void resetDecodeStats();
188188

189-
std::string getInterfaceDetails() const;
189+
std::string getDeviceInterfaceDetails() const;
190190

191191
private:
192192
// --------------------------------------------------------------------------

src/torchcodec/_core/custom_ops.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,7 @@ std::string _get_json_ffmpeg_library_versions() {
872872

873873
std::string get_backend_details(at::Tensor& decoder) {
874874
auto videoDecoder = unwrapTensorToGetDecoder(decoder);
875-
return videoDecoder->getInterfaceDetails();
875+
return videoDecoder->getDeviceInterfaceDetails();
876876
}
877877

878878
// Scans video packets to get more accurate metadata like frame count, exact

0 commit comments

Comments
 (0)