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

Side by Side Diff: webrtc/modules/video_coding/codecs/test/objc_codec_h264_test.h

Issue 2987413002: ObjC: Implement HW codecs in ObjC instead of C++ (Closed)
Patch Set: Rebase against https://codereview.webrtc.org/2992233002 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright 2017 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2017 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #import <Foundation/Foundation.h> 11 #ifndef WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_OBJC_CODEC_H264_TEST_H_
12 #define WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_OBJC_CODEC_H264_TEST_H_
12 13
13 #import <WebRTC/RTCMacros.h> 14 #include <memory>
14 #import <WebRTC/RTCVideoCodecFactory.h>
15 15
16 /** Class for H264 specific config. */ 16 #include "webrtc/media/engine/webrtcvideodecoderfactory.h"
17 typedef NS_ENUM(NSUInteger, RTCH264PacketizationMode) { 17 #include "webrtc/media/engine/webrtcvideoencoderfactory.h"
18 NonInterleaved = 0, // Mode 1 - STAP-A, FU-A is allowed
19 SingleNalUnit // Mode 0 - only single NALU allowed
20 };
21 18
22 RTC_EXPORT 19 namespace webrtc {
23 @interface RTCCodecSpecificInfoH264 : NSObject<RTCCodecSpecificInfo>
24 20
25 @property(nonatomic, assign) RTCH264PacketizationMode packetizationMode; 21 std::unique_ptr<cricket::WebRtcVideoEncoderFactory> CreateObjCEncoderFactory();
22 std::unique_ptr<cricket::WebRtcVideoDecoderFactory> CreateObjCDecoderFactory();
26 23
27 @end 24 } // namespace webrtc
28 25
29 /** Encoder. */ 26 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_OBJC_CODEC_H264_TEST_H_
30 RTC_EXPORT
31 @interface RTCVideoEncoderH264 : NSObject<RTCVideoEncoder>
32 @end
33
34 /** Decoder. */
35 RTC_EXPORT
36 @interface RTCVideoDecoderH264 : NSObject<RTCVideoDecoder>
37 @end
38
39 /** Encoder factory. */
40 RTC_EXPORT
41 @interface RTCVideoEncoderFactoryH264 : NSObject<RTCVideoEncoderFactory>
42 @end
43
44 /** Decoder factory. */
45 RTC_EXPORT
46 @interface RTCVideoDecoderFactoryH264 : NSObject<RTCVideoDecoderFactory>
47 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698