Lines Matching defs:inSource

234 // Determines if the data in inSource is in the
236 // info about the data in inSource to outInfo and pheader.
240 // Parameters: inSource, The source of the image data
245 // amtread, Amount of data read from inSource
252 // it is read in from inSource
266 BaseTranslator::identify_bits_header(BPositionIO *inSource,
273 if (inSource->Read(
350 // Parameters: inSource, where the data to examine is
356 // the data in inSource to be
366 // the data in inSource
377 BaseTranslator::BitsCheck(BPositionIO *inSource, BMessage *ioExtension,
393 if (inSource->Read(ch, 4) != 4)
395 inSource->Seek(-4, SEEK_CUR);
412 BaseTranslator::BitsIdentify(BPositionIO *inSource,
416 status_t result = BitsCheck(inSource, ioExtension, outType);
419 result = identify_bits_header(inSource, outInfo, &bitmap);
426 result = DerivedIdentify(inSource, inFormat, ioExtension,
436 // Examines the data from inSource and determines if it is in a
441 // Parameters: inSource, where the data to examine is
443 // inFormat, a hint about the data in inSource,
450 // inSource and how well this translator
454 // the data in inSource to be
460 // the data in inSource
471 BaseTranslator::Identify(BPositionIO *inSource,
477 return BitsIdentify(inSource, inFormat, ioExtension,
481 return DerivedIdentify(inSource, inFormat, ioExtension,
490 // Convert the data in inSource from the Be Bitmap format ('bits')
495 // Parameters: inSource, the bits data to translate
498 // inSource
501 // inSource
518 BaseTranslator::translate_from_bits_to_bits(BPositionIO *inSource,
525 result = identify_bits_header(inSource, NULL, &bitsHeader);
546 rd = inSource->Read(buf, 1024);
552 rd = inSource->Read(buf, std::min((uint32)1024,
569 BaseTranslator::BitsTranslate(BPositionIO *inSource,
573 status_t result = BitsCheck(inSource, ioExtension, outType);
575 result = translate_from_bits_to_bits(inSource, outType,
579 result = DerivedTranslate(inSource, inInfo, ioExtension, outType,
589 // Translates the data in inSource to the type outType and stores
594 // Parameters: inSource, the data to be translated
596 // inInfo, hint about the data in inSource (not used)
601 // outType, the type to convert inSource to
618 BaseTranslator::Translate(BPositionIO *inSource,
624 return BitsTranslate(inSource, inInfo, ioExtension, outType,
628 return DerivedTranslate(inSource, inInfo, ioExtension, outType,
700 BaseTranslator::DerivedIdentify(BPositionIO *inSource,
709 BaseTranslator::DerivedTranslate(BPositionIO *inSource,
732 translate_direct_copy(BPositionIO *inSource, BPositionIO *outDestination)
736 ssize_t ret = inSource->Read(buffer, kbufsize);
739 ret = inSource->Read(buffer, kbufsize);