diff options
Diffstat (limited to 'Build/source/texk/web2c/xetexdir/image/jpegimage.c')
-rw-r--r-- | Build/source/texk/web2c/xetexdir/image/jpegimage.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/Build/source/texk/web2c/xetexdir/image/jpegimage.c b/Build/source/texk/web2c/xetexdir/image/jpegimage.c index 2bff54548a4..feccb1aa4b8 100644 --- a/Build/source/texk/web2c/xetexdir/image/jpegimage.c +++ b/Build/source/texk/web2c/xetexdir/image/jpegimage.c @@ -113,38 +113,6 @@ check_for_jpeg (FILE *fp) } static void -jpeg_get_density (struct JPEG_info *j_info, - double *xdensity, double *ydensity) -{ - *xdensity = *ydensity = 1.0; - - if (j_info->flags & HAVE_APPn_JFIF) { - struct JPEG_APPn_JFIF *app_data; - int i; - for (i = 0; i < j_info->num_appn; i++) { - if (j_info->appn[i].marker == JM_APP0 && - j_info->appn[i].app_sig == JS_APPn_JFIF) - break; - } - if (i < j_info->num_appn) { - app_data = (struct JPEG_APPn_JFIF *)j_info->appn[i].app_data; - switch (app_data->units) { - case 1: /* pixels per inch */ - *xdensity = 72.0 / app_data->Xdensity; - *ydensity = 72.0 / app_data->Ydensity; - break; - case 2: /* pixels per centimeter */ - *xdensity = 72.0 / 2.54 / app_data->Xdensity; - *ydensity = 72.0 / 2.54 / app_data->Ydensity; - break; - default: - break; - } - } - } -} - -static void JPEG_info_init (struct JPEG_info *j_info) { j_info->width = 0; |