shaka-packager/packager/media/crypto
KongQun Yang 92e1e39868 Update MediaSample to avoid redundent copying
Use std::shared_ptr<const uint8_t> with a custom deleter to
represent MediaSample::data_ instead of std::vector<uint8_t>.

MediaSample::data_ can be shared by multiple MediaSamples and it is
immutable. A new data instance must be created if the clients want to
modify the underlying data. The new data instance can be transferred
to MediaSample using provided MediaSample::TransferData function.
This avoids unnecessary data copying.

Change-Id: Ib59785a9e19d0abb3283179b12eb6779ee922f79
2017-09-28 14:01:30 -07:00
..
crypto.gyp Implement ChunkingHandler 2017-02-11 02:41:34 +00:00
encryption_handler.cc Update MediaSample to avoid redundent copying 2017-09-28 14:01:30 -07:00
encryption_handler.h Update MediaSample to avoid redundent copying 2017-09-28 14:01:30 -07:00
encryption_handler_unittest.cc Update MediaSample to avoid redundent copying 2017-09-28 14:01:30 -07:00