Skip to content

Commit b8392f8

Browse files
committed
Put back constructors as public
1 parent 4ee20c6 commit b8392f8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/torchcodec/decoders/_core/VideoDecoder.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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 {

0 commit comments

Comments
 (0)