/external/skia/experimental/nanomsg/ |
H A D | picture_demo.cpp | 66 SkPicture* pic = SkPicture::CreateFromStream(&stream); local 71 return pic;
|
/external/skia/samplecode/ |
H A D | SampleClamp.cpp | 53 SkPicture pic; local 54 SkCanvas* c = pic.beginRecording(100, 100, 0);
|
H A D | SamplePdfFileViewer.cpp | 43 SkPicture* pic = SkNEW(SkPicture); local 44 SkCanvas* canvas = pic->beginRecording((int) renderer->MediaBox(0).width(), 47 pic->endRecording(); 48 return pic;
|
H A D | SamplePictFile.cpp | 124 SkAutoTUnref<SkPicture> pic; local 132 pic.reset(recorder.endRecording()); 136 pic.reset(SkPicture::CreateFromStream(&stream)); 142 SkSurface* surf = SkSurface::NewRasterPMColor(pic->width(), pic->height()); 143 surf->getCanvas()->drawPicture(pic); 148 pic->draw(recorder.beginRecording(pic->width(), pic->height(), NULL, 0)); 158 if (NULL == pic) { [all...] |
/external/skia/src/images/ |
H A D | SkImageDecoder_libwebp.cpp | 634 WebPPicture pic; local 635 WebPPictureInit(&pic); 636 pic.width = bm.width(); 637 pic.height = bm.height(); 638 pic.writer = stream_writer; 639 pic.custom_ptr = (void*)stream; 643 const int rgbStride = pic.width * bpp; 647 uint8_t* rgb = new uint8_t[rgbStride * pic.height]; 648 for (int y = 0; y < pic.height; ++y) { 650 pic [all...] |
/external/skia/tests/ |
H A D | PathOpsSkpClipTest.cpp | 540 static SkMSec timePict(SkPicture* pic, SkCanvas* canvas) { argument 542 int pWidth = pic->width(); 543 int pHeight = pic->height(); 554 pic->draw(canvas); 564 static void drawPict(SkPicture* pic, SkCanvas* canvas, int scale) { argument 570 pic->draw(canvas); 586 SkPicture* pic = NULL; local 616 pic = SkPicture::CreateFromStream(&stream, &SkImageDecoder::DecodeMemory); 617 if (!pic) { 621 int width = pic [all...] |
H A D | PictureTest.cpp | 345 static void draw(SkPicture* pic, int width, int height, SkBitmap* result) { argument 349 canvas.drawPicture(pic); 498 SkAutoTUnref<SkPicture> pic( 501 REPORTER_ASSERT(reporter, pic->willPlayBackBitmaps() || N == 0); 508 SkAutoDataUnref data(SkPictureUtils::GatherPixelRefs(pic, r)); 527 draw(pic, 2*IW, 2*IH, &image); 541 SkData* data = SkPictureUtils::GatherPixelRefs(pic, r); 575 SkData* data = SkPictureUtils::GatherPixelRefs(pic, r); 603 SkAutoTUnref<SkPicture> pic( 606 REPORTER_ASSERT(reporter, pic [all...] |
H A D | SkpSkGrTest.cpp | 333 static SkMSec timePict(SkPicture* pic, SkCanvas* canvas) { argument 335 int pWidth = pic->width(); 336 int pHeight = pic->height(); 347 pic->draw(canvas); 357 static void drawPict(SkPicture* pic, SkCanvas* canvas, int scale) { argument 363 pic->draw(canvas); 379 SkPicture* pic = NULL; local 400 pic = SkPicture::CreateFromStream(&stream, &SkImageDecoder::DecodeMemory); 401 if (!pic) { 405 int pWidth = pic [all...] |
/external/skia/tools/ |
H A D | PictureRenderer.cpp | 814 SkPicture* pic; local 817 pic = fPicture; 819 pic = &fPictureClones[i]; 824 (pic, fCanvasPool[i], fTileRects, start, end, &fCountdown,
|
H A D | bbh_shootout.cpp | 59 * @param pic The picture to draw to the renderer. 65 SkPicture* pic, 70 renderer->init(pic, NULL, NULL, NULL, false); 63 do_benchmark_work(sk_tools::PictureRenderer* renderer, BBoxType bBoxType, SkPicture* pic, const int numRepeats, Timer* timer) argument
|
H A D | pinspect.cpp | 38 SkPicture* pic = SkPicture::CreateFromStream(&stream, &sk_tools::LazyDecodeBitmap); local 39 if (NULL == pic) { 43 printf("picture size:[%d %d]\n", pic->width(), pic->height()); 44 return pic; 47 static void dumpOps(SkPicture* pic) { argument 51 canvas.drawPicture(pic); 74 SkAutoTUnref<SkPicture> pic(inspect(argv[index])); 76 dumpOps(pic);
|
/external/skia/tools/lua/ |
H A D | lua_pictures.cpp | 43 SkPicture* pic = NULL; local 45 pic = SkPicture::CreateFromStream(stream.get(), &sk_tools::LazyDecodeBitmap); 47 return pic; 154 SkAutoTUnref<SkPicture> pic(load_picture(path)); 155 if (pic.get()) { 157 new SkLuaCanvas(pic->width(), pic->height(), 161 canvas->drawPicture(pic);
|
/external/srec/tools/grxmlcompile/ |
H A D | vocab.cpp | 185 bool Pronunciation::getPIC( int pronIndex, int picIndex, std::string &pic ) 214 pic = lphon + cphon + rphon; 242 std::string pic; local 243 getPIC(ii, jj, pic);
|
/external/valgrind/main/memcheck/tests/ |
H A D | vcpu_fbench.c | 357 #define pic 3.1415926535897932 macro 361 static double pi = pic, 362 twopi =pic * 2.0, 363 piover4 = pic / 4.0, 364 fouroverpi = 4.0 / pic, 365 piover2 = pic / 2.0; 549 temp += pic; 551 temp -= pic;
|
/external/valgrind/main/perf/ |
H A D | fbench.c | 353 #define pic 3.1415926535897932 macro 357 static double pi = pic, 358 twopi =pic * 2.0, 359 piover4 = pic / 4.0, 360 fouroverpi = 4.0 / pic, 361 piover2 = pic / 2.0; 545 temp += pic; 547 temp -= pic;
|
/external/webp/src/enc/ |
H A D | alpha.c | 271 const WebPPicture* const pic = enc->pic_; local 272 const int width = pic->width; 273 const int height = pic->height; 283 assert(enc != NULL && pic != NULL && pic->a != NULL); 286 assert(pic->a_stride >= width); 308 CopyPlane(pic->a, pic->a_stride, quant_alpha, width, width, height); 322 output_size, pic->stats); 323 if (pic [all...] |
H A D | frame.c | 488 WebPPicture* const pic = enc->pic_; local 490 if (pic->stats != NULL) { 497 if (pic->extra_info != NULL) { 498 uint8_t* const info = &pic->extra_info[it->x_ + it->y_ * enc->mb_w_]; 499 switch (pic->extra_info_type) {
|
H A D | iterator.c | 130 const WebPPicture* const pic = enc->pic_; local 131 const uint8_t* const ysrc = pic->y + (y * pic->y_stride + x) * 16; 132 const uint8_t* const usrc = pic->u + (y * pic->uv_stride + x) * 8; 133 const uint8_t* const vsrc = pic->v + (y * pic->uv_stride + x) * 8; 134 const int w = MinSize(pic->width - x * 16, 16); 135 const int h = MinSize(pic->height - y * 16, 16); 139 ImportBlock(ysrc, pic 191 const WebPPicture* const pic = enc->pic_; local [all...] |
H A D | picture.c | 234 WebPPicture pic; local 240 !WebPPictureInit(&pic)) { 245 pic.use_argb = !!lossless; 246 pic.width = width; 247 pic.height = height; 248 pic.writer = WebPMemoryWrite; 249 pic.custom_ptr = &wrt; 252 ok = import(&pic, rgba, stride) && WebPEncode(&config, &pic); 253 WebPPictureFree(&pic); [all...] |
H A D | picture_rescale.c | 45 static void SnapTopLeftPosition(const WebPPicture* const pic, argument 47 if (!pic->use_argb) { 54 static int AdjustAndCheckRectangle(const WebPPicture* const pic, argument 57 SnapTopLeftPosition(pic, left, top); 60 if ((*left) + width > pic->width) return 0; 61 if ((*top) + height > pic->height) return 0; 132 int WebPPictureCrop(WebPPicture* pic, argument 136 if (pic == NULL) return 0; 137 if (!AdjustAndCheckRectangle(pic, &left, &top, width, height)) return 0; 139 PictureGrabSpecs(pic, 196 AlphaMultiplyARGB(WebPPicture* const pic, int inverse) argument 202 AlphaMultiplyY(WebPPicture* const pic, int inverse) argument 209 WebPPictureRescale(WebPPicture* pic, int width, int height) argument [all...] |
H A D | picture_tools.c | 68 void WebPCleanupTransparentArea(WebPPicture* pic) { argument 70 if (pic == NULL) return; 71 w = pic->width / SIZE; 72 h = pic->height / SIZE; 75 if (pic->use_argb) { 80 const int off = (y * pic->argb_stride + x) * SIZE; 81 if (is_transparent_argb_area(pic->argb + off, pic->argb_stride, SIZE)) { 83 argb_value = pic->argb[off]; 86 flatten_argb(pic 131 WebPBlendAlpha(WebPPicture* pic, uint32_t background_rgb) argument [all...] |
H A D | syntax.c | 29 static int PutPaddingByte(const WebPPicture* const pic) { argument 31 return !!pic->writer(pad_byte, 1, pic); 39 const WebPPicture* const pic = enc->pic_; local 45 if (!pic->writer(riff, sizeof(riff), pic)) { 52 const WebPPicture* const pic = enc->pic_; local 59 assert(pic->width >= 1 && pic->height >= 1); 60 assert(pic 77 const WebPPicture* const pic = enc->pic_; local 102 PutVP8Header(const WebPPicture* const pic, size_t vp8_size) argument 115 PutVP8FrameHeader(const WebPPicture* const pic, int profile, size_t size0) argument 151 WebPPicture* const pic = enc->pic_; local 248 EmitPartitionsSize(const VP8Encoder* const enc, WebPPicture* const pic) argument 312 WebPPicture* const pic = enc->pic_; local [all...] |
H A D | vp8l.c | 44 static int AnalyzeAndCreatePalette(const WebPPicture* const pic, argument 52 const uint32_t* argb = pic->argb; 53 const int width = pic->width; 54 const int height = pic->height; 84 argb += pic->argb_stride; 139 const WebPPicture* const pic = enc->pic_; local 140 const int width = pic->width; 141 const int height = pic->height; 146 assert(pic != NULL && pic 782 WriteRiffHeader(const WebPPicture* const pic, size_t riff_size, size_t vp8l_size) argument 796 WriteImageSize(const WebPPicture* const pic, VP8LBitWriter* const bw) argument 813 WriteImage(const WebPPicture* const pic, VP8LBitWriter* const bw, size_t* const coded_size) argument 936 const WebPPicture* const pic = enc->pic_; local 1007 const WebPPicture* const pic = enc->pic_; local [all...] |
H A D | webpenc.c | 288 int WebPEncodingSetError(const WebPPicture* const pic, argument 292 ((WebPPicture*)pic)->error_code = error; 296 int WebPReportProgress(const WebPPicture* const pic, argument 300 if (pic->progress_hook && !pic->progress_hook(percent, pic)) { 302 WebPEncodingSetError(pic, VP8_ENC_ERROR_USER_ABORT); 310 int WebPEncode(const WebPConfig* config, WebPPicture* pic) { argument 313 if (pic == NULL) 315 WebPEncodingSetError(pic, VP8_ENC_O [all...] |