/external/pdfium/third_party/libtiff/ |
tif_close.c | 43 * @param tif A TIFF pointer. 47 TIFFCleanup(TIFF* tif) 52 if (tif->tif_mode != O_RDONLY) 53 TIFFFlush(tif); 54 (*tif->tif_cleanup)(tif); 55 TIFFFreeDirectory(tif); 57 if (tif->tif_dirlist) 58 _TIFFfree(tif->tif_dirlist); 63 while( tif->tif_clientinfo [all...] |
tif_flush.c | 33 TIFFFlush(TIFF* tif) 35 if( tif->tif_mode == O_RDONLY ) 38 if (!TIFFFlushData(tif)) 46 if( (tif->tif_flags & TIFF_DIRTYSTRIP) 47 && !(tif->tif_flags & TIFF_DIRTYDIRECT) 48 && tif->tif_mode == O_RDWR ) 52 if( TIFFIsTiled(tif) ) 54 if( TIFFGetField( tif, TIFFTAG_TILEOFFSETS, &offsets ) 55 && TIFFGetField( tif, TIFFTAG_TILEBYTECOUNTS, &sizes ) 56 && _TIFFRewriteField( tif, TIFFTAG_TILEOFFSETS, TIFF_LONG8, [all...] |
tif_dumpmode.c | 35 DumpFixupTags(TIFF* tif) 37 (void) tif; 45 DumpModeEncode(TIFF* tif, uint8* pp, tmsize_t cc, uint16 s) 52 if (tif->tif_rawcc + n > tif->tif_rawdatasize) 53 n = tif->tif_rawdatasize - tif->tif_rawcc; 61 if (tif->tif_rawcp != pp) 62 _TIFFmemcpy(tif->tif_rawcp, pp, n); 63 tif->tif_rawcp += n [all...] |
tif_open.c | 86 TIFF *tif; local 119 tif = (TIFF *)_TIFFmalloc((tmsize_t)(sizeof (TIFF) + strlen(name) + 1)); 120 if (tif == NULL) { 124 _TIFFmemset(tif, 0, sizeof (*tif)); 125 tif->tif_name = (char *)tif + sizeof (TIFF); 126 strcpy(tif->tif_name, name); 127 tif->tif_mode = m &~ (O_CREAT|O_TRUNC); 128 tif->tif_curdir = (uint16) -1; /* non-existent directory * [all...] |
tif_write.c | 37 #define WRITECHECKSTRIPS(tif, module) \ 38 (((tif)->tif_flags&TIFF_BEENWRITING) || TIFFWriteCheck((tif),0,module)) 39 #define WRITECHECKTILES(tif, module) \ 40 (((tif)->tif_flags&TIFF_BEENWRITING) || TIFFWriteCheck((tif),1,module)) 41 #define BUFFERCHECK(tif) \ 42 ((((tif)->tif_flags & TIFF_BUFFERSETUP) && tif->tif_rawdata) || \ 43 TIFFWriteBufferSetup((tif), NULL, (tmsize_t) -1) [all...] |
tif_read.c | 34 int TIFFFillStrip(TIFF* tif, uint32 strip); 35 int TIFFFillTile(TIFF* tif, uint32 tile); 36 static int TIFFStartStrip(TIFF* tif, uint32 strip); 37 static int TIFFStartTile(TIFF* tif, uint32 tile); 40 TIFFReadRawStrip1(TIFF* tif, uint32 strip, void* buf, tmsize_t size,const char* module); 46 TIFFFillStripPartial( TIFF *tif, int strip, tmsize_t read_ahead, int restart ) 49 register TIFFDirectory *td = &tif->tif_dir; 55 if (!_TIFFFillStriles( tif ) || !tif->tif_dir.td_stripbytecount) 65 if (read_ahead*2 > tif->tif_rawdatasize) [all...] |
tif_compress.c | 35 TIFFNoEncode(TIFF* tif, const char* method) 37 const TIFFCodec* c = TIFFFindCODEC(tif->tif_dir.td_compression); 40 TIFFErrorExt(tif->tif_clientdata, tif->tif_name, 44 TIFFErrorExt(tif->tif_clientdata, tif->tif_name, 46 tif->tif_dir.td_compression, method); 52 _TIFFNoRowEncode(TIFF* tif, uint8* pp, tmsize_t cc, uint16 s) 55 return (TIFFNoEncode(tif, "scanline")); 59 _TIFFNoStripEncode(TIFF* tif, uint8* pp, tmsize_t cc, uint16 s [all...] |
tif_zip.c | 82 #define ZState(tif) ((ZIPState*) (tif)->tif_data) 83 #define DecoderState(tif) ZState(tif) 84 #define EncoderState(tif) ZState(tif) 86 static int ZIPEncode(TIFF* tif, uint8* bp, tmsize_t cc, uint16 s); 87 static int ZIPDecode(TIFF* tif, uint8* op, tmsize_t occ, uint16 s); 90 ZIPFixupTags(TIFF* tif) 92 (void) tif; [all...] |
tif_tile.c | 38 TIFFComputeTile(TIFF* tif, uint32 x, uint32 y, uint32 z, uint16 s) 40 TIFFDirectory *td = &tif->tif_dir; 75 TIFFCheckTile(TIFF* tif, uint32 x, uint32 y, uint32 z, uint16 s) 77 TIFFDirectory *td = &tif->tif_dir; 80 TIFFErrorExt(tif->tif_clientdata, tif->tif_name, 87 TIFFErrorExt(tif->tif_clientdata, tif->tif_name, 94 TIFFErrorExt(tif->tif_clientdata, tif->tif_name [all...] |
tif_dirwrite.c | 35 #define TIFFCvtNativeToIEEEFloat(tif, n, fp) 36 #define TIFFCvtNativeToIEEEDouble(tif, n, dp) 38 extern void TIFFCvtNativeToIEEEFloat(TIFF* tif, uint32 n, float* fp); 39 extern void TIFFCvtNativeToIEEEDouble(TIFF* tif, uint32 n, double* dp); 42 static int TIFFWriteDirectorySec(TIFF* tif, int isimage, int imagedone, uint64* pdiroff); 44 static int TIFFWriteDirectoryTagSampleformatArray(TIFF* tif, uint32* ndir, TIFFDirEntry* dir, uint16 tag, uint32 count, double* value); 46 static int TIFFWriteDirectoryTagSampleformatPerSample(TIFF* tif, uint32* ndir, TIFFDirEntry* dir, uint16 tag, double value); 49 static int TIFFWriteDirectoryTagAscii(TIFF* tif, uint32* ndir, TIFFDirEntry* dir, uint16 tag, uint32 count, char* value); 50 static int TIFFWriteDirectoryTagUndefinedArray(TIFF* tif, uint32* ndir, TIFFDirEntry* dir, uint16 tag, uint32 count, uint8* value); 52 static int TIFFWriteDirectoryTagByte(TIFF* tif, uint32* ndir, TIFFDirEntry* dir, uint16 tag, uint8 value) [all...] |
tif_next.c | 49 NeXTDecode(TIFF* tif, uint8* buf, tmsize_t occ, uint16 s) 66 bp = (unsigned char *)tif->tif_rawcp; 67 cc = tif->tif_rawcc; 68 scanline = tif->tif_scanlinesize; 71 TIFFErrorExt(tif->tif_clientdata, module, "Fractional scanlines cannot be read"); 106 uint32 imagewidth = tif->tif_dir.td_imagewidth; 107 if( isTiled(tif) ) 108 imagewidth = tif->tif_dir.td_tilewidth; 131 TIFFErrorExt(tif->tif_clientdata, module, "Invalid data for scanline %ld", 132 (long) tif->tif_row) [all...] |
tif_fax3.c | 65 #define Fax3State(tif) ((Fax3BaseState*) (tif)->tif_data) 89 #define DecoderState(tif) ((Fax3CodecState*) Fax3State(tif)) 90 #define EncoderState(tif) ((Fax3CodecState*) Fax3State(tif)) 103 #define DECLARE_STATE(tif, sp, mod) \ 105 Fax3CodecState* sp = DecoderState(tif); \ 118 #define DECLARE_STATE_2D(tif, sp, mod) \ 119 DECLARE_STATE(tif, sp, mod); [all...] |
tif_extension.c | 36 int TIFFGetTagListCount( TIFF *tif ) 39 TIFFDirectory* td = &tif->tif_dir; 44 uint32 TIFFGetTagListEntry( TIFF *tif, int tag_index ) 47 TIFFDirectory* td = &tif->tif_dir; 60 TIFFTagMethods *TIFFAccessTagMethods( TIFF *tif ) 63 return &(tif->tif_tagmethods); 66 void *TIFFGetClientInfo( TIFF *tif, const char *name ) 69 TIFFClientInfoLink *link = tif->tif_clientinfo; 80 void TIFFSetClientInfo( TIFF *tif, void *data, const char *name ) 83 TIFFClientInfoLink *link = tif->tif_clientinfo [all...] |
tif_packbits.c | 37 PackBitsPreEncode(TIFF* tif, uint16 s) 41 if (!(tif->tif_data = (uint8*)_TIFFmalloc(sizeof(tmsize_t)))) 46 if (isTiled(tif)) 47 *(tmsize_t*)tif->tif_data = TIFFTileRowSize(tif); 49 *(tmsize_t*)tif->tif_data = TIFFScanlineSize(tif); 54 PackBitsPostEncode(TIFF* tif) 56 if (tif->tif_data) 57 _TIFFfree(tif->tif_data) [all...] |
tif_strip.c | 38 TIFFComputeStrip(TIFF* tif, uint32 row, uint16 sample) 41 TIFFDirectory *td = &tif->tif_dir; 47 TIFFErrorExt(tif->tif_clientdata, module, 61 TIFFNumberOfStrips(TIFF* tif) 63 TIFFDirectory *td = &tif->tif_dir; 69 nstrips = _TIFFMultiply32(tif, nstrips, (uint32)td->td_samplesperpixel, 78 TIFFVStripSize64(TIFF* tif, uint32 nrows) 81 TIFFDirectory *td = &tif->tif_dir; 86 (!isUpSampled(tif))) 104 TIFFErrorExt(tif->tif_clientdata,module [all...] |
tif_predict.c | 35 #define PredictorState(tif) ((TIFFPredictorState*) (tif)->tif_data) 37 static void horAcc8(TIFF* tif, uint8* cp0, tmsize_t cc); 38 static void horAcc16(TIFF* tif, uint8* cp0, tmsize_t cc); 39 static void horAcc32(TIFF* tif, uint8* cp0, tmsize_t cc); 40 static void swabHorAcc16(TIFF* tif, uint8* cp0, tmsize_t cc); 41 static void swabHorAcc32(TIFF* tif, uint8* cp0, tmsize_t cc); 42 static void horDiff8(TIFF* tif, uint8* cp0, tmsize_t cc); 43 static void horDiff16(TIFF* tif, uint8* cp0, tmsize_t cc); 44 static void horDiff32(TIFF* tif, uint8* cp0, tmsize_t cc) [all...] |
tif_thunder.c | 71 ThunderSetupDecode(TIFF* tif) 75 if( tif->tif_dir.td_bitspersample != 4 ) 77 TIFFErrorExt(tif->tif_clientdata, module, 79 (int) tif->tif_dir.td_bitspersample ); 88 ThunderDecode(TIFF* tif, uint8* op, tmsize_t maxpixels) 96 bp = (unsigned char *)tif->tif_rawcp; 97 cc = tif->tif_rawcc; 143 tif->tif_rawcp = (uint8*) bp; 144 tif->tif_rawcc = cc; 147 TIFFErrorExt(tif->tif_clientdata, module [all...] |
tif_dirread.c | 48 # define TIFFCvtIEEEFloatToNative(tif, n, fp) 49 # define TIFFCvtIEEEDoubleToNative(tif, n, dp) 66 static enum TIFFReadDirEntryErr TIFFReadDirEntryByte(TIFF* tif, TIFFDirEntry* direntry, uint8* value); 67 static enum TIFFReadDirEntryErr TIFFReadDirEntryShort(TIFF* tif, TIFFDirEntry* direntry, uint16* value); 68 static enum TIFFReadDirEntryErr TIFFReadDirEntryLong(TIFF* tif, TIFFDirEntry* direntry, uint32* value); 69 static enum TIFFReadDirEntryErr TIFFReadDirEntryLong8(TIFF* tif, TIFFDirEntry* direntry, uint64* value); 70 static enum TIFFReadDirEntryErr TIFFReadDirEntryFloat(TIFF* tif, TIFFDirEntry* direntry, float* value); 71 static enum TIFFReadDirEntryErr TIFFReadDirEntryDouble(TIFF* tif, TIFFDirEntry* direntry, double* value); 72 static enum TIFFReadDirEntryErr TIFFReadDirEntryIfd8(TIFF* tif, TIFFDirEntry* direntry, uint64* value); 74 static enum TIFFReadDirEntryErr TIFFReadDirEntryArray(TIFF* tif, TIFFDirEntry* direntry, uint32* count, uint32 desttypesize, void** value) [all...] |
tif_lzw.c | 157 #define LZWState(tif) ((LZWBaseState*) (tif)->tif_data) 158 #define DecoderState(tif) ((LZWCodecState*) LZWState(tif)) 159 #define EncoderState(tif) ((LZWCodecState*) LZWState(tif)) 161 static int LZWDecode(TIFF* tif, uint8* op0, tmsize_t occ0, uint16 s); 163 static int LZWDecodeCompat(TIFF* tif, uint8* op0, tmsize_t occ0, uint16 s); 188 #define NextCode(tif, sp, bp, code, get) get(sp, bp, code) 192 LZWFixupTags(TIFF* tif) [all...] |
tif_codec.c | 106 _notConfigured(TIFF* tif) 108 const TIFFCodec* c = TIFFFindCODEC(tif->tif_dir.td_compression); 111 sprintf(compression_code, "%d",tif->tif_dir.td_compression ); 112 TIFFErrorExt(tif->tif_clientdata, tif->tif_name, 119 NotConfigured(TIFF* tif, int scheme) 123 tif->tif_fixuptags = _notConfigured; 124 tif->tif_decodestatus = FALSE; 125 tif->tif_setupdecode = _notConfigured; 126 tif->tif_encodestatus = FALSE [all...] |
tif_dir.c | 130 checkInkNamesString(TIFF* tif, uint32 slen, const char* s) 132 TIFFDirectory* td = &tif->tif_dir; 147 TIFFErrorExt(tif->tif_clientdata, "TIFFSetField", 149 tif->tif_name, 156 _TIFFVSetField(TIFF* tif, uint32 tag, va_list ap) 160 TIFFDirectory* td = &tif->tif_dir; 165 const TIFFField *fip = TIFFFindField(tif, tag, TIFF_ANY); 198 if (tif->tif_flags & TIFF_SWAB) { 200 tif->tif_postdecode = _TIFFNoPostDecode; 202 tif->tif_postdecode = _TIFFSwab16BitData [all...] |
/external/ltp/testcases/kernel/device-drivers/base/user_base/ |
tbase_ki.c | 22 * calls. Each function will need to setup the tif structure 26 * use tif structure for passing params between user 29 * the ki_generic function below. the tif structure makes 48 tmod_interface_t tif; local 53 tif.in_len = 0; 54 tif.in_data = 0; 55 tif.out_len = 0; 56 tif.out_data = 0; 57 tif.out_rc = 0; 62 rc = ioctl(fd, flag, &tif); [all...] |
/external/ltp/testcases/kernel/device-drivers/usb/user_usb/ |
tusb_ki.c | 22 * and kernel calls. Each function will need to setup the tif 26 * use tif structure for passing params between user 50 * tif in_data and out_data values 57 tusb_interface_t tif; local 62 tif.in_len = 0; 63 tif.in_data = 0; 64 tif.out_len = 0; 65 tif.out_data = 0; 66 tif.out_rc = 0; 71 rc = ioctl(fd, flag, &tif); [all...] |
/external/ltp/testcases/kernel/device-drivers/agp/user_space/ |
tagp_ki.c | 22 * calls. Each function will need to setup the tif structure 26 * use tif structure for passing params between user 29 * the ki_generic function below. the tif structure makes 48 tagp_interface_t tif; local 53 tif.in_len = 0; 54 tif.in_data = 0; 55 tif.out_len = 0; 56 tif.out_data = 0; 57 tif.out_rc = 0; 62 rc = ioctl(fd, flag, &tif); [all...] |
/external/ltp/testcases/kernel/device-drivers/dev_sim_framework/user_space/ |
tmod_ki.c | 22 * calls. Each function will need to setup the tif structure 26 * use tif structure for passing params between user 29 * the ki_generic function below. the tif structure makes 48 tmod_interface_t tif; local 53 tif.in_len = 0; 54 tif.in_data = 0; 55 tif.out_len = 0; 56 tif.out_data = 0; 57 tif.out_rc = 0; 62 rc = ioctl(fd, flag, &tif); [all...] |