Skip to content

Commit c1555c2

Browse files
committed
Comments
1 parent 0ff2e69 commit c1555c2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/torchcodec/decoders/_core/AVIOBytesContext.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010

1111
namespace 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.
1515
class AVIOBytesContext : public AVIOContextHolder {
1616
public:
1717
explicit AVIOBytesContext(const void* data, int64_t dataSize);

src/torchcodec/decoders/_core/AVIOFileLikeContext.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ namespace py = pybind11;
1515

1616
namespace 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.
1820
class AVIOFileLikeContext : public AVIOContextHolder {
1921
public:
2022
explicit AVIOFileLikeContext(py::object fileLike);

0 commit comments

Comments
 (0)