in libheif/api/libheif/heif.cc [213:274]
heif_brand heif_fourcc_to_brand_enum(const char* fourcc)
{
if (fourcc == nullptr || !fourcc[0] || !fourcc[1] || !fourcc[2] || !fourcc[3]) {
return heif_unknown_brand;
}
char brand[5];
brand[0] = fourcc[0];
brand[1] = fourcc[1];
brand[2] = fourcc[2];
brand[3] = fourcc[3];
brand[4] = 0;
if (strcmp(brand, "heic") == 0) {
return heif_heic;
}
else if (strcmp(brand, "heix") == 0) {
return heif_heix;
}
else if (strcmp(brand, "hevc") == 0) {
return heif_hevc;
}
else if (strcmp(brand, "hevx") == 0) {
return heif_hevx;
}
else if (strcmp(brand, "heim") == 0) {
return heif_heim;
}
else if (strcmp(brand, "heis") == 0) {
return heif_heis;
}
else if (strcmp(brand, "hevm") == 0) {
return heif_hevm;
}
else if (strcmp(brand, "hevs") == 0) {
return heif_hevs;
}
else if (strcmp(brand, "mif1") == 0) {
return heif_mif1;
}
else if (strcmp(brand, "msf1") == 0) {
return heif_msf1;
}
else if (strcmp(brand, "avif") == 0) {
return heif_avif;
}
else if (strcmp(brand, "avis") == 0) {
return heif_avis;
}
else if (strcmp(brand, "vvic") == 0) {
return heif_vvic;
}
else if (strcmp(brand, "j2ki") == 0) {
return heif_j2ki;
}
else if (strcmp(brand, "j2is") == 0) {
return heif_j2is;
}
else {
return heif_unknown_brand;
}
}