Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(696)

Unified Diff: webrtc/modules/video_coding/codecs/h264/h264_video_toolbox_nalu.h

Issue 1732953003: Fix VideoToolbox backgrounding issues (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Update gyp Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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:

Powered by Google App Engine
This is Rietveld 408576698