@@ -160,8 +160,8 @@ struct StreamingMediaDecoderFileObj : private FileObj,
160
160
public StreamingMediaDecoderCustomIO {
161
161
StreamingMediaDecoderFileObj (
162
162
py::object fileobj,
163
- const c10 ::optional<std::string>& format,
164
- const c10 ::optional<std::map<std::string, std::string>>& option,
163
+ const std ::optional<std::string>& format,
164
+ const std ::optional<std::map<std::string, std::string>>& option,
165
165
int buffer_size)
166
166
: FileObj{fileobj, buffer_size},
167
167
StreamingMediaDecoderCustomIO (
@@ -177,7 +177,7 @@ struct StreamingMediaEncoderFileObj : private FileObj,
177
177
public StreamingMediaEncoderCustomIO {
178
178
StreamingMediaEncoderFileObj (
179
179
py::object fileobj,
180
- const c10 ::optional<std::string>& format,
180
+ const std ::optional<std::string>& format,
181
181
int buffer_size)
182
182
: FileObj{fileobj, buffer_size},
183
183
StreamingMediaEncoderCustomIO (
@@ -231,8 +231,8 @@ struct StreamingMediaDecoderBytes : private BytesWrapper,
231
231
public StreamingMediaDecoderCustomIO {
232
232
StreamingMediaDecoderBytes (
233
233
std::string_view src,
234
- const c10 ::optional<std::string>& format,
235
- const c10 ::optional<std::map<std::string, std::string>>& option,
234
+ const std ::optional<std::string>& format,
235
+ const std ::optional<std::map<std::string, std::string>>& option,
236
236
int64_t buffer_size)
237
237
: BytesWrapper{src},
238
238
StreamingMediaDecoderCustomIO (
@@ -278,10 +278,10 @@ PYBIND11_MODULE(TORIO_FFMPEG_EXT_NAME, m) {
278
278
.def_readwrite (" frames" , &Chunk::frames)
279
279
.def_readwrite (" pts" , &Chunk::pts);
280
280
py::class_<CodecConfig>(m, " CodecConfig" , py::module_local ())
281
- .def (py::init<int , int , const c10 ::optional<int >&, int , int >());
281
+ .def (py::init<int , int , const std ::optional<int >&, int , int >());
282
282
py::class_<StreamingMediaEncoder>(
283
283
m, " StreamingMediaEncoder" , py::module_local ())
284
- .def (py::init<const std::string&, const c10 ::optional<std::string>&>())
284
+ .def (py::init<const std::string&, const std ::optional<std::string>&>())
285
285
.def (" set_metadata" , &StreamingMediaEncoder::set_metadata)
286
286
.def (" add_audio_stream" , &StreamingMediaEncoder::add_audio_stream)
287
287
.def (" add_video_stream" , &StreamingMediaEncoder::add_video_stream)
@@ -293,7 +293,7 @@ PYBIND11_MODULE(TORIO_FFMPEG_EXT_NAME, m) {
293
293
.def (" close" , &StreamingMediaEncoder::close );
294
294
py::class_<StreamingMediaEncoderFileObj>(
295
295
m, " StreamingMediaEncoderFileObj" , py::module_local ())
296
- .def (py::init<py::object, const c10 ::optional<std::string>&, int64_t >())
296
+ .def (py::init<py::object, const std ::optional<std::string>&, int64_t >())
297
297
.def (" set_metadata" , &StreamingMediaEncoderFileObj::set_metadata)
298
298
.def (" add_audio_stream" , &StreamingMediaEncoderFileObj::add_audio_stream)
299
299
.def (" add_video_stream" , &StreamingMediaEncoderFileObj::add_video_stream)
@@ -366,8 +366,8 @@ PYBIND11_MODULE(TORIO_FFMPEG_EXT_NAME, m) {
366
366
m, " StreamingMediaDecoder" , py::module_local ())
367
367
.def (py::init<
368
368
const std::string&,
369
- const c10 ::optional<std::string>&,
370
- const c10 ::optional<OptionDict>&>())
369
+ const std ::optional<std::string>&,
370
+ const std ::optional<OptionDict>&>())
371
371
.def (" num_src_streams" , &StreamingMediaDecoder::num_src_streams)
372
372
.def (" num_out_streams" , &StreamingMediaDecoder::num_out_streams)
373
373
.def (
@@ -385,7 +385,7 @@ PYBIND11_MODULE(TORIO_FFMPEG_EXT_NAME, m) {
385
385
.def (" remove_stream" , &StreamingMediaDecoder::remove_stream)
386
386
.def (
387
387
" process_packet" ,
388
- py::overload_cast<const c10 ::optional<double >&, const double >(
388
+ py::overload_cast<const std ::optional<double >&, const double >(
389
389
&StreamingMediaDecoder::process_packet))
390
390
.def (" process_all_packets" , &StreamingMediaDecoder::process_all_packets)
391
391
.def (" fill_buffer" , &StreamingMediaDecoder::fill_buffer)
@@ -395,8 +395,8 @@ PYBIND11_MODULE(TORIO_FFMPEG_EXT_NAME, m) {
395
395
m, " StreamingMediaDecoderFileObj" , py::module_local ())
396
396
.def (py::init<
397
397
py::object,
398
- const c10 ::optional<std::string>&,
399
- const c10 ::optional<OptionDict>&,
398
+ const std ::optional<std::string>&,
399
+ const std ::optional<OptionDict>&,
400
400
int64_t >())
401
401
.def (" num_src_streams" , &StreamingMediaDecoderFileObj::num_src_streams)
402
402
.def (" num_out_streams" , &StreamingMediaDecoderFileObj::num_out_streams)
@@ -419,7 +419,7 @@ PYBIND11_MODULE(TORIO_FFMPEG_EXT_NAME, m) {
419
419
.def (" remove_stream" , &StreamingMediaDecoderFileObj::remove_stream)
420
420
.def (
421
421
" process_packet" ,
422
- py::overload_cast<const c10 ::optional<double >&, const double >(
422
+ py::overload_cast<const std ::optional<double >&, const double >(
423
423
&StreamingMediaDecoder::process_packet))
424
424
.def (
425
425
" process_all_packets" ,
@@ -431,8 +431,8 @@ PYBIND11_MODULE(TORIO_FFMPEG_EXT_NAME, m) {
431
431
m, " StreamingMediaDecoderBytes" , py::module_local ())
432
432
.def (py::init<
433
433
std::string_view,
434
- const c10 ::optional<std::string>&,
435
- const c10 ::optional<OptionDict>&,
434
+ const std ::optional<std::string>&,
435
+ const std ::optional<OptionDict>&,
436
436
int64_t >())
437
437
.def (" num_src_streams" , &StreamingMediaDecoderBytes::num_src_streams)
438
438
.def (" num_out_streams" , &StreamingMediaDecoderBytes::num_out_streams)
@@ -455,7 +455,7 @@ PYBIND11_MODULE(TORIO_FFMPEG_EXT_NAME, m) {
455
455
.def (" remove_stream" , &StreamingMediaDecoderBytes::remove_stream)
456
456
.def (
457
457
" process_packet" ,
458
- py::overload_cast<const c10 ::optional<double >&, const double >(
458
+ py::overload_cast<const std ::optional<double >&, const double >(
459
459
&StreamingMediaDecoder::process_packet))
460
460
.def (
461
461
" process_all_packets" ,
0 commit comments