Home
last modified time | relevance | path

Searched refs:SkStream (Results 1 – 25 of 132) sorted by relevance

123456

/external/skia/src/utils/mac/
DSkStream_mac.cpp20 SkStream* stream = (SkStream*)info; in delete_stream_proc()
30 return ((SkStream*)info)->read(buffer, bytes); in get_bytes_proc()
34 return ((SkStream*)info)->skip((size_t) bytes); in skip_forward_proc()
39 ((SkStream*)info)->rewind(); in rewind_proc()
45 SkDELETE((SkStream*)info); in release_info_proc()
48 CGDataProviderRef SkCreateDataProviderFromStream(SkStream* stream) { in SkCreateDataProviderFromStream()
/external/skia/src/core/
DSkFontStream.h11 class SkStream; variable
25 static int CountTTCEntries(SkStream*);
33 static int GetTableTags(SkStream*, int ttcIndex, SkFontTableTag tags[]);
41 static size_t GetTableData(SkStream*, int ttcIndex, SkFontTableTag tag,
44 static size_t GetTableSize(SkStream* stream, int ttcIndex, SkFontTableTag tag) { in GetTableSize()
DSkStreamPriv.h12 class SkStream; variable
27 size_t SkCopyStreamToStorage(SkAutoMalloc* storage, SkStream* stream);
36 SkData *SkCopyStreamToData(SkStream* stream);
44 SkStreamRewindable* SkStreamRewindableFromSkStream(SkStream* stream);
DSkFontStream.cpp39 static bool read(SkStream* stream, void* buffer, size_t amount) { in read()
43 static bool skip(SkStream* stream, size_t amount) { in skip()
54 static int count_tables(SkStream* stream, int ttcIndex, size_t* offsetToDir) { in count_tables()
113 bool init(SkStream* stream, int ttcIndex) { in init()
138 int SkFontStream::CountTTCEntries(SkStream* stream) { in CountTTCEntries()
155 int SkFontStream::GetTableTags(SkStream* stream, int ttcIndex, in GetTableTags()
170 size_t SkFontStream::GetTableData(SkStream* stream, int ttcIndex, in GetTableData()
DSkFontDescriptor.cpp27 static void read_string(SkStream* stream, SkString* string) { in read_string()
36 static void skip_string(SkStream* stream) { in skip_string()
52 static size_t read_uint(SkStream* stream) { in read_uint()
61 SkFontDescriptor::SkFontDescriptor(SkStream* stream) : fFontIndex(0) { in SkFontDescriptor()
/external/skia/tests/
DFrontBufferedStreamTest.cpp16 static void test_read(skiatest::Reporter* reporter, SkStream* bufferedStream, in test_read()
27 SkStream* bufferedStream, bool shouldSucceed) { in test_rewind()
37 const SkStream& bufferedStream, in test_hasLength()
38 const SkStream& streamBeingBuffered) { in test_hasLength()
59 SkAutoTDelete<SkStream> bufferedStream(SkFrontBufferedStream::Create(memStream, bufferSize)); in test_incremental_buffering()
86 SkAutoTDelete<SkStream> bufferedStream(SkFrontBufferedStream::Create(memStream, bufferSize)); in test_perfectly_sized_buffer()
105 SkAutoTDelete<SkStream> bufferedStream(SkFrontBufferedStream::Create(memStream, bufferSize)); in test_skipping()
158 SkAutoTDelete<SkStream> bufferedStream(SkFrontBufferedStream::Create(memStream, bufferSize)); in test_read_beyond_buffer()
171 class LengthOptionalStream : public SkStream {
204 SkAutoTDelete<SkStream> buffered(SkFrontBufferedStream::Create(stream, bufferSize)); in test_length_combos()
[all …]
/external/skia/include/xml/
DSkXMLParser.h15 class SkStream; variable
62 bool parse(SkStream& docStream);
91 explicit SkXMLPullParser(SkStream*);
94 SkStream* getStream() const { return fStream; }
95 SkStream* setStream(SkStream* stream);
146 SkStream* fStream;
DSkBML_XMLParser.h13 class SkStream; variable
22 static void Read(SkStream& s, SkXMLWriter& writer);
25 static void Read(SkStream& s, SkWStream& output);
28 static void Read(SkStream& s, SkXMLParser& output);
/external/skia/src/codec/
DSkCodec_libbmp.h40 static bool IsBmp(SkStream*);
49 static SkCodec* NewFromStream(SkStream*);
57 static SkCodec* NewFromIco(SkStream*);
99 static SkCodec* NewFromStream(SkStream*, bool isIco);
109 static bool ReadHeader(SkStream*, bool isIco, SkCodec** codecOut);
174 SkBmpCodec(const SkImageInfo& srcInfo, SkStream* stream,
DSkCodec_libgif.h24 static bool IsGif(SkStream*);
31 static SkCodec* NewFromStream(SkStream*);
55 static bool ReadHeader(SkStream* stream, SkCodec** codecOut, GifFileType** gifOut);
90 SkGifCodec(const SkImageInfo& srcInfo, SkStream* stream, GifFileType* gif);
DSkCodec.cpp20 bool (*IsFormat)(SkStream*);
21 SkCodec* (*NewFromStream)(SkStream*);
33 SkCodec* SkCodec::NewFromStream(SkStream* stream) { in NewFromStream()
38 SkAutoTDelete<SkStream> streamDeleter(stream); in NewFromStream()
72 SkCodec::SkCodec(const SkImageInfo& info, SkStream* stream) in SkCodec()
DSkJpegCodec.h33 static bool IsJpeg(SkStream*);
40 static SkCodec* NewFromStream(SkStream*);
83 static bool ReadHeader(SkStream* stream, SkCodec** codecOut,
95 SkJpegCodec(const SkImageInfo& srcInfo, SkStream* stream, JpegDecoderMgr* decoderMgr);
DSkCodec_libpng.h22 class SkStream; variable
27 static SkCodec* NewFromStream(SkStream*);
28 static bool IsPng(SkStream*);
48 SkPngCodec(const SkImageInfo&, SkStream*, png_structp, png_infop);
DSkCodec_wbmp.cpp14 static bool read_mbf(SkStream* stream, uint64_t* value) { in read_mbf()
32 static bool read_header(SkStream* stream, SkISize* size) { in read_header()
96 SkWbmpCodec::SkWbmpCodec(const SkImageInfo& info, SkStream* stream) in SkWbmpCodec()
152 bool SkWbmpCodec::IsWbmp(SkStream* stream) { in IsWbmp()
156 SkCodec* SkWbmpCodec::NewFromStream(SkStream* stream) { in NewFromStream()
157 SkAutoTDelete<SkStream> streamDeleter(stream); in NewFromStream()
DSkCodec_wbmp.h15 static bool IsWbmp(SkStream*);
16 static SkCodec* NewFromStream(SkStream*);
22 SkWbmpCodec(const SkImageInfo&, SkStream*);
DSkCodec_libgif.cpp20 bool SkGifCodec::IsGif(SkStream* stream) { in IsGif()
54 SkStream* stream = (SkStream*) fileType->UserData; in read_bytes_callback()
61 static GifFileType* open_gif(SkStream* stream) { in open_gif()
152 bool SkGifCodec::ReadHeader(SkStream* stream, SkCodec** codecOut, GifFileType** gifOut) { in ReadHeader()
153 SkAutoTDelete<SkStream> streamDeleter(stream); in ReadHeader()
199 SkCodec* SkGifCodec::NewFromStream(SkStream* stream) { in NewFromStream()
207 SkGifCodec::SkGifCodec(const SkImageInfo& srcInfo, SkStream* stream, in SkGifCodec()
/external/skia/src/xml/
DSkBML_XMLParser.cpp15 static uint8_t rbyte(SkStream& s) in rbyte()
23 static int rdata(SkStream& s, int data) in rdata()
38 static void set(char* array[256], int index, SkStream& s, int data) in set()
86 static void rattr(unsigned verb, SkStream& s, BMLW& rec, SkXMLWriter& writer) in rattr()
121 static void relem(unsigned verb, SkStream& s, BMLW& rec, SkXMLWriter& writer) in relem()
164 void BML_XMLParser::Read(SkStream& s, SkXMLWriter& writer) in Read()
171 void BML_XMLParser::Read(SkStream& s, SkWStream& output) in Read()
177 void BML_XMLParser::Read(SkStream& s, SkXMLParser& output) in Read()
/external/skia/include/codec/
DSkCodec.h34 static SkCodec* NewFromStream(SkStream*);
112 SkCodec(const SkImageInfo&, SkStream*);
176 SkStream* stream() { in stream()
181 SkAutoTDelete<SkStream> fStream;
/external/skia/src/images/
DSkImageDecoder_wbmp.cpp25 Result onDecode(SkStream* stream, SkBitmap* bm, Mode) override;
31 static bool read_byte(SkStream* stream, uint8_t* data) in read_byte()
36 static bool read_mbf(SkStream* stream, int* value) in read_mbf()
55 bool init(SkStream* stream) in init()
102 SkImageDecoder::Result SkWBMPImageDecoder::onDecode(SkStream* stream, SkBitmap* decodedBitmap, in onDecode()
/external/skia/experimental/PdfViewer/inc/
DSkPdfRenderer.h18 class SkStream; variable
39 static SkPdfRenderer* CreateFromStream(SkStream*);
69 bool SkPDFNativeRenderToBitmap(SkStream* stream,
/external/skia/src/utils/ios/
DSkFontHost_iOS.mm58 SkTypeface_Stream(SkStream* stream, Style style);
61 SkStream* refStream() {
67 SkStream* fStream;
72 SkTypeface_Stream::SkTypeface_Stream(SkStream* stream, Style style)
83 SkStream* stream = SkStream_NSData::CreateFromResource(res.fName, "ttf");
174 SkTypeface* SkFontHost::CreateTypefaceFromStream(SkStream* stream) {
186 SkStream* SkFontHost::OpenStream(uint32_t uniqueID) {
204 SkTypeface* SkFontHost::Deserialize(SkStream* stream) {
/external/skia/include/core/
DSkImageDecoder.h18 class SkStream; variable
57 bool decodeYUV8Planes(SkStream* stream, SkISize componentSizes[3], void* planes[3],
237 Result decode(SkStream*, SkBitmap* bitmap, SkColorType pref, Mode);
238 Result decode(SkStream* stream, SkBitmap* bitmap, Mode mode) { in decode()
311 virtual Result onDecode(SkStream*, SkBitmap* bitmap, Mode) = 0;
329 virtual bool onDecodeYUV8Planes(SkStream*, SkISize[3] /*componentSizes*/, in onDecodeYUV8Planes() argument
/external/skia/include/utils/mac/
DSkCGUtils.h24 class SkStream; variable
69 bool SkPDFDocumentToBitmap(SkStream* stream, SkBitmap* output);
77 CGDataProviderRef SkCreateDataProviderFromStream(SkStream*);
/external/skia/include/utils/win/
DSkIStream.h17 class SkStream; variable
82 SkStream *fSkStream;
86 SkIStream(SkStream* stream, bool fDeleteOnRelease);
90 HRESULT static CreateFromSkStream(SkStream* stream
/external/skia/src/utils/
DSkFrontBufferedStream.cpp15 FrontBufferedStream(SkStream*, size_t bufferSize);
36 SkAutoTDelete<SkStream> fStream;
65 typedef SkStream INHERITED;
68 SkStreamRewindable* SkFrontBufferedStream::Create(SkStream* stream, size_t bufferSize) { in Create()
75 FrontBufferedStream::FrontBufferedStream(SkStream* stream, size_t bufferSize) in FrontBufferedStream()

123456