openEventsPlatformApp/plugins/cordova-plugin-camera/src/ios/CDVJpegHeaderWriter.h
plugins/cordova-plugin-camera/src/ios/CDVJpegHeaderWriter.hRaw
1/*
2 Licensed to the Apache Software Foundation (ASF) under one
3 or more contributor license agreements. See the NOTICE file
4 distributed with this work for additional information
5 regarding copyright ownership. The ASF licenses this file
6 to you under the Apache License, Version 2.0 (the
7 "License"); you may not use this file except in compliance
8 with the License. You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12 Unless required by applicable law or agreed to in writing,
13 software distributed under the License is distributed on an
14 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 KIND, either express or implied. See the License for the
16 specific language governing permissions and limitations
17 under the License.
18 */
19
20#import <Foundation/Foundation.h>
21
22@interface CDVJpegHeaderWriter : NSObject {
23 NSDictionary * SubIFDTagFormatDict;
24 NSDictionary * IFD0TagFormatDict;
25}
26
27- (NSData*) spliceExifBlockIntoJpeg: (NSData*) jpegdata
28 withExifBlock: (NSString*) exifstr;
29- (NSString*) createExifAPP1 : (NSDictionary*) datadict;
30- (NSString*) formattedHexStringFromDecimalNumber: (NSNumber*) numb
31 withPlaces: (NSNumber*) width;
32- (NSString*) formatNumberWithLeadingZeroes: (NSNumber*) numb
33 withPlaces: (NSNumber*) places;
34- (NSString*) decimalToUnsignedRational: (NSNumber*) numb
35 withResultNumerator: (NSNumber**) numerator
36 withResultDenominator: (NSNumber**) denominator;
37- (void) continuedFraction: (double) val
38 withFractionList: (NSMutableArray*) fractionlist
39 withHorizon: (int) horizon;
40//- (void) expandContinuedFraction: (NSArray*) fractionlist;
41- (void) splitDouble: (double) val
42 withIntComponent: (int*) rightside
43 withFloatRemainder: (double*) leftside;
44- (NSString*) formatRationalWithNumerator: (NSNumber*) numerator
45 withDenominator: (NSNumber*) denominator
46 asSigned: (Boolean) signedFlag;
47- (NSString*) hexStringFromData : (NSData*) data;
48- (NSNumber*) numericFromHexString : (NSString *) hexstring;
49
50/*
51- (void) readExifMetaData : (NSData*) imgdata;
52- (void) spliceImageData : (NSData*) imgdata withExifData: (NSDictionary*) exifdata;
53- (void) locateExifMetaData : (NSData*) imgdata;
54- (NSString*) createExifAPP1 : (NSDictionary*) datadict;
55- (void) createExifDataString : (NSDictionary*) datadict;
56- (NSString*) createDataElement : (NSString*) element
57 withElementData: (NSString*) data
58 withExternalDataBlock: (NSDictionary*) memblock;
59- (NSString*) hexStringFromData : (NSData*) data;
60- (NSNumber*) numericFromHexString : (NSString *) hexstring;
61*/
62@end