Searched defs:pic (Results 51 - 74 of 74) sorted by path

123

/external/skia/experimental/nanomsg/
H A Dpicture_demo.cpp66 SkPicture* pic = SkPicture::CreateFromStream(&stream); local
71 return pic;
/external/skia/samplecode/
H A DSampleClamp.cpp53 SkPicture pic; local
54 SkCanvas* c = pic.beginRecording(100, 100, 0);
H A DSamplePdfFileViewer.cpp43 SkPicture* pic = SkNEW(SkPicture); local
44 SkCanvas* canvas = pic->beginRecording((int) renderer->MediaBox(0).width(),
47 pic->endRecording();
48 return pic;
H A DSamplePictFile.cpp124 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 DSkImageDecoder_libwebp.cpp634 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 DPathOpsSkpClipTest.cpp540 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 DPictureTest.cpp345 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 DSkpSkGrTest.cpp333 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 DPictureRenderer.cpp814 SkPicture* pic; local
817 pic = fPicture;
819 pic = &fPictureClones[i];
824 (pic, fCanvasPool[i], fTileRects, start, end, &fCountdown,
H A Dbbh_shootout.cpp59 * @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 Dpinspect.cpp38 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 Dlua_pictures.cpp43 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 Dvocab.cpp185 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 Dvcpu_fbench.c357 #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 Dfbench.c353 #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 Dalpha.c271 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 Dframe.c488 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 Diterator.c130 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 Dpicture.c234 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 Dpicture_rescale.c45 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 Dpicture_tools.c68 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 Dsyntax.c29 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 Dvp8l.c44 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 Dwebpenc.c288 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...]

Completed in 2648 milliseconds

123