MCPcopy Create free account
hub / github.com/AbyssEngine/AbyssEngineOld / videoStreamRead

Method videoStreamRead

src/Abyss/Streams/VideoStream.cpp:16–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14}
15
16int VideoStream::videoStreamRead(uint8_t *buffer, int size) {
17 if (!_isPlaying)
18 return 0;
19
20 _stream.read(reinterpret_cast<char *>(buffer), size);
21 if (_stream)
22 return static_cast<int>(_stream.gcount());
23
24 return -1;
25}
26
27bool VideoStream::processFrame() {
28 if (_avFormatContext == nullptr || !_isPlaying)

Callers 1

VideoStreamMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected