MCPcopy Create free account
hub / github.com/cisco/openh264 / read

Method read

test/api/decode_encode_test.cpp:73–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71 }
72
73 virtual int read (void* ptr, size_t len) {
74 while (buf_.Length() < len) {
75 bool hasNext = DecodeNextFrame (this);
76 if (HasFatalFailure()) {
77 return -1;
78 }
79 if (!hasNext) {
80 if (buf_.Length() == 0) {
81 return -1;
82 }
83 break;
84 }
85 }
86 return (int) buf_.PopFront (static_cast<uint8_t*> (ptr), len);
87 }
88
89 protected:
90 SHA1Context ctx_;

Callers 5

DataGenerator.cppFile · 0.45
EncodeStreamMethod · 0.45
ReadFrameFunction · 0.45
ThreadDecodeFileMethod · 0.45
TEST_FFunction · 0.45

Calls 2

LengthMethod · 0.80
PopFrontMethod · 0.80

Tested by

no test coverage detected