Index: webrtc/modules/video_coding/codecs/h264/h264_video_toolbox_nalu.h |
diff --git a/webrtc/modules/video_coding/codecs/h264/h264_video_toolbox_nalu.h b/webrtc/modules/video_coding/codecs/h264/h264_video_toolbox_nalu.h |
index 31ef525816cd012fd168db0b6de3da46cdc04930..59535ee8c63176ca752aa7854d950ff9cd6d5775 100644 |
--- a/webrtc/modules/video_coding/codecs/h264/h264_video_toolbox_nalu.h |
+++ b/webrtc/modules/video_coding/codecs/h264/h264_video_toolbox_nalu.h |
@@ -44,6 +44,13 @@ bool H264AnnexBBufferToCMSampleBuffer(const uint8_t* annexb_buffer, |
CMVideoFormatDescriptionRef video_format, |
CMSampleBufferRef* out_sample_buffer); |
+bool H264AnnexBBufferHasVideoFormatDescription(const uint8_t* annexb_buffer, |
+ size_t annexb_buffer_size); |
+ |
+CMVideoFormatDescriptionRef CreateVideoFormatDescription( |
+ const uint8_t* annexb_buffer, |
+ size_t annexb_buffer_size); |
stefan-webrtc
2016/03/07 15:00:02
Add unittests for these methods.
tkchin_webrtc
2016/03/08 04:52:09
Done.
|
+ |
// Helper class for reading NALUs from an RTP Annex B buffer. |
class AnnexBBufferReader final { |
public: |