shaka-packager/packager/media/codecs
KongQun Yang 05a5a41969 Support generation of libpackager.so (shared_library)
Shared libpackager can be built by setting libpackager_type to
shared_library, e.g.

GYP_DEFINES='libpackager_type=shared_library' gclient runhooks
ninja -C out/Debug

will generate libpackager.so in out/Debug/lib directory.

Here is a few other changes to make shared_library builds and
tests pass:

- Add several test parameters to packager.h, which is needed for
  testing.
- Create a protoc.gypi from build/protoc.gypi but depending on
  protobuf_full_do_not_use instead of protobuf_lite, since we need
  protobuf_full_do_not_use for text parsing and generation of media
  info proto. Somehow shared_library build does not allow mixed use
  of protobuf_full_do_not_use and protobuf_lite.
- Remove the use of LazyInstance in version/version.cc and use static
  variable directly. This is because LazyInstance needs AtExitManager
  which may not be easy to setup when calling GetVersion.
- Allow skipping testPackageWvmInputWithoutStrippingParameterSetNalus
  with flag --shared_library, which is needed as shared_library build
  does not support --strip_parameter_set_nalus flag yet.

Fixes #227

Change-Id: Iff05a50baa28134faa7218664c96114cb9e70329
2017-06-13 20:42:32 +00:00
..
aac_audio_specific_config.cc Fix AAC-HE not correctly signaled in codec string 2017-04-13 23:40:23 +00:00
aac_audio_specific_config.h Fix AAC-HE not correctly signaled in codec string 2017-04-13 23:40:23 +00:00
aac_audio_specific_config_unittest.cc Fix AAC-HE not correctly signaled in codec string 2017-04-13 23:40:23 +00:00
avc_decoder_configuration_record.cc Fix avc3 codec string problem 2017-04-28 19:24:11 +00:00
avc_decoder_configuration_record.h Fix avc3 codec string problem 2017-04-28 19:24:11 +00:00
avc_decoder_configuration_record_unittest.cc Fix avc3 codec string problem 2017-04-28 19:24:11 +00:00
codecs.gyp Allow generating avc3 / hev1 from TS and Wvm files 2017-03-23 13:53:14 -07:00
decoder_configuration_record.cc Rename filters directory to codecs 2016-05-27 16:13:19 -07:00
decoder_configuration_record.h Rename filters directory to codecs 2016-05-27 16:13:19 -07:00
ec3_audio_util.cc Rename filters directory to codecs 2016-05-27 16:13:19 -07:00
ec3_audio_util.h Rename filters directory to codecs 2016-05-27 16:13:19 -07:00
ec3_audio_util_unittest.cc Rename filters directory to codecs 2016-05-27 16:13:19 -07:00
es_descriptor.cc Windows build working 2016-08-18 08:30:26 -07:00
es_descriptor.h Rename filters directory to codecs 2016-05-27 16:13:19 -07:00
es_descriptor_unittest.cc Rename filters directory to codecs 2016-05-27 16:13:19 -07:00
h26x_bit_reader.cc Rename filters directory to codecs 2016-05-27 16:13:19 -07:00
h26x_bit_reader.h Rename filters directory to codecs 2016-05-27 16:13:19 -07:00
h26x_bit_reader_unittest.cc Rename filters directory to codecs 2016-05-27 16:13:19 -07:00
h26x_byte_to_unit_stream_converter.cc Support generation of libpackager.so (shared_library) 2017-06-13 20:42:32 +00:00
h26x_byte_to_unit_stream_converter.h Allow generating avc3 / hev1 from TS and Wvm files 2017-03-23 13:53:14 -07:00
h264_byte_to_unit_stream_converter.cc Allow generating avc3 / hev1 from TS and Wvm files 2017-03-23 13:53:14 -07:00
h264_byte_to_unit_stream_converter.h Allow generating avc3 / hev1 from TS and Wvm files 2017-03-23 13:53:14 -07:00
h264_byte_to_unit_stream_converter_unittest.cc Allow generating avc3 / hev1 from TS and Wvm files 2017-03-23 13:53:14 -07:00
h264_parser.cc Change {luma,chrome}_weight_flag to arrays 2017-03-24 21:14:18 +00:00
h264_parser.h Change {luma,chrome}_weight_flag to arrays 2017-03-24 21:14:18 +00:00
h264_parser_unittest.cc Change {luma,chrome}_weight_flag to arrays 2017-03-24 21:14:18 +00:00
h265_byte_to_unit_stream_converter.cc Allow generating avc3 / hev1 from TS and Wvm files 2017-03-23 13:53:14 -07:00
h265_byte_to_unit_stream_converter.h Allow generating avc3 / hev1 from TS and Wvm files 2017-03-23 13:53:14 -07:00
h265_byte_to_unit_stream_converter_unittest.cc Allow generating avc3 / hev1 from TS and Wvm files 2017-03-23 13:53:14 -07:00
h265_parser.cc Change values for slice header attributes 2016-12-15 17:07:17 -08:00
h265_parser.h Fix x64 build on Windows. 2017-01-05 14:19:35 -08:00
h265_parser_unittest.cc Fix x64 build on Windows. 2017-01-05 14:19:35 -08:00
hevc_decoder_configuration_record.cc Allow generating avc3 / hev1 from TS and Wvm files 2017-03-23 13:53:14 -07:00
hevc_decoder_configuration_record.h Allow generating avc3 / hev1 from TS and Wvm files 2017-03-23 13:53:14 -07:00
hevc_decoder_configuration_record_unittest.cc Allow generating avc3 / hev1 from TS and Wvm files 2017-03-23 13:53:14 -07:00
nal_unit_to_byte_stream_converter.cc Fix Windows build break (#217) 2017-03-24 10:21:05 -07:00
nal_unit_to_byte_stream_converter.h Update NalUnitToByteStreamConvert to support escaping encrypted NAL only 2017-03-23 18:21:24 +00:00
nal_unit_to_byte_stream_converter_unittest.cc Update NalUnitToByteStreamConvert to support escaping encrypted NAL only 2017-03-23 18:21:24 +00:00
nalu_reader.cc Keep slice data partition NALs in clear 2017-02-28 18:10:30 -08:00
nalu_reader.h Keep slice data partition NALs in clear 2017-02-28 18:10:30 -08:00
nalu_reader_unittest.cc Rename filters directory to codecs 2016-05-27 16:13:19 -07:00
video_slice_header_parser.cc Fix x64 build on Windows. 2017-01-05 14:19:35 -08:00
video_slice_header_parser.h Rename filters directory to codecs 2016-05-27 16:13:19 -07:00
video_slice_header_parser_unittest.cc Rename filters directory to codecs 2016-05-27 16:13:19 -07:00
vp8_parser.cc Add support for WebM colour element 2017-05-02 20:22:17 +00:00
vp8_parser.h Rename filters directory to codecs 2016-05-27 16:13:19 -07:00
vp8_parser_unittest.cc Support v1 vp9 in iso-bmff 2017-04-27 19:37:14 +00:00
vp9_parser.cc Add support for WebM colour element 2017-05-02 20:22:17 +00:00
vp9_parser.h Rename filters directory to codecs 2016-05-27 16:13:19 -07:00
vp9_parser_unittest.cc Support v1 vp9 in iso-bmff 2017-04-27 19:37:14 +00:00
vp_codec_configuration_record.cc Add support for WebM colour element 2017-05-02 20:22:17 +00:00
vp_codec_configuration_record.h Add support for WebM colour element 2017-05-02 20:22:17 +00:00
vp_codec_configuration_record_unittest.cc Add support for WebM colour element 2017-05-02 20:22:17 +00:00
vpx_parser.h Rename filters directory to codecs 2016-05-27 16:13:19 -07:00
webvtt_util.h Update DEPS to fix mac build failure 2016-08-19 13:49:41 -07:00