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

Unified Diff: talk/app/webrtc/objc/h264decoderfactory.cc

Issue 1187573004: iOS HW H264 support. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Unit tests Created 5 years, 6 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: talk/app/webrtc/objc/h264decoderfactory.cc
diff --git a/talk/examples/objc/AppRTCDemo/ios/ARDMainView.h b/talk/app/webrtc/objc/h264decoderfactory.cc
similarity index 77%
copy from talk/examples/objc/AppRTCDemo/ios/ARDMainView.h
copy to talk/app/webrtc/objc/h264decoderfactory.cc
index 9d9f5ebcf011500c71bf09ba0405b465ccccc583..45987612b12ed244b6d6921f09da16d362c588d9 100644
--- a/talk/examples/objc/AppRTCDemo/ios/ARDMainView.h
+++ b/talk/app/webrtc/objc/h264decoderfactory.cc
@@ -25,20 +25,21 @@
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#import <UIKit/UIKit.h>
+#include "talk/app/webrtc/objc/h264decoderfactory.h"
-@class ARDMainView;
+#include "webrtc/modules/video_coding/codecs/h264/include/h264.h"
-@protocol ARDMainViewDelegate <NSObject>
+namespace webrtc {
-- (void)mainView:(ARDMainView *)mainView didInputRoom:(NSString *)room;
+VideoDecoder* H264DecoderFactory::CreateVideoDecoder(VideoCodecType type) {
+ if (type == kVideoCodecH264) {
+ return H264Decoder::Create();
+ }
+ return nullptr;
+}
-@end
+void H264DecoderFactory::DestroyVideoDecoder(VideoDecoder* decoder) {
+ delete decoder;
+}
-// The main view of AppRTCDemo. It contains an input field for entering a room
-// name on apprtc to connect to.
-@interface ARDMainView : UIView
-
-@property(nonatomic, weak) id<ARDMainViewDelegate> delegate;
-
-@end
+} // namespace webrtc

Powered by Google App Engine
This is Rietveld 408576698