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
/*** DBSeparator.java ***/ | |
import java.io.BufferedInputStream; | |
import java.io.BufferedOutputStream; | |
import java.io.FileInputStream; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
public class DBSeparator { | |
public static void main(String[] args) { |
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
- (id)personRecordUsingModelObj:(id)modelObj { | |
ABRecordRef aContact = ABPersonCreate(); | |
CFErrorRef anError = NULL; | |
NSString *name = [NSString stringWithFormat:@"%@", [modelObj name]]; | |
ABRecordSetValue(aContact, kABPersonOrganizationProperty, name, &anError); | |
ABMultiValueRef phone = ABMultiValueCreateMutable(kABMultiStringPropertyType); | |
ABMultiValueAddValueAndLabel(phone, [modelObj phone], kABPersonPhoneMainLabel, NULL); |
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
- (void)captureOutput:(AVCaptureOutput *)captureOutput didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer fromConnection:(AVCaptureConnection *)connection { | |
CMFormatDescriptionRef formatDescription = CMSampleBufferGetFormatDescription(sampleBuffer); | |
CMVideoDimensions videoDimensions = CMVideoFormatDescriptionGetDimensions(formatDescription); | |
static VTCompressionSessionRef compressionSession; | |
if (compressionSession == NULL) { | |
VTCompressionSessionCreate |
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
{ | |
CMFormatDescriptionRef formatDescription = CMSampleBufferGetFormatDescription(compressedSample); | |
static VTDecompressionSessionRef decompressionSession; | |
if (decompressionSession == NULL) { | |
VTDecompressionSessionCreate | |
(NULL, | |
formatDescription, |