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

Unified Diff: webrtc/modules/video_coding/codecs/test/videoprocessor_integrationtest.h

Issue 2987413002: ObjC: Implement HW codecs in ObjC instead of C++ (Closed)
Patch Set: Move RTCH264PacketizationMode to RTCVideoCodec.h Created 3 years, 4 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
« no previous file with comments | « webrtc/modules/video_coding/codecs/test/objc_codec_h264_test.mm ('k') | webrtc/sdk/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/video_coding/codecs/test/videoprocessor_integrationtest.h
diff --git a/webrtc/modules/video_coding/codecs/test/videoprocessor_integrationtest.h b/webrtc/modules/video_coding/codecs/test/videoprocessor_integrationtest.h
index b90a85bba6af3d18d8901de992fe10421e759d48..18244691feb676904339937783accd3edc9cc0ea 100644
--- a/webrtc/modules/video_coding/codecs/test/videoprocessor_integrationtest.h
+++ b/webrtc/modules/video_coding/codecs/test/videoprocessor_integrationtest.h
@@ -23,8 +23,7 @@
#include "webrtc/sdk/android/src/jni/androidmediadecoder_jni.h"
#include "webrtc/sdk/android/src/jni/androidmediaencoder_jni.h"
#elif defined(WEBRTC_IOS)
-#include "webrtc/sdk/objc/Framework/Classes/VideoToolbox/decoder.h"
-#include "webrtc/sdk/objc/Framework/Classes/VideoToolbox/encoder.h"
+#include "webrtc/modules/video_coding/codecs/test/objc_codec_h264_test.h"
#endif
#include "webrtc/media/engine/webrtcvideodecoderfactory.h"
@@ -178,9 +177,13 @@ class VideoProcessorIntegrationTest : public testing::Test {
#elif defined(WEBRTC_IOS)
ASSERT_EQ(kVideoCodecH264, config_.codec_settings->codecType)
<< "iOS HW codecs only support H264.";
- encoder_.reset(new H264VideoToolboxEncoder(
- cricket::VideoCodec(cricket::kH264CodecName)));
- decoder_.reset(new H264VideoToolboxDecoder());
+ std::unique_ptr<cricket::WebRtcVideoEncoderFactory> encoder_factory =
+ CreateObjCEncoderFactory();
+ std::unique_ptr<cricket::WebRtcVideoDecoderFactory> decoder_factory =
+ CreateObjCDecoderFactory();
+ cricket::VideoCodec codecInfo = encoder_factory->supported_codecs().at(0);
+ encoder_.reset(encoder_factory->CreateVideoEncoder(codecInfo));
+ decoder_.reset(decoder_factory->CreateVideoDecoder(kVideoCodecH264));
#else
RTC_NOTREACHED() << "Only support HW codecs on Android and iOS.";
#endif
« no previous file with comments | « webrtc/modules/video_coding/codecs/test/objc_codec_h264_test.mm ('k') | webrtc/sdk/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698