File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/torchcodec/decoders/_core Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,9 @@ class VideoDecoder {
2929
3030 enum class SeekMode { exact, approximate };
3131
32+ explicit VideoDecoder (const std::string& videoFilePath, SeekMode seekMode);
33+ explicit VideoDecoder (const void * buffer, size_t length, SeekMode seekMode);
34+
3235 // Creates a VideoDecoder from the video at videoFilePath.
3336 static std::unique_ptr<VideoDecoder> createFromFilePath (
3437 const std::string& videoFilePath,
@@ -278,8 +281,6 @@ class VideoDecoder {
278281 void resetDecodeStats ();
279282
280283 private:
281- explicit VideoDecoder (const std::string& videoFilePath, SeekMode seekMode);
282- explicit VideoDecoder (const void * buffer, size_t length, SeekMode seekMode);
283284 torch::Tensor maybePermuteHWC2CHW (int streamIndex, torch::Tensor& hwcTensor);
284285
285286 struct FrameInfo {
You can’t perform that action at this time.
0 commit comments