File tree Expand file tree Collapse file tree 4 files changed +0
-86
lines changed
src/torchcodec/decoders/_core Expand file tree Collapse file tree 4 files changed +0
-86
lines changed Original file line number Diff line number Diff line change @@ -142,20 +142,6 @@ at::Tensor create_from_tensor(
142
142
return wrapDecoderPointerToTensor (std::move (uniqueDecoder));
143
143
}
144
144
145
- at::Tensor create_from_buffer (
146
- const void * buffer,
147
- size_t length,
148
- std::optional<std::string_view> seek_mode) {
149
- VideoDecoder::SeekMode realSeek = VideoDecoder::SeekMode::exact;
150
- if (seek_mode.has_value ()) {
151
- realSeek = seekModeFromString (seek_mode.value ());
152
- }
153
-
154
- std::unique_ptr<VideoDecoder> uniqueDecoder =
155
- std::make_unique<VideoDecoder>(buffer, length, realSeek);
156
- return wrapDecoderPointerToTensor (std::move (uniqueDecoder));
157
- }
158
-
159
145
void add_video_stream (
160
146
at::Tensor& decoder,
161
147
std::optional<int64_t > width,
Original file line number Diff line number Diff line change @@ -28,13 +28,6 @@ at::Tensor create_from_tensor(
28
28
at::Tensor video_tensor,
29
29
std::optional<std::string_view> seek_mode = std::nullopt);
30
30
31
- // This API is C++ only and will not be exposed via custom ops, use
32
- // videodecoder_create_from_bytes in Python
33
- at::Tensor create_from_buffer (
34
- const void * buffer,
35
- size_t length,
36
- std::optional<std::string_view> seek_mode = std::nullopt);
37
-
38
31
// Add a new video stream at `stream_index` using the provided options.
39
32
void add_video_stream (
40
33
at::Tensor& decoder,
Original file line number Diff line number Diff line change @@ -21,28 +21,14 @@ add_executable(
21
21
VideoDecoderTest.cpp
22
22
)
23
23
24
- add_executable (
25
- VideoDecoderOpsTest
26
- VideoDecoderOpsTest.cpp
27
- )
28
-
29
24
target_include_directories (VideoDecoderTest SYSTEM PRIVATE ${TORCH_INCLUDE_DIRS} )
30
25
target_include_directories (VideoDecoderTest PRIVATE ../../ )
31
- target_include_directories (VideoDecoderOpsTest SYSTEM PRIVATE ${TORCH_INCLUDE_DIRS} )
32
- target_include_directories (VideoDecoderOpsTest PRIVATE ../../ )
33
26
34
27
target_link_libraries (
35
28
VideoDecoderTest
36
29
${libtorchcodec_target_name}
37
30
GTest::gtest_main
38
31
)
39
32
40
- target_link_libraries (
41
- VideoDecoderOpsTest
42
- ${libtorchcodec_target_name}
43
- GTest::gtest_main
44
- )
45
-
46
33
include (GoogleTest )
47
34
gtest_discover_tests (VideoDecoderTest )
48
- gtest_discover_tests (VideoDecoderOpsTest )
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments