Repo created
This commit is contained in:
parent
81b91f4139
commit
f8c34fa5ee
22732 changed files with 4815320 additions and 2 deletions
|
|
@ -0,0 +1,28 @@
|
|||
#import "TGRTCCVPixelBuffer.h"
|
||||
|
||||
@interface TGRTCCVPixelBuffer () {
|
||||
CMSampleBufferRef _sampleBuffer;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@implementation TGRTCCVPixelBuffer
|
||||
|
||||
- (void)dealloc {
|
||||
if (_sampleBuffer) {
|
||||
CFRelease(_sampleBuffer);
|
||||
}
|
||||
}
|
||||
|
||||
- (void)storeSampleBufferReference:(CMSampleBufferRef _Nonnull)sampleBuffer {
|
||||
if (_sampleBuffer) {
|
||||
CFRelease(_sampleBuffer);
|
||||
_sampleBuffer = nil;
|
||||
}
|
||||
|
||||
if (sampleBuffer) {
|
||||
_sampleBuffer = (CMSampleBufferRef)CFRetain(sampleBuffer);
|
||||
}
|
||||
}
|
||||
|
||||
@end
|
||||
Loading…
Add table
Add a link
Reference in a new issue