hphp/runtime/ext/gd/ext_gd.cpp
static void
exif_process_SOFn(unsigned char* Data, int /*marker*/, jpeg_sof_info* result) {
  result->bits_per_sample = Data[2];
  result->height          = php_jpg_get16(Data+3);
  result->width           = php_jpg_get16(Data+5);
  result->num_components  = Data[7];
}
/* Process a SOFn marker.  This is useful for the image dimensions */
Process a SOFn marker.  This is useful for the image dimensions
Process a SOFn marker . This is useful for the image dimensions
static void
exif_process_SOFn(unsigned char* Data, int , jpeg_sof_info* result) {
  result->bits_per_sample = Data[2];
  result->height          = php_jpg_get16(Data+3);
  result->width           = php_jpg_get16(Data+5);
  result->num_components  = Data[7];
}
static void exif_process_SOFn ( unsigned char * Data , int , jpeg_sof_info * result ) { result -> bits_per_sample = Data [ 2 ] ; result -> height = php_jpg_get16 ( Data + 3 ) ; result -> width = php_jpg_get16 ( Data + 5 ) ; result -> num_components = Data [ 7 ] ; }
Process a SOFn marker.
Process a SOFn marker .
/*marker*/