Lines Matching full:stream
25 virtual bool onDecode(SkStream* stream, SkBitmap* bm, Mode) SK_OVERRIDE;
31 static bool read_byte(SkStream* stream, uint8_t* data)
33 return stream->read(data, 1) == 1;
36 static bool read_mbf(SkStream* stream, int* value)
41 if (!read_byte(stream, &data)) {
55 bool init(SkStream* stream)
59 if (!read_byte(stream, &data) || data != 0) { // unknown type
62 if (!read_byte(stream, &data) || (data & 0x9F)) { // skip fixed header
65 if (!read_mbf(stream, &fWidth) || (unsigned)fWidth > 0xFFFF) {
68 if (!read_mbf(stream, &fHeight) || (unsigned)fHeight > 0xFFFF) {
102 bool SkWBMPImageDecoder::onDecode(SkStream* stream, SkBitmap* decodedBitmap,
107 if (!head.init(stream)) {
137 if (stream->read(src, srcSize) != srcSize) {
157 static SkImageDecoder* sk_wbmp_dfactory(SkStream* stream) {
160 if (head.init(stream)) {
166 static SkImageDecoder::Format get_format_wbmp(SkStream* stream) {
168 if (head.init(stream)) {