File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
src/torchcodec/decoders/_core Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1010
1111namespace facebook ::torchcodec {
1212
13- // TODO: make comment below better
14- // memory buffer that is passed in.
13+ // Enables users to pass in the entire video as bytes. Our read and seek
14+ // functions then traverse the bytes in memory .
1515class AVIOBytesContext : public AVIOContextHolder {
1616 public:
1717 explicit AVIOBytesContext (const void * data, int64_t dataSize);
Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ namespace py = pybind11;
1515
1616namespace facebook ::torchcodec {
1717
18+ // Enables uers to pass in a Python file-like object. We then forward all read
19+ // and seek calls back up to the methods on the Python object.
1820class AVIOFileLikeContext : public AVIOContextHolder {
1921 public:
2022 explicit AVIOFileLikeContext (py::object fileLike);
You can’t perform that action at this time.
0 commit comments