Home | History | Annotate | Download | only in filter

Lines Matching refs:fh

875     cups_page_header2_t	fh;		/* File page header */
877 memset(&fh, 0, sizeof(fh));
879 strlcpy(fh.MediaClass, "PwgRaster", sizeof(fh.MediaClass));
881 strlcpy(fh.MediaColor, r->header.MediaColor, sizeof(fh.MediaColor));
882 strlcpy(fh.MediaType, r->header.MediaType, sizeof(fh.MediaType));
883 strlcpy(fh.OutputType, r->header.OutputType, sizeof(fh.OutputType));
886 fh.CutMedia = htonl(r->header.CutMedia);
887 fh.Duplex = htonl(r->header.Duplex);
888 fh.HWResolution[0] = htonl(r->header.HWResolution[0]);
889 fh.HWResolution[1] = htonl(r->header.HWResolution[1]);
890 fh.ImagingBoundingBox[0] = htonl(r->header.ImagingBoundingBox[0]);
891 fh.ImagingBoundingBox[1] = htonl(r->header.ImagingBoundingBox[1]);
892 fh.ImagingBoundingBox[2] = htonl(r->header.ImagingBoundingBox[2]);
893 fh.ImagingBoundingBox[3] = htonl(r->header.ImagingBoundingBox[3]);
894 fh.InsertSheet = htonl(r->header.InsertSheet);
895 fh.Jog = htonl(r->header.Jog);
896 fh.LeadingEdge = htonl(r->header.LeadingEdge);
897 fh.ManualFeed = htonl(r->header.ManualFeed);
898 fh.MediaPosition = htonl(r->header.MediaPosition);
899 fh.MediaWeight = htonl(r->header.MediaWeight);
900 fh.NumCopies = htonl(r->header.NumCopies);
901 fh.Orientation = htonl(r->header.Orientation);
902 fh.PageSize[0] = htonl(r->header.PageSize[0]);
903 fh.PageSize[1] = htonl(r->header.PageSize[1]);
904 fh.Tumble = htonl(r->header.Tumble);
905 fh.cupsWidth = htonl(r->header.cupsWidth);
906 fh.cupsHeight = htonl(r->header.cupsHeight);
907 fh.cupsBitsPerColor = htonl(r->header.cupsBitsPerColor);
908 fh.cupsBitsPerPixel = htonl(r->header.cupsBitsPerPixel);
909 fh.cupsBytesPerLine = htonl(r->header.cupsBytesPerLine);
910 fh.cupsColorOrder = htonl(r->header.cupsColorOrder);
911 fh.cupsColorSpace = htonl(r->header.cupsColorSpace);
912 fh.cupsNumColors = htonl(r->header.cupsNumColors);
913 fh.cupsInteger[0] = htonl(r->header.cupsInteger[0]);
915 fh.cupsInteger[1] = htonl(r->header.cupsInteger[1]);
917 fh.cupsInteger[2] = htonl(r->header.cupsInteger[2]);
919 fh.cupsInteger[3] = htonl(r->header.cupsInteger[3]);
921 fh.cupsInteger[4] = htonl(r->header.cupsInteger[4]);
923 fh.cupsInteger[5] = htonl(r->header.cupsInteger[5]);
925 fh.cupsInteger[6] = htonl(r->header.cupsInteger[6]);
927 fh.cupsInteger[7] = htonl(r->header.cupsInteger[7]);
929 fh.cupsInteger[8] = htonl(r->header.cupsInteger[8]);
931 fh.cupsInteger[14] = htonl(r->header.cupsInteger[14]);
933 fh.cupsInteger[15] = htonl(r->header.cupsInteger[15]);
936 void *dst = fh.cupsReal; /* Bypass bogus compiler warning */
938 memcpy(dst, src, sizeof(fh.cupsReal) + sizeof(fh.cupsString));
941 strlcpy(fh.cupsRenderingIntent, r->header.cupsRenderingIntent,
942 sizeof(fh.cupsRenderingIntent));
943 strlcpy(fh.cupsPageSizeName, r->header.cupsPageSizeName,
944 sizeof(fh.cupsPageSizeName));
946 return (cups_raster_io(r, (unsigned char *)&fh, sizeof(fh)) == sizeof(fh));
1056 cups_page_header2_t fh; /* File page header */
1058 memset(&fh, 0, sizeof(fh));
1059 strlcpy(fh.MediaClass, "PwgRaster", sizeof(fh.MediaClass));
1060 strlcpy(fh.MediaColor, r->header.MediaColor, sizeof(fh.MediaColor));
1061 strlcpy(fh.MediaType, r->header.MediaType, sizeof(fh.MediaType));
1062 strlcpy(fh.OutputType, r->header.OutputType, sizeof(fh.OutputType));
1063 strlcpy(fh.cupsRenderingIntent, r->header.cupsRenderingIntent,
1064 sizeof(fh.cupsRenderingIntent));
1065 strlcpy(fh.cupsPageSizeName, r->header.cupsPageSizeName,
1066 sizeof(fh.cupsPageSizeName));
1068 fh.CutMedia = htonl(r->header.CutMedia);
1069 fh.Duplex = htonl(r->header.Duplex);
1070 fh.HWResolution[0] = htonl(r->header.HWResolution[0]);
1071 fh.HWResolution[1] = htonl(r->header.HWResolution[1]);
1072 fh.ImagingBoundingBox[0] = htonl(r->header.ImagingBoundingBox[0]);
1073 fh.ImagingBoundingBox[1] = htonl(r->header.ImagingBoundingBox[1]);
1074 fh.ImagingBoundingBox[2] = htonl(r->header.ImagingBoundingBox[2]);
1075 fh.ImagingBoundingBox[3] = htonl(r->header.ImagingBoundingBox[3]);
1076 fh.InsertSheet = htonl(r->header.InsertSheet);
1077 fh.Jog = htonl(r->header.Jog);
1078 fh.LeadingEdge = htonl(r->header.LeadingEdge);
1079 fh.ManualFeed = htonl(r->header.ManualFeed);
1080 fh.MediaPosition = htonl(r->header.MediaPosition);
1081 fh.MediaWeight = htonl(r->header.MediaWeight);
1082 fh.NumCopies = htonl(r->header.NumCopies);
1083 fh.Orientation = htonl(r->header.Orientation);
1084 fh.PageSize[0] = htonl(r->header.PageSize[0]);
1085 fh.PageSize[1] = htonl(r->header.PageSize[1]);
1086 fh.Tumble = htonl(r->header.Tumble);
1087 fh.cupsWidth = htonl(r->header.cupsWidth);
1088 fh.cupsHeight = htonl(r->header.cupsHeight);
1089 fh.cupsBitsPerColor = htonl(r->header.cupsBitsPerColor);
1090 fh.cupsBitsPerPixel = htonl(r->header.cupsBitsPerPixel);
1091 fh.cupsBytesPerLine = htonl(r->header.cupsBytesPerLine);
1092 fh.cupsColorOrder = htonl(r->header.cupsColorOrder);
1093 fh.cupsColorSpace = htonl(r->header.cupsColorSpace);
1094 fh.cupsNumColors = htonl(r->header.cupsNumColors);
1095 fh.cupsInteger[0] = htonl(r->header.cupsInteger[0]);
1096 fh.cupsInteger[1] = htonl(r->header.cupsInteger[1]);
1097 fh.cupsInteger[2] = htonl(r->header.cupsInteger[2]);
1098 fh.cupsInteger[3] = htonl((unsigned)(r->header.cupsImagingBBox[0] * r->header.HWResolution[0] / 72.0));
1099 fh.cupsInteger[4] = htonl((unsigned)(r->header.cupsImagingBBox[1] * r->header.HWResolution[1] / 72.0));
1100 fh.cupsInteger[5] = htonl((unsigned)(r->header.cupsImagingBBox[2] * r->header.HWResolution[0] / 72.0));
1101 fh.cupsInteger[6] = htonl((unsigned)(r->header.cupsImagingBBox[3] * r->header.HWResolution[1] / 72.0));
1102 fh.cupsInteger[7] = htonl(0xffffff);
1104 fh, sizeof(fh)) == sizeof(fh));