Lines Matching refs:stream

344  *  @param originalBitmap SkBitmap decoded from the same stream as bitmapFromDecodeSubset,
409 * Dummy class for testing to ensure that a stream without a length decodes the same
410 * as a stream with a length.
426 * Test that decoding a stream which reports to not have a length still results in the
429 * @param srcPath The path to the file, for recreating the length-less stream.
431 * again to decode the length-less stream.
432 * @param digest GmResultDigest computed from decoding the stream the first time.
433 * Decoding the length-less stream is expected to result in a matching digest.
443 FILEStreamWithoutLength stream(srcPath);
444 // This will only be called after a successful decode. Creating a stream from the same
446 SkASSERT(stream.isValid());
448 if (!codec->decode(&stream, &bm, gPrefColorType, SkImageDecoder::kDecodePixels_Mode)) {
486 SkFILEStream stream(srcPath);
487 if (!stream.isValid()) {
492 SkImageDecoder* codec = SkImageDecoder::Factory(&stream);
502 stream.rewind();
513 if (!codec->decode(&stream, &bitmap, gPrefColorType, SkImageDecoder::kDecodePixels_Mode)) {
540 stream.rewind();
542 if (!codec->decode(&stream, &dim, SkImageDecoder::kDecodeBounds_Mode)) {
584 SkDEBUGCODE(bool couldRewind =) stream.rewind();
589 if (codec->buildTileIndex(&stream, &width, &height) && width > 1 && height > 1) {
634 if (stream.rewind()) {
635 format = SkImageDecoder::GetStreamFormat(&stream);
649 SkASSERT(!stream.rewind() || SkImageDecoder::GetStreamFormat(&stream) == format);
662 // Encode to a stream.
813 SkFILEWStream stream(FLAGS_createExpectationsPath[0]);
814 stream.write(jsonStdString.c_str(), jsonStdString.length());