MCPcopy Create free account
hub / github.com/78/tenbox / FindStartCode

Function FindStartCode

src/daemon/ffmpeg_video_encoder.cpp:192–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190}
191
192size_t FindStartCode(const uint8_t* data, size_t size, size_t offset) {
193 for (size_t i = offset; i + 3 <= size; ++i) {
194 if (StartCodeLength(data, size, i) != 0) return i;
195 }
196 return size;
197}
198
199bool AnnexBToLengthPrefixed(std::span<const uint8_t> input, std::vector<uint8_t>* output) {
200 if (!output) return false;

Callers 1

AnnexBToLengthPrefixedFunction · 0.85

Calls 1

StartCodeLengthFunction · 0.85

Tested by

no test coverage detected