Home
last modified time | relevance | path

Searched refs:wStream (Results 1 – 25 of 35) sorted by relevance

12

/external/skqp/src/pdf/
DSkPDFUtils.h72 inline void AppendColorComponent(uint8_t value, SkWStream* wStream) { in AppendColorComponent() argument
75 wStream->write(buffer, len); in AppendColorComponent()
77 inline void AppendColorComponentF(float value, SkWStream* wStream) { in AppendColorComponentF() argument
80 wStream->write(buffer, len); in AppendColorComponentF()
90 inline void WriteUInt16BE(SkDynamicMemoryWStream* wStream, uint16_t value) { in WriteUInt16BE() argument
95 wStream->write(result, 4); in WriteUInt16BE()
98 inline void WriteUInt8(SkDynamicMemoryWStream* wStream, uint8_t value) { in WriteUInt8() argument
101 wStream->write(result, 2); in WriteUInt8()
104 inline void WriteUTF16beHex(SkDynamicMemoryWStream* wStream, SkUnichar utf32) { in WriteUTF16beHex() argument
108 SkPDFUtils::WriteUInt16BE(wStream, utf16[0]); in WriteUTF16beHex()
[all …]
DSkPDFDocument.cpp74 static void serializeHeader(SkPDFOffsetMap* offsetMap, SkWStream* wStream) { in serializeHeader() argument
75 offsetMap->markStartOfDocument(wStream); in serializeHeader()
76 wStream->writeText("%PDF-1.4\n%" SKPDF_MAGIC "\n"); in serializeHeader()
95 SkWStream* wStream, in serialize_footer() argument
99 int xRefFileOffset = offsetMap.emitCrossReferenceTable(wStream); in serialize_footer()
109 wStream->writeText("trailer\n"); in serialize_footer()
110 trailerDict.emitObject(wStream); in serialize_footer()
111 wStream->writeText("\nstartxref\n"); in serialize_footer()
112 wStream->writeBigDecAsText(xRefFileOffset); in serialize_footer()
113 wStream->writeText("\n%%EOF"); in serialize_footer()
DSkPDFTypes.cpp120 static void write_string(SkWStream* wStream, const char* cin, size_t len) { in write_string() argument
133 wStream->writeText("("); in write_string()
141 wStream->write(octal, 4); in write_string()
144 wStream->writeText("\\"); in write_string()
146 wStream->write(&cin[i], 1); in write_string()
149 wStream->writeText(")"); in write_string()
151 wStream->writeText("<"); in write_string()
156 wStream->write(hexValue, 2); in write_string()
158 wStream->writeText(">"); in write_string()
162 void SkPDFWriteString(SkWStream* wStream, const char* cin, size_t len) { in SkPDFWriteString() argument
[all …]
DSkPDFUnion.h23 void SkPDFWriteString(SkWStream* wStream, const char* cin, size_t len);
/external/skia/src/pdf/
DSkPDFUtils.h72 inline void AppendColorComponent(uint8_t value, SkWStream* wStream) { in AppendColorComponent() argument
75 wStream->write(buffer, len); in AppendColorComponent()
77 inline void AppendColorComponentF(float value, SkWStream* wStream) { in AppendColorComponentF() argument
80 wStream->write(buffer, len); in AppendColorComponentF()
90 inline void WriteUInt16BE(SkDynamicMemoryWStream* wStream, uint16_t value) { in WriteUInt16BE() argument
95 wStream->write(result, 4); in WriteUInt16BE()
98 inline void WriteUInt8(SkDynamicMemoryWStream* wStream, uint8_t value) { in WriteUInt8() argument
101 wStream->write(result, 2); in WriteUInt8()
104 inline void WriteUTF16beHex(SkDynamicMemoryWStream* wStream, SkUnichar utf32) { in WriteUTF16beHex() argument
108 SkPDFUtils::WriteUInt16BE(wStream, utf16[0]); in WriteUTF16beHex()
[all …]
DSkPDFDocument.cpp74 static void serializeHeader(SkPDFOffsetMap* offsetMap, SkWStream* wStream) { in serializeHeader() argument
75 offsetMap->markStartOfDocument(wStream); in serializeHeader()
76 wStream->writeText("%PDF-1.4\n%" SKPDF_MAGIC "\n"); in serializeHeader()
95 SkWStream* wStream, in serialize_footer() argument
99 int xRefFileOffset = offsetMap.emitCrossReferenceTable(wStream); in serialize_footer()
109 wStream->writeText("trailer\n"); in serialize_footer()
110 trailerDict.emitObject(wStream); in serialize_footer()
111 wStream->writeText("\nstartxref\n"); in serialize_footer()
112 wStream->writeBigDecAsText(xRefFileOffset); in serialize_footer()
113 wStream->writeText("\n%%EOF"); in serialize_footer()
DSkPDFTypes.cpp120 static void write_string(SkWStream* wStream, const char* cin, size_t len) { in write_string() argument
133 wStream->writeText("("); in write_string()
141 wStream->write(octal, 4); in write_string()
144 wStream->writeText("\\"); in write_string()
146 wStream->write(&cin[i], 1); in write_string()
149 wStream->writeText(")"); in write_string()
151 wStream->writeText("<"); in write_string()
156 wStream->write(hexValue, 2); in write_string()
158 wStream->writeText(">"); in write_string()
162 void SkPDFWriteString(SkWStream* wStream, const char* cin, size_t len) { in SkPDFWriteString() argument
[all …]
DSkPDFUnion.h23 void SkPDFWriteString(SkWStream* wStream, const char* cin, size_t len);
DSkPDFDevice.cpp252 SkWStream* wStream) { in append_clip() argument
260 SkPDFUtils::AppendRectangle(clipStackRect, wStream); in append_clip()
261 wStream->writeText("W* n\n"); in append_clip()
269 SkPDFUtils::EmitPath(clipPath, SkPaint::kFill_Style, wStream); in append_clip()
274 wStream->writeText("W* n\n"); in append_clip()
276 wStream->writeText("W n\n"); in append_clip()
/external/skia/src/utils/
DSkMultiPictureDocument.cpp70 void onClose(SkWStream* wStream) override { in onClose()
71 SkASSERT(wStream); in onClose()
72 SkASSERT(wStream->bytesWritten() == 0); in onClose()
73 wStream->writeText(kMagic); in onClose()
74 wStream->write32(kVersion); in onClose()
75 wStream->write32(SkToU32(fPages.count())); in onClose()
77 wStream->write(&s, sizeof(s)); in onClose()
86 p->serialize(wStream, &fProcs); in onClose()
98 sk_sp<SkDocument> SkMakeMultiPictureDocument(SkWStream* wStream, const SkSerialProcs* procs) { in SkMakeMultiPictureDocument() argument
99 return sk_make_sp<MultiPictureDocument>(wStream, procs); in SkMakeMultiPictureDocument()
/external/skqp/src/utils/
DSkMultiPictureDocument.cpp70 void onClose(SkWStream* wStream) override { in onClose()
71 SkASSERT(wStream); in onClose()
72 SkASSERT(wStream->bytesWritten() == 0); in onClose()
73 wStream->writeText(kMagic); in onClose()
74 wStream->write32(kVersion); in onClose()
75 wStream->write32(SkToU32(fPages.count())); in onClose()
77 wStream->write(&s, sizeof(s)); in onClose()
86 p->serialize(wStream, &fProcs); in onClose()
98 sk_sp<SkDocument> SkMakeMultiPictureDocument(SkWStream* wStream, const SkSerialProcs* procs) { in SkMakeMultiPictureDocument() argument
99 return sk_make_sp<MultiPictureDocument>(wStream, procs); in SkMakeMultiPictureDocument()
/external/skia/tests/
DPDFDocumentTest.cpp207 SkDynamicMemoryWStream wStream; in DEF_TEST() local
209 auto doc = SkPDF::MakeDocument(&wStream, pdfMetadata); in DEF_TEST()
212 sk_sp<SkData> data(wStream.detachAsData()); in DEF_TEST()
233 SkFILEWStream wStream(SK_PDF_TEST_MULTIPAGE); in DEF_TEST() local
235 SkDynamicMemoryWStream wStream; in DEF_TEST() local
237 auto doc = SkPDF::MakeDocument(&wStream); in DEF_TEST()
DTestUtils.cpp163 SkDynamicMemoryWStream wStream; in bitmap_to_base64_data_uri() local
164 if (!SkPngEncoder::Encode(&wStream, pm, options)) { in bitmap_to_base64_data_uri()
169 sk_sp<SkData> pngData = wStream.detachAsData(); in bitmap_to_base64_data_uri()
DStreamTest.cpp304 SkFILEWStream wStream(path.c_str()); in DEF_TEST() local
311 if (!wStream.isValid() || !wStream.write(data->data(), data->size())) { in DEF_TEST()
/external/skqp/tests/
DPDFDocumentTest.cpp207 SkDynamicMemoryWStream wStream; in DEF_TEST() local
209 auto doc = SkPDF::MakeDocument(&wStream, pdfMetadata); in DEF_TEST()
212 sk_sp<SkData> data(wStream.detachAsData()); in DEF_TEST()
233 SkFILEWStream wStream(SK_PDF_TEST_MULTIPAGE); in DEF_TEST() local
235 SkDynamicMemoryWStream wStream; in DEF_TEST() local
237 auto doc = SkPDF::MakeDocument(&wStream); in DEF_TEST()
DTestUtils.cpp161 SkDynamicMemoryWStream wStream; in bitmap_to_base64_data_uri() local
162 if (!SkPngEncoder::Encode(&wStream, pm, options)) { in bitmap_to_base64_data_uri()
167 sk_sp<SkData> pngData = wStream.detachAsData(); in bitmap_to_base64_data_uri()
DStreamTest.cpp304 SkFILEWStream wStream(path.c_str()); in DEF_TEST() local
311 if (!wStream.isValid() || !wStream.write(data->data(), data->size())) { in DEF_TEST()
/external/skia/tools/
Dusing_skia_and_harfbuzz.cpp182 static sk_sp<SkDocument> MakePDFDocument(const Config &config, SkWStream *wStream) { in MakePDFDocument() argument
196 return SkPDF::MakeDocument(wStream, pdf_info); in MakePDFDocument()
201 SkFILEWStream wStream(config.output_file_name.value.c_str()); in main() local
202 sk_sp<SkDocument> doc = MakePDFDocument(config, &wStream); in main()
220 wStream.flush(); in main()
/external/skqp/tools/
Dusing_skia_and_harfbuzz.cpp182 static sk_sp<SkDocument> MakePDFDocument(const Config &config, SkWStream *wStream) { in MakePDFDocument() argument
196 return SkPDF::MakeDocument(wStream, pdf_info); in MakePDFDocument()
201 SkFILEWStream wStream(config.output_file_name.value.c_str()); in main() local
202 sk_sp<SkDocument> doc = MakePDFDocument(config, &wStream); in main()
220 wStream.flush(); in main()
/external/skia/tools/skqp/src/
Dskqp.cpp207 SkFILEWStream wStream(dst.c_str()); in encode_png() local
209 bool success = wStream.isValid() && SkPngEncoder::Encode(&wStream, src.pixmap(), options); in encode_png()
214 SkFILEWStream wStream(dst.c_str()); in write_to_file() local
215 bool success = wStream.isValid() && wStream.write(src->data(), src->size()); in write_to_file()
435 inline void write(SkWStream* wStream, const T& text) { in write() argument
436 wStream->write(text.c_str(), text.size()); in write()
/external/skqp/tools/skqp/src/
Dskqp.cpp207 SkFILEWStream wStream(dst.c_str()); in encode_png() local
209 bool success = wStream.isValid() && SkPngEncoder::Encode(&wStream, src.pixmap(), options); in encode_png()
214 SkFILEWStream wStream(dst.c_str()); in write_to_file() local
215 bool success = wStream.isValid() && wStream.write(src->data(), src->size()); in write_to_file()
435 inline void write(SkWStream* wStream, const T& text) { in write() argument
436 wStream->write(text.c_str(), text.size()); in write()
/external/skia/bench/
DPDFBench.cpp175 SkNullWStream wStream; in onDraw() local
176 SkPDFDocument doc(&wStream, SkPDF::Metadata()); in onDraw()
371 SkFILEWStream wStream("/tmp/big_pdf.pdf"); in onDraw() local
373 SkNullWStream wStream; in onDraw()
377 auto doc = SkPDF::MakeDocument(&wStream, metadata); in onDraw()
/external/skqp/bench/
DPDFBench.cpp175 SkNullWStream wStream; in onDraw() local
176 SkPDFDocument doc(&wStream, SkPDF::Metadata()); in onDraw()
371 SkFILEWStream wStream("/tmp/big_pdf.pdf"); in onDraw() local
373 SkNullWStream wStream; in onDraw()
377 auto doc = SkPDF::MakeDocument(&wStream, metadata); in onDraw()
/external/skqp/dm/
DDMSrcSink.cpp1534 Error GPUThreadTestingSink::draw(const Src& src, SkBitmap* dst, SkWStream* wStream, in draw() argument
1543 Error err = this->onDraw(src, dst, wStream, log, contextOptions); in draw()
1576 Error GPUPersistentCacheTestingSink::draw(const Src& src, SkBitmap* dst, SkWStream* wStream, in draw() argument
1584 Error err = this->onDraw(src, dst, wStream, log, contextOptions); in draw()
1792 SkDynamicMemoryWStream wStream; in check_against_reference() local
1793 Error err = sink->draw(src, &reference, &wStream, &log); in check_against_reference()
/external/skia/dm/
DDMSrcSink.cpp1467 Error GPUThreadTestingSink::draw(const Src& src, SkBitmap* dst, SkWStream* wStream, in draw() argument
1476 Error err = this->onDraw(src, dst, wStream, log, contextOptions); in draw()
1509 Error GPUPersistentCacheTestingSink::draw(const Src& src, SkBitmap* dst, SkWStream* wStream, in draw() argument
1517 Error err = this->onDraw(src, dst, wStream, log, contextOptions); in draw()
1724 SkDynamicMemoryWStream wStream; in check_against_reference() local
1725 Error err = sink->draw(src, &reference, &wStream, &log); in check_against_reference()

12