This repository has been archived by the owner on Oct 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix some issue to enable HEVC on iOS.
- Add some missing classes. - Define OWT_USE_H265 when rtc_use_h265 is true.
- Loading branch information
Showing
10 changed files
with
125 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
sdk/objc/components/video_codec/RTCCodecSpecificInfoH265+Private.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
* Copyright 2017 The WebRTC project authors. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by a BSD-style license | ||
* that can be found in the LICENSE file in the root of the source | ||
* tree. An additional intellectual property rights grant can be found | ||
* in the file PATENTS. All contributing project authors may | ||
* be found in the AUTHORS file in the root of the source tree. | ||
*/ | ||
/* This file is borrowed from sdk/objc/components/video_codec/RTCCodecSpecificInfoH264+Private.h */ | ||
|
||
#import "RTCCodecSpecificInfoH265.h" | ||
|
||
#include "modules/video_coding/include/video_codec_interface.h" | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
/* Interfaces for converting to/from internal C++ formats. */ | ||
@interface RTCCodecSpecificInfoH265 () | ||
|
||
- (webrtc::CodecSpecificInfo)nativeCodecSpecificInfo; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
28 changes: 28 additions & 0 deletions
28
sdk/objc/components/video_codec/RTCCodecSpecificInfoH265.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* Copyright 2017 The WebRTC project authors. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by a BSD-style license | ||
* that can be found in the LICENSE file in the root of the source | ||
* tree. An additional intellectual property rights grant can be found | ||
* in the file PATENTS. All contributing project authors may | ||
* be found in the AUTHORS file in the root of the source tree. | ||
*/ | ||
/* This file is borrowed from sdk/objc/components/video_codec/RTCCodecSpecificInfoH264.h. */ | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
#import "RTCCodecSpecificInfo.h" | ||
#import "RTCMacros.h" | ||
|
||
/** Class for H264 specific config. */ | ||
typedef NS_ENUM(NSUInteger, RTCH265PacketizationMode) { | ||
RTCH265PacketizationModeNonInterleaved = 0, // Mode 1 - STAP-A, FU-A is allowed | ||
RTCH265PacketizationModeSingleNalUnit // Mode 0 - only single NALU allowed | ||
}; | ||
|
||
RTC_OBJC_EXPORT | ||
@interface RTCCodecSpecificInfoH265 : NSObject <RTCCodecSpecificInfo> | ||
|
||
@property(nonatomic, assign) RTCH265PacketizationMode packetizationMode; | ||
|
||
@end |
28 changes: 28 additions & 0 deletions
28
sdk/objc/components/video_codec/RTCCodecSpecificInfoH265.mm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* Copyright 2017 The WebRTC project authors. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by a BSD-style license | ||
* that can be found in the LICENSE file in the root of the source | ||
* tree. An additional intellectual property rights grant can be found | ||
* in the file PATENTS. All contributing project authors may | ||
* be found in the AUTHORS file in the root of the source tree. | ||
*/ | ||
/* This file is borrowed from sdk/objc/components/video_codec/RTCCodecSpecificInfoH264.mm */ | ||
|
||
#import "RTCCodecSpecificInfoH265+Private.h" | ||
|
||
// H265 specific settings. | ||
@implementation RTCCodecSpecificInfoH265 | ||
|
||
@synthesize packetizationMode = _packetizationMode; | ||
|
||
- (webrtc::CodecSpecificInfo)nativeCodecSpecificInfo { | ||
webrtc::CodecSpecificInfo codecSpecificInfo; | ||
codecSpecificInfo.codecType = webrtc::kVideoCodecH265; | ||
codecSpecificInfo.codecSpecific.H265.packetization_mode = | ||
(webrtc::H265PacketizationMode)_packetizationMode; | ||
|
||
return codecSpecificInfo; | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters