Add all 4 standard HEIC brand file signature, ftypheic & ftypheix is for single image, ftyphevc & ftyphevx is for sequence image
This commit is contained in:
parent
28d21d28b9
commit
a71b7b63c4
|
@ -51,9 +51,12 @@
|
||||||
}
|
}
|
||||||
case 0x00: {
|
case 0x00: {
|
||||||
if (data.length >= 12) {
|
if (data.length >= 12) {
|
||||||
//....ftypheic
|
//....ftypheic ....ftypheix ....ftyphevc ....ftyphevx
|
||||||
NSString *testString = [[NSString alloc] initWithData:[data subdataWithRange:NSMakeRange(4, 8)] encoding:NSASCIIStringEncoding];
|
NSString *testString = [[NSString alloc] initWithData:[data subdataWithRange:NSMakeRange(4, 8)] encoding:NSASCIIStringEncoding];
|
||||||
if ([testString isEqualToString:@"ftypheic"]) {
|
if ([testString isEqualToString:@"ftypheic"]
|
||||||
|
|| [testString isEqualToString:@"ftypheix"]
|
||||||
|
|| [testString isEqualToString:@"ftyphevc"]
|
||||||
|
|| [testString isEqualToString:@"ftyphevx"]) {
|
||||||
return SDImageFormatHEIC;
|
return SDImageFormatHEIC;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue