• Home
  • Raw
  • Download

Lines Matching refs:ofile

291 static ssize_t parse8BIM(Image *ifile, Image *ofile)  in parse8BIM()  argument
424 currentpos = TellBlob(ofile); in parse8BIM()
427 offset=SeekBlob(ofile,savedpos,SEEK_SET); in parse8BIM()
430 (void) WriteBlobMSBLong(ofile,(unsigned int) diff); in parse8BIM()
431 offset=SeekBlob(ofile,currentpos,SEEK_SET); in parse8BIM()
438 (void) WriteBlobByte(ofile,0x00); in parse8BIM()
441 (void) WriteBlobString(ofile,"8BIM"); in parse8BIM()
442 (void) WriteBlobMSBShort(ofile,(unsigned short) recnum); in parse8BIM()
446 (void) WriteBlobByte(ofile,nlen); in parse8BIM()
449 (void) WriteBlobByte(ofile,(unsigned char) name[i]); in parse8BIM()
453 (void) WriteBlobByte(ofile,0x00); in parse8BIM()
458 (void) WriteBlobMSBLong(ofile, (unsigned int) len); in parse8BIM()
464 (void) WriteBlobByte(ofile,(unsigned char) token[next++]); in parse8BIM()
468 (void) WriteBlobByte(ofile,0x00); in parse8BIM()
475 savedpos = TellBlob(ofile); in parse8BIM()
478 (void) WriteBlobMSBLong(ofile,0xFFFFFFFFU); in parse8BIM()
487 (void) WriteBlobByte(ofile,0x1c); in parse8BIM()
488 (void) WriteBlobByte(ofile,(unsigned char) dataset); in parse8BIM()
489 (void) WriteBlobByte(ofile,(unsigned char) (recnum & 0xff)); in parse8BIM()
490 (void) WriteBlobMSBShort(ofile,(unsigned short) len); in parse8BIM()
495 (void) WriteBlobByte(ofile,(unsigned char) token[next++]); in parse8BIM()
523 currentpos = TellBlob(ofile); in parse8BIM()
526 offset=SeekBlob(ofile,savedpos,SEEK_SET); in parse8BIM()
529 (void) WriteBlobMSBLong(ofile,(unsigned int) diff); in parse8BIM()
530 offset=SeekBlob(ofile,currentpos,SEEK_SET); in parse8BIM()
587 static ssize_t parse8BIMW(Image *ifile, Image *ofile) in parse8BIMW() argument
720 currentpos = TellBlob(ofile); in parse8BIMW()
723 offset=SeekBlob(ofile,savedpos,SEEK_SET); in parse8BIMW()
726 (void) WriteBlobMSBLong(ofile,(unsigned int) diff); in parse8BIMW()
727 offset=SeekBlob(ofile,currentpos,SEEK_SET); in parse8BIMW()
734 (void) WriteBlobByte(ofile,0x00); in parse8BIMW()
737 (void) WriteBlobString(ofile,"8BIM"); in parse8BIMW()
738 (void) WriteBlobMSBShort(ofile,(unsigned short) recnum); in parse8BIMW()
742 (void) WriteBlobByte(ofile,(unsigned char) nlen); in parse8BIMW()
745 (void) WriteBlobByte(ofile,(unsigned char) name[i]); in parse8BIMW()
749 (void) WriteBlobByte(ofile,0x00); in parse8BIMW()
754 (void) WriteBlobMSBLong(ofile,(unsigned int) len); in parse8BIMW()
760 (void) WriteBlobByte(ofile,(unsigned char) token[next++]); in parse8BIMW()
764 (void) WriteBlobByte(ofile,0x00); in parse8BIMW()
771 savedpos = TellBlob(ofile); in parse8BIMW()
774 (void) WriteBlobMSBLong(ofile,0xFFFFFFFFU); in parse8BIMW()
783 (void) WriteBlobByte(ofile,0x1c); in parse8BIMW()
784 (void) WriteBlobByte(ofile,dataset); in parse8BIMW()
785 (void) WriteBlobByte(ofile,(unsigned char) (recnum & 0xff)); in parse8BIMW()
786 (void) WriteBlobMSBShort(ofile,(unsigned short) len); in parse8BIMW()
791 (void) WriteBlobByte(ofile,(unsigned char) token[next++]); in parse8BIMW()
819 currentpos = TellBlob(ofile); in parse8BIMW()
822 offset=SeekBlob(ofile,savedpos,SEEK_SET); in parse8BIMW()
825 (void) WriteBlobMSBLong(ofile,(unsigned int) diff); in parse8BIMW()
826 offset=SeekBlob(ofile,currentpos,SEEK_SET); in parse8BIMW()
868 static int jpeg_transfer_1(Image *ifile, Image *ofile) in jpeg_transfer_1() argument
875 (void) WriteBlobByte(ofile,(unsigned char) c); in jpeg_transfer_1()
891 static int jpeg_read_remaining(Image *ifile, Image *ofile) in jpeg_read_remaining() argument
895 while ((c = jpeg_transfer_1(ifile, ofile)) != EOF) in jpeg_read_remaining()
900 static int jpeg_skip_variable(Image *ifile, Image *ofile) in jpeg_skip_variable() argument
905 if ((c1 = jpeg_transfer_1(ifile, ofile)) == EOF) in jpeg_skip_variable()
907 if ((c2 = jpeg_transfer_1(ifile, ofile)) == EOF) in jpeg_skip_variable()
914 if (jpeg_transfer_1(ifile, ofile) == EOF) in jpeg_skip_variable()
920 static int jpeg_skip_variable2(Image *ifile, Image *ofile) in jpeg_skip_variable2() argument
925 (void) ofile; in jpeg_skip_variable2()
939 static int jpeg_nextmarker(Image *ifile, Image *ofile) in jpeg_nextmarker() argument
951 (void) WriteBlobByte(ofile,(unsigned char) c); in jpeg_nextmarker()
995 static int jpeg_embed(Image *ifile, Image *ofile, Image *iptc) in jpeg_embed() argument
1002 if (jpeg_transfer_1(ifile, ofile) != 0xFF) in jpeg_embed()
1004 if (jpeg_transfer_1(ifile, ofile) != M_SOI) in jpeg_embed()
1009 marker=(unsigned int) jpeg_nextmarker(ifile, ofile); in jpeg_embed()
1018 (void) WriteBlobByte(ofile,0xff); in jpeg_embed()
1019 (void) WriteBlobByte(ofile,(unsigned char) marker); in jpeg_embed()
1027 jpeg_skip_variable2(ifile, ofile); in jpeg_embed()
1032 jpeg_skip_variable(ifile, ofile); in jpeg_embed()
1045 (void) WriteBlobByte(ofile,(unsigned char) psheader[inx]); in jpeg_embed()
1046 jpeg_read_remaining(iptc, ofile); in jpeg_embed()
1049 (void) WriteBlobByte(ofile,0); in jpeg_embed()
1055 jpeg_read_remaining(ifile, ofile); in jpeg_embed()
1060 jpeg_skip_variable(ifile, ofile); in jpeg_embed()
1069 static void jpeg_strip(Image *ifile, Image *ofile) in jpeg_strip() argument
1076 (void) WriteBlobByte(ofile,0xff); in jpeg_strip()
1077 (void) WriteBlobByte(ofile,M_SOI); in jpeg_strip()
1078 jpeg_read_remaining(ifile, ofile); in jpeg_strip()
1083 static int jpeg_extract(Image *ifile, Image *ofile) in jpeg_extract() argument
1098 marker = jpeg_nextmarker(ifile, ofile); in jpeg_extract()
1713 static void formatString(Image *ofile, const char *s, int len) in formatString() argument
1718 (void) WriteBlobByte(ofile,'"'); in formatString()
1723 (void) WriteBlobString(ofile,"&"); in formatString()
1727 (void) WriteBlobString(ofile,"<"); in formatString()
1730 (void) WriteBlobString(ofile,">"); in formatString()
1734 (void) WriteBlobString(ofile,"""); in formatString()
1738 (void) WriteBlobByte(ofile,(unsigned char) *s); in formatString()
1742 (void) WriteBlobString(ofile,temp); in formatString()
1748 (void) WriteBlobString(ofile,"\"\r\n"); in formatString()
1751 (void) WriteBlobString(ofile,"\"\r"); in formatString()
1753 (void) WriteBlobString(ofile,"\"\n"); in formatString()
1824 static int formatIPTC(Image *ifile, Image *ofile) in formatIPTC() argument
1928 (void) WriteBlobString(ofile,temp); in formatIPTC()
1929 formatString( ofile, (char *)str, taglen ); in formatIPTC()
1958 static int formatIPTCfromBuffer(Image *ofile, char *s, ssize_t len) in formatIPTCfromBuffer() argument
2061 (void) WriteBlobString(ofile,temp); in formatIPTCfromBuffer()
2062 formatString( ofile, (char *)str, taglen ); in formatIPTCfromBuffer()
2070 static int format8BIM(Image *ifile, Image *ofile) in format8BIM() argument
2186 (void) WriteBlobString(ofile,temp); in format8BIM()
2189 formatString(ofile, "IPTC", 4); in format8BIM()
2190 formatIPTCfromBuffer(ofile, (char *)str, (ssize_t) count); in format8BIM()
2193 formatString(ofile, (char *)str, (ssize_t) count); in format8BIM()