Home
last modified time | relevance | path

Searched refs:pic (Results 1 – 25 of 627) sorted by relevance

12345678910>>...26

/external/webp/src/enc/
Dpicture_rescale.c45 static void SnapTopLeftPosition(const WebPPicture* const pic, in SnapTopLeftPosition() argument
47 if (!pic->use_argb) { in SnapTopLeftPosition()
54 static int AdjustAndCheckRectangle(const WebPPicture* const pic, in AdjustAndCheckRectangle() argument
57 SnapTopLeftPosition(pic, left, top); in AdjustAndCheckRectangle()
60 if ((*left) + width > pic->width) return 0; in AdjustAndCheckRectangle()
61 if ((*top) + height > pic->height) return 0; in AdjustAndCheckRectangle()
132 int WebPPictureCrop(WebPPicture* pic, in WebPPictureCrop() argument
136 if (pic == NULL) return 0; in WebPPictureCrop()
137 if (!AdjustAndCheckRectangle(pic, &left, &top, width, height)) return 0; in WebPPictureCrop()
139 PictureGrabSpecs(pic, &tmp); in WebPPictureCrop()
[all …]
Dpicture_tools.c68 void WebPCleanupTransparentArea(WebPPicture* pic) { in WebPCleanupTransparentArea() argument
70 if (pic == NULL) return; in WebPCleanupTransparentArea()
71 w = pic->width / SIZE; in WebPCleanupTransparentArea()
72 h = pic->height / SIZE; in WebPCleanupTransparentArea()
75 if (pic->use_argb) { in WebPCleanupTransparentArea()
80 const int off = (y * pic->argb_stride + x) * SIZE; in WebPCleanupTransparentArea()
81 if (is_transparent_argb_area(pic->argb + off, pic->argb_stride, SIZE)) { in WebPCleanupTransparentArea()
83 argb_value = pic->argb[off]; in WebPCleanupTransparentArea()
86 flatten_argb(pic->argb + off, argb_value, pic->argb_stride, SIZE); in WebPCleanupTransparentArea()
93 const uint8_t* const a_ptr = pic->a; in WebPCleanupTransparentArea()
[all …]
Dsyntax.c29 static int PutPaddingByte(const WebPPicture* const pic) { in PutPaddingByte() argument
31 return !!pic->writer(pad_byte, 1, pic); in PutPaddingByte()
39 const WebPPicture* const pic = enc->pic_; in PutRIFFHeader() local
45 if (!pic->writer(riff, sizeof(riff), pic)) { in PutRIFFHeader()
52 const WebPPicture* const pic = enc->pic_; in PutVP8XHeader() local
59 assert(pic->width >= 1 && pic->height >= 1); in PutVP8XHeader()
60 assert(pic->width <= MAX_CANVAS_SIZE && pic->height <= MAX_CANVAS_SIZE); in PutVP8XHeader()
68 PutLE24(vp8x + CHUNK_HEADER_SIZE + 4, pic->width - 1); in PutVP8XHeader()
69 PutLE24(vp8x + CHUNK_HEADER_SIZE + 7, pic->height - 1); in PutVP8XHeader()
70 if (!pic->writer(vp8x, sizeof(vp8x), pic)) { in PutVP8XHeader()
[all …]
Dwebpenc.c288 int WebPEncodingSetError(const WebPPicture* const pic, in WebPEncodingSetError() argument
292 ((WebPPicture*)pic)->error_code = error; in WebPEncodingSetError()
296 int WebPReportProgress(const WebPPicture* const pic, in WebPReportProgress() argument
300 if (pic->progress_hook && !pic->progress_hook(percent, pic)) { in WebPReportProgress()
302 WebPEncodingSetError(pic, VP8_ENC_ERROR_USER_ABORT); in WebPReportProgress()
310 int WebPEncode(const WebPConfig* config, WebPPicture* pic) { in WebPEncode() argument
313 if (pic == NULL) in WebPEncode()
315 WebPEncodingSetError(pic, VP8_ENC_OK); // all ok so far in WebPEncode()
317 return WebPEncodingSetError(pic, VP8_ENC_ERROR_NULL_PARAMETER); in WebPEncode()
319 return WebPEncodingSetError(pic, VP8_ENC_ERROR_INVALID_CONFIGURATION); in WebPEncode()
[all …]
Diterator.c130 const WebPPicture* const pic = enc->pic_; in VP8IteratorImport() local
131 const uint8_t* const ysrc = pic->y + (y * pic->y_stride + x) * 16; in VP8IteratorImport()
132 const uint8_t* const usrc = pic->u + (y * pic->uv_stride + x) * 8; in VP8IteratorImport()
133 const uint8_t* const vsrc = pic->v + (y * pic->uv_stride + x) * 8; in VP8IteratorImport()
134 const int w = MinSize(pic->width - x * 16, 16); in VP8IteratorImport()
135 const int h = MinSize(pic->height - y * 16, 16); in VP8IteratorImport()
139 ImportBlock(ysrc, pic->y_stride, it->yuv_in_ + Y_OFF, w, h, 16); in VP8IteratorImport()
140 ImportBlock(usrc, pic->uv_stride, it->yuv_in_ + U_OFF, uv_w, uv_h, 8); in VP8IteratorImport()
141 ImportBlock(vsrc, pic->uv_stride, it->yuv_in_ + V_OFF, uv_w, uv_h, 8); in VP8IteratorImport()
152 it->y_left_[-1] = ysrc[- 1 - pic->y_stride]; in VP8IteratorImport()
[all …]
Dpicture.c234 WebPPicture pic; in Encode() local
240 !WebPPictureInit(&pic)) { in Encode()
245 pic.use_argb = !!lossless; in Encode()
246 pic.width = width; in Encode()
247 pic.height = height; in Encode()
248 pic.writer = WebPMemoryWrite; in Encode()
249 pic.custom_ptr = &wrt; in Encode()
252 ok = import(&pic, rgba, stride) && WebPEncode(&config, &pic); in Encode()
253 WebPPictureFree(&pic); in Encode()
Dvp8l.c44 static int AnalyzeAndCreatePalette(const WebPPicture* const pic, in AnalyzeAndCreatePalette() argument
52 const uint32_t* argb = pic->argb; in AnalyzeAndCreatePalette()
53 const int width = pic->width; in AnalyzeAndCreatePalette()
54 const int height = pic->height; in AnalyzeAndCreatePalette()
84 argb += pic->argb_stride; in AnalyzeAndCreatePalette()
139 const WebPPicture* const pic = enc->pic_; in AnalyzeAndInit() local
140 const int width = pic->width; in AnalyzeAndInit()
141 const int height = pic->height; in AnalyzeAndInit()
146 assert(pic != NULL && pic->argb != NULL); in AnalyzeAndInit()
149 AnalyzeAndCreatePalette(pic, enc->palette_, &enc->palette_size_); in AnalyzeAndInit()
[all …]
Dalpha.c290 const WebPPicture* const pic = enc->pic_; in EncodeAlpha() local
291 const int width = pic->width; in EncodeAlpha()
292 const int height = pic->height; in EncodeAlpha()
302 assert(enc != NULL && pic != NULL && pic->a != NULL); in EncodeAlpha()
305 assert(pic->a_stride >= width); in EncodeAlpha()
327 CopyPlane(pic->a, pic->a_stride, quant_alpha, width, width, height); in EncodeAlpha()
341 output_size, pic->stats); in EncodeAlpha()
342 if (pic->stats != NULL) { // need stats? in EncodeAlpha()
343 pic->stats->coded_size += (int)(*output_size); in EncodeAlpha()
/external/llvm/test/CodeGen/SPARC/
Dtls.ll3 ; RUN: llc <%s -march=sparc -relocation-model=pic | FileCheck %s --check-prefix=pic
4 ; RUN: llc <%s -march=sparcv9 -relocation-model=pic | FileCheck %s --check-prefix=pic
8 …lc <%s -march=sparc -relocation-model=pic -filetype=obj | llvm-readobj -r | FileCheck %s --ch…
9 …lc <%s -march=sparcv9 -relocation-model=pic -filetype=obj | llvm-readobj -r | FileCheck %s --ch…
24 ; pic-LABEL: test_tls_local
25 ; pic: or {{%[goli][0-7]}}, %lo(_GLOBAL_OFFSET_TABLE_+{{.+}}), [[PC:%[goli][0-7]]]
26 ; pic: add [[PC]], %o7, [[GOTBASE:%[goli][0-7]]]
27 ; pic-DAG: sethi %tldm_hi22(local_symbol), [[R0:%[goli][0-7]]]
28 ; pic-DAG: add [[R0]], %tldm_lo10(local_symbol), [[R1:%[goli][0-7]]]
29 ; pic-DAG: add [[GOTBASE]], [[R1]], %o0, %tldm_add(local_symbol)
[all …]
/external/libvncserver/x11vnc/misc/
Dslide.pl40 foreach $pic (@jpegs) {
41 print STDERR "loading '$pic' please wait ...\n";
42 open(JPEG, "jpegtopnm '$pic' 2>/dev/null|") || die "$!";
46 $Jpeg{$pic}{w} = $1;
47 $Jpeg{$pic}{h} = $2;
64 $Jpeg{$pic}{data} = $new;
67 if ($pic eq $jpegs[0]) {
87 my $pic = $jpegs[$i];
88 my $h = $Jpeg{$pic}{h};
89 my $w = $Jpeg{$pic}{w};
[all …]
/external/skia/tools/
Dpinspect.cpp38 SkPicture* pic = SkPicture::CreateFromStream(&stream, &sk_tools::LazyDecodeBitmap); in inspect() local
39 if (NULL == pic) { in inspect()
44 pic->cullRect().fLeft, pic->cullRect().fTop, in inspect()
45 pic->cullRect().fRight, pic->cullRect().fBottom); in inspect()
46 return pic; in inspect()
49 static void dumpOps(SkPicture* pic) { in dumpOps() argument
53 canvas.drawPicture(pic); in dumpOps()
76 SkAutoTUnref<SkPicture> pic(inspect(argv[index])); in tool_main() local
78 dumpOps(pic); in tool_main()
/external/llvm/test/CodeGen/Mips/
Dfp16instrinsmc.ll1 …el-linux-gnu -march=mipsel -mcpu=mips16 -relocation-model=pic < %s | FileCheck %s -check-prefix=pic
113 ;pic: lw ${{[0-9]+}}, %call16(sinf)(${{[0-9]+}})
114 ;pic: lw ${{[0-9]+}}, %got(__mips16_call_stub_sf_1)(${{[0-9]+}})
127 ;pic: lw ${{[0-9]+}}, %call16(sin)(${{[0-9]+}})
128 ;pic: lw ${{[0-9]+}}, %got(__mips16_call_stub_df_2)(${{[0-9]+}})
141 ;pic: lw ${{[0-9]+}}, %call16(cosf)(${{[0-9]+}})
142 ;pic: lw ${{[0-9]+}}, %got(__mips16_call_stub_sf_1)(${{[0-9]+}})
155 ;pic: lw ${{[0-9]+}}, %call16(cos)(${{[0-9]+}})
156 ;pic: lw ${{[0-9]+}}, %got(__mips16_call_stub_df_2)(${{[0-9]+}})
169 ;pic: lw ${{[0-9]+}}, %call16(sqrtf)(${{[0-9]+}})
[all …]
Dtrap1.ll1 …el-linux-gnu -march=mipsel -mcpu=mips16 -relocation-model=pic < %s | FileCheck %s -check-prefix=pic
10 ; pic: break 0
/external/skia/samplecode/
DSamplePictFile.cpp126 SkAutoTUnref<SkPicture> pic; in LoadPicture() local
136 pic.reset(recorder.endRecording()); in LoadPicture()
140 pic.reset(SkPicture::CreateFromStream(&stream)); in LoadPicture()
147 pic->playback(recorder.beginRecording(pic->cullRect().width(), in LoadPicture()
148 pic->cullRect().height(), in LoadPicture()
159 if (NULL == pic) { in LoadPicture()
167 return pic.detach(); in LoadPicture()
176 pic->playback(recorder.beginRecording(pic->cullRect().width(), in LoadPicture()
177 pic->cullRect().height(), in LoadPicture()
DSamplePdfFileViewer.cpp43 SkPicture* pic = SkNEW(SkPicture); in LoadPdf() local
44 SkCanvas* canvas = pic->beginRecording((int) renderer->MediaBox(0).width(), in LoadPdf()
47 pic->endRecording(); in LoadPdf()
48 return pic; in LoadPdf()
/external/skia/tests/
DRecordReplaceDrawTest.cpp36 SkAutoTUnref<const SkPicture> pic; in DEF_TEST() local
46 pic.reset(recorder.endRecording()); in DEF_TEST()
53 GrRecordReplaceDraw(pic, &canvas, NULL, SkMatrix::I(), &callback); in DEF_TEST()
71 SkAutoTUnref<const SkPicture> pic; in DEF_TEST() local
80 pic.reset(recorder.endRecording()); in DEF_TEST()
86 GrRecordReplaceDraw(pic, &canvas, NULL, SkMatrix::I(), NULL/*callback*/); in DEF_TEST()
94 SkAutoTUnref<const SkPicture> pic; in test_replacements() local
108 pic.reset(recorder.endRecording()); in test_replacements()
115 GrCachedLayer* layer = layerCache->findLayerOrCreate(pic->uniqueID(), 0, 2, in test_replacements()
135 GrRecordReplaceDraw(pic, &canvas, layerCache, SkMatrix::I(), NULL/*callback*/); in test_replacements()
/external/skia/tools/lua/
Dlua_pictures.cpp43 SkPicture* pic = NULL; in load_picture() local
45 pic = SkPicture::CreateFromStream(stream.get(), &sk_tools::LazyDecodeBitmap); in load_picture()
47 return pic; in load_picture()
146 SkAutoTUnref<SkPicture> pic(load_picture(path)); in tool_main() local
147 if (pic.get()) { in tool_main()
149 new SkLuaCanvas(SkScalarCeilToInt(pic->cullRect().width()), in tool_main()
150 SkScalarCeilToInt(pic->cullRect().height()), in tool_main()
154 canvas->drawPicture(pic); in tool_main()
/external/llvm/test/CodeGen/ARM/
Dfast-isel-align.ll1 ; RUN: llc < %s -O0 -fast-isel-abort=1 -relocation-model=dynamic-no-pic -mtriple=armv7-apple-ios -v…
2 ; RUN: llc < %s -O0 -fast-isel-abort=1 -relocation-model=dynamic-no-pic -mtriple=thumbv7-apple-ios …
3 ; RUN: llc < %s -O0 -arm-strict-align -relocation-model=dynamic-no-pic -mtriple=armv7-apple-ios -ve…
4 ; RUN: llc < %s -O0 -arm-strict-align -relocation-model=dynamic-no-pic -mtriple=thumbv7-apple-ios -…
6 ; RUN: llc < %s -O0 -fast-isel-abort=1 -relocation-model=dynamic-no-pic -mtriple=armv7-linux-gnueab…
7 ; RUN: llc < %s -O0 -fast-isel-abort=1 -relocation-model=dynamic-no-pic -mtriple=thumbv7-linux-gnue…
8 ; RUN: llc < %s -O0 -arm-strict-align -relocation-model=dynamic-no-pic -mtriple=armv7-linux-gnueabi…
9 ; RUN: llc < %s -O0 -arm-strict-align -relocation-model=dynamic-no-pic -mtriple=thumbv7-linux-gnuea…
11 ; RUN: llc < %s -O0 -fast-isel-abort=1 -relocation-model=dynamic-no-pic -mtriple=armv7-unknown-nacl…
12 ; RUN: llc < %s -O0 -arm-strict-align -relocation-model=dynamic-no-pic -mtriple=armv7-unknown-nacl …
[all …]
/external/skia/experimental/SimpleCocoaApp/
DSimpleApp.mm21 SkPicture* pic = NULL;
26 pic = SkNEW(SkPicture);
27 SkCanvas* can = pic->beginRecording(bm.width(), bm.height());
29 pic->endRecording();
33 pic = SkNEW_ARGS(SkPicture,
39 pic->draw(p2.beginRecording(pic->width(), pic->height()));
48 return pic;
248 SkPicture* pic = LoadPicture(path.c_str());
249 pic->draw(&canvas);
250 SkDELETE(pic);
[all …]
/external/libpng/contrib/gregbook/
DMakefile.mingw3268 ROBJSd = $(RPNG)$(O) readpng.pic$(O)
69 ROBJS2d = $(RPNG2)$(O) readpng2.pic$(O)
70 WOBJSd = $(WPNG)$(O) writepng.pic$(O)
91 %.pic$(O): %.c
121 readpng$(O) readpng.pic$(O): readpng.c readpng.h
122 readpng2$(O) readpng2.pic$(O): readpng2.c readpng2.h
123 writepng$(O) writepng.pic$(O): writepng.c writepng.h
/external/clang/test/Analysis/engine/
Dreplay-without-inlining.c37 static void readILBM(IB *st, Info *pic) { in readILBM() argument
39 pic->usedtobeundef.w = 5; in readILBM()
52 Info pic; in bitmapImageRepFromIFF() local
56 readILBM(&st,&pic); in bitmapImageRepFromIFF()
57 return pic.usedtobeundef.w; // No undefined value warning here. in bitmapImageRepFromIFF()
/external/e2fsprogs/lib/
DMakefile.bsd-lib17 @mkdir -p pic
25 (cd pic; ld -Bshareable -o $(BSD_LIB) $(LDFLAGS) $(OBJS))
26 $(MV) pic/$(BSD_LIB) .
45 $(RM) -rf pic
DMakefile.darwin-lib17 $(Q) mkdir -p pic
26 $(Q) (cd pic; $(CC) -dynamiclib -compatibility_version 1.0 -current_version $(BSDLIB_VERSION) \
28 $(Q) $(MV) pic/$(BSD_LIB) .
48 $(RM) -rf pic
/external/skia/src/svg/
Dskp2svg.cpp40 SkAutoTUnref<SkPicture> pic(SkPicture::CreateFromStream(&stream, &sk_tools::LazyDecodeBitmap)); in tool_main() local
41 if (!SkToBool(pic.get())) { in tool_main()
59 SkAutoTUnref<SkCanvas> svgCanvas(SkSVGCanvas::Create(pic->cullRect(), xmlWriter.get())); in tool_main()
61 pic->playback(svgCanvas); in tool_main()
/external/skia/src/images/
DSkImageDecoder_libwebp.cpp614 WebPPicture pic; in onEncode() local
615 WebPPictureInit(&pic); in onEncode()
616 pic.width = bm.width(); in onEncode()
617 pic.height = bm.height(); in onEncode()
618 pic.writer = stream_writer; in onEncode()
619 pic.custom_ptr = (void*)stream; in onEncode()
623 const int rgbStride = pic.width * bpp; in onEncode()
627 uint8_t* rgb = new uint8_t[rgbStride * pic.height]; in onEncode()
628 for (int y = 0; y < pic.height; ++y) { in onEncode()
630 pic.width, colors); in onEncode()
[all …]

12345678910>>...26