shaka-packager/packager/media/formats/mp4
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
..
box.cc Fix x64 build on Windows. 2017-01-05 14:19:35 -08:00
box.h Fix x64 build on Windows. 2017-01-05 14:19:35 -08:00
box_buffer.h Rename top level namespace to shaka 2016-05-24 21:55:55 +00:00
box_definitions.cc Workaround Edge problem with non-zero clear lead 2017-07-06 22:48:09 +00:00
box_definitions.h Fix x64 build on Windows. 2017-01-05 14:19:35 -08:00
box_definitions_comparison.h VPCodecConfiguration box should inherit from FullBox instead of Box 2016-05-25 23:59:16 +00:00
box_definitions_unittest.cc Fix x64 build on Windows. 2017-01-05 14:19:35 -08:00
box_reader.cc Fix crash when seeing unsupported es descriptor data 2016-11-29 23:27:22 +00:00
box_reader.h Fix crash when seeing unsupported es descriptor data 2016-11-29 23:27:22 +00:00
box_reader_unittest.cc Fix x64 build on Windows. 2017-01-05 14:19:35 -08:00
chunk_info_iterator.cc Rename top level namespace to shaka 2016-05-24 21:55:55 +00:00
chunk_info_iterator.h Rename top level namespace to shaka 2016-05-24 21:55:55 +00:00
chunk_info_iterator_unittest.cc Replace scoped_ptr with std::unique_ptr 2016-08-18 17:12:36 -07:00
composition_offset_iterator.cc Rename top level namespace to shaka 2016-05-24 21:55:55 +00:00
composition_offset_iterator.h Rename top level namespace to shaka 2016-05-24 21:55:55 +00:00
composition_offset_iterator_unittest.cc Replace scoped_ptr with std::unique_ptr 2016-08-18 17:12:36 -07:00
decoding_time_iterator.cc Rename top level namespace to shaka 2016-05-24 21:55:55 +00:00
decoding_time_iterator.h Rename top level namespace to shaka 2016-05-24 21:55:55 +00:00
decoding_time_iterator_unittest.cc Replace scoped_ptr with std::unique_ptr 2016-08-18 17:12:36 -07:00
fragmenter.cc Made StreamData Have Const Pointers 2017-09-19 21:06:29 +00:00
fragmenter.h Made StreamData Have Const Pointers 2017-09-19 21:06:29 +00:00
mp4.gyp Move packager/media/file to packager/file 2017-07-17 12:08:28 -07:00
mp4_media_parser.cc Update MediaSample to avoid redundent copying 2017-09-28 14:01:30 -07:00
mp4_media_parser.h Replace scoped_refptr with std::shared_ptr 2017-01-26 02:20:47 +00:00
mp4_media_parser_unittest.cc Refactor KeySource::FetchKeys to use EME init data types 2017-04-20 20:21:29 +00:00
mp4_muxer.cc Made StreamData Have Const Pointers 2017-09-19 21:06:29 +00:00
mp4_muxer.h Made StreamData Have Const Pointers 2017-09-19 21:06:29 +00:00
multi_segment_segmenter.cc Consolidate Mp4OutputParams into MuxerOptions 2017-08-18 11:57:34 -07:00
multi_segment_segmenter.h Change MuxerListener::OnMediaEnd to take ranges 2017-07-11 15:59:16 -07:00
segmenter.cc Made StreamData Have Const Pointers 2017-09-19 21:06:29 +00:00
segmenter.h Made StreamData Have Const Pointers 2017-09-19 21:06:29 +00:00
single_segment_segmenter.cc Report an error when disk is full 2017-09-15 22:22:12 +00:00
single_segment_segmenter.h Move packager/media/file to packager/file 2017-07-17 12:08:28 -07:00
sync_sample_iterator.cc Rename top level namespace to shaka 2016-05-24 21:55:55 +00:00
sync_sample_iterator.h Rename top level namespace to shaka 2016-05-24 21:55:55 +00:00
sync_sample_iterator_unittest.cc Rename top level namespace to shaka 2016-05-24 21:55:55 +00:00
track_run_iterator.cc Fix x64 build on Windows. 2017-01-05 14:19:35 -08:00
track_run_iterator.h Replace scoped_ptr with std::unique_ptr 2016-08-18 17:12:36 -07:00
track_run_iterator_unittest.cc Fix x64 build on Windows. 2017-01-05 14:19:35 -08:00