shaka-packager/packager
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
..
app Made Trick Play A 1:1 Handler 2017-09-26 08:25:04 -07:00
buildtools/third_party Update DEPS to fix mac build failure 2016-08-19 13:49:41 -07:00
file Report an error when disk is full 2017-09-15 22:22:12 +00:00
hls [HLS] Fix segment URL isn't respecting folder locations 2017-09-18 19:11:42 +00:00
media Update MediaSample to avoid redundent copying 2017-09-28 14:01:30 -07:00
mpd [HLS] Fix segment URL isn't respecting folder locations 2017-09-18 19:11:42 +00:00
testing Enable C++11 in gtest 2017-07-17 20:14:23 +00:00
third_party Include /etc/ssl/ca-bundle.pem in curl ca bundle 2017-08-04 12:28:02 -07:00
tools Add check formatting script 2017-09-27 21:52:34 +00:00
version Support generation of libpackager.so (shared_library) 2017-06-13 20:42:32 +00:00
common.gypi Support generation of libpackager.so (shared_library) 2017-06-13 20:42:32 +00:00
packager.cc Made Trick Play A 1:1 Handler 2017-09-26 08:25:04 -07:00
packager.gyp Made Trick Play A 1:1 Handler 2017-09-26 08:25:04 -07:00
packager.h Add support for callback file 2017-09-07 19:26:26 +00:00
packager_test.cc Add support for callback file 2017-09-07 19:26:26 +00:00
protoc.gypi Support generation of libpackager.so (shared_library) 2017-06-13 20:42:32 +00:00
status.cc Move status.h under packager/ 2017-06-30 11:35:18 -07:00
status.h Move status.h under packager/ 2017-06-30 11:35:18 -07:00
status_test_util.h Move status.h under packager/ 2017-06-30 11:35:18 -07:00
status_unittest.cc Move status.h under packager/ 2017-06-30 11:35:18 -07:00