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

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

Issue 2474993002: Pass selected cricket::VideoCodec down to internal H264 encoder (Closed)
Patch Set: Rebase Created 4 years, 1 month 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/include/h264.h
diff --git a/webrtc/modules/video_coding/codecs/h264/include/h264.h b/webrtc/modules/video_coding/codecs/h264/include/h264.h
index 467845de8fa5875b1c88d68c4562027830be797d..57074d504c7f255d91a122eec121edbcb816c3d1 100644
--- a/webrtc/modules/video_coding/codecs/h264/include/h264.h
+++ b/webrtc/modules/video_coding/codecs/h264/include/h264.h
@@ -12,17 +12,9 @@
#ifndef WEBRTC_MODULES_VIDEO_CODING_CODECS_H264_INCLUDE_H264_H_
#define WEBRTC_MODULES_VIDEO_CODING_CODECS_H264_INCLUDE_H264_H_
-#if defined(WEBRTC_IOS) || defined(WEBRTC_MAC)
-
-#include <Availability.h>
-#if defined(WEBRTC_IOS) || \
- defined(__MAC_10_8) && __MAC_OS_X_VERSION_MAX_ALLOWED >= __MAC_10_8
-#define WEBRTC_VIDEO_TOOLBOX_SUPPORTED 1
-#endif
-
-#endif // defined(WEBRTC_IOS) || defined(WEBRTC_MAC)
-
-#include "webrtc/modules/video_coding/include/video_codec_interface.h"
+#include "webrtc/media/base/codec.h"
+#include "webrtc/video_encoder.h"
+#include "webrtc/video_decoder.h"
namespace webrtc {
@@ -34,7 +26,7 @@ void DisableRtcUseH264();
class H264Encoder : public VideoEncoder {
public:
- static H264Encoder* Create();
+ static H264Encoder* Create(const cricket::VideoCodec& codec);
// If H.264 is supported (any implementation).
static bool IsSupported();

Powered by Google App Engine
This is Rietveld 408576698