MCPcopy Create free account
hub / github.com/Tencent/libpag / release

Method release

src/codec/utils/EncodeStream.cpp:32–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32std::unique_ptr<ByteData> EncodeStream::release() {
33 auto data = ByteData::MakeAdopted(bytes, _length);
34 capacity = 0;
35 _position = 0;
36 _length = 0;
37 _bitPosition = 0;
38 bytes = nullptr;
39 dataView.reset();
40 return data;
41}
42
43void EncodeStream::setPosition(uint32_t value) {
44 _position = value;

Callers 12

EncodeMethod · 0.45
ReadTagBlockFunction · 0.45
ConcatMP4Function · 0.45
MakeMP4DataFunction · 0.45
WriteMP4HeaderMethod · 0.45
ReadVideoSequenceFunction · 0.45
ReadMp4HeaderFunction · 0.45
ReadImageBytesFunction · 0.45
ReadImageBytesV2Function · 0.45
ReadBitmapSequenceFunction · 0.45
ReadAudioBytesFunction · 0.45
ReadImageBytesV3Function · 0.45

Calls 1

resetMethod · 0.45

Tested by

no test coverage detected