/external/webp/src/enc/ |
D | picture_tools.c | 70 void WebPCleanupTransparentArea(WebPPicture* pic) { in WebPCleanupTransparentArea() argument 72 if (pic == NULL) return; in WebPCleanupTransparentArea() 73 w = pic->width / SIZE; in WebPCleanupTransparentArea() 74 h = pic->height / SIZE; in WebPCleanupTransparentArea() 77 if (pic->use_argb) { in WebPCleanupTransparentArea() 82 const int off = (y * pic->argb_stride + x) * SIZE; in WebPCleanupTransparentArea() 83 if (is_transparent_argb_area(pic->argb + off, pic->argb_stride, SIZE)) { in WebPCleanupTransparentArea() 85 argb_value = pic->argb[off]; in WebPCleanupTransparentArea() 88 flatten_argb(pic->argb + off, argb_value, pic->argb_stride, SIZE); in WebPCleanupTransparentArea() 95 const uint8_t* const a_ptr = pic->a; in WebPCleanupTransparentArea() [all …]
|
D | picture_rescale.c | 35 static void SnapTopLeftPosition(const WebPPicture* const pic, in SnapTopLeftPosition() argument 37 if (!pic->use_argb) { in SnapTopLeftPosition() 44 static int AdjustAndCheckRectangle(const WebPPicture* const pic, in AdjustAndCheckRectangle() argument 47 SnapTopLeftPosition(pic, left, top); in AdjustAndCheckRectangle() 50 if ((*left) + width > pic->width) return 0; in AdjustAndCheckRectangle() 51 if ((*top) + height > pic->height) return 0; in AdjustAndCheckRectangle() 122 int WebPPictureCrop(WebPPicture* pic, in WebPPictureCrop() argument 126 if (pic == NULL) return 0; in WebPPictureCrop() 127 if (!AdjustAndCheckRectangle(pic, &left, &top, width, height)) return 0; in WebPPictureCrop() 129 PictureGrabSpecs(pic, &tmp); in WebPPictureCrop() [all …]
|
D | syntax.c | 29 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 …]
|
D | webpenc.c | 290 int WebPEncodingSetError(const WebPPicture* const pic, in WebPEncodingSetError() argument 294 ((WebPPicture*)pic)->error_code = error; in WebPEncodingSetError() 298 int WebPReportProgress(const WebPPicture* const pic, in WebPReportProgress() argument 302 if (pic->progress_hook && !pic->progress_hook(percent, pic)) { in WebPReportProgress() 304 WebPEncodingSetError(pic, VP8_ENC_ERROR_USER_ABORT); in WebPReportProgress() 312 int WebPEncode(const WebPConfig* config, WebPPicture* pic) { in WebPEncode() argument 315 if (pic == NULL) in WebPEncode() 317 WebPEncodingSetError(pic, VP8_ENC_OK); // all ok so far in WebPEncode() 319 return WebPEncodingSetError(pic, VP8_ENC_ERROR_NULL_PARAMETER); in WebPEncode() 321 return WebPEncodingSetError(pic, VP8_ENC_ERROR_INVALID_CONFIGURATION); in WebPEncode() [all …]
|
D | iterator.c | 130 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_ENC, w, h, 16); in VP8IteratorImport() 140 ImportBlock(usrc, pic->uv_stride, it->yuv_in_ + U_OFF_ENC, uv_w, uv_h, 8); in VP8IteratorImport() 141 ImportBlock(vsrc, pic->uv_stride, it->yuv_in_ + V_OFF_ENC, uv_w, uv_h, 8); in VP8IteratorImport() 152 it->y_left_[-1] = ysrc[- 1 - pic->y_stride]; in VP8IteratorImport() [all …]
|
D | picture.c | 235 WebPPicture pic; in Encode() local 241 !WebPPictureInit(&pic)) { in Encode() 246 pic.use_argb = !!lossless; in Encode() 247 pic.width = width; in Encode() 248 pic.height = height; in Encode() 249 pic.writer = WebPMemoryWrite; in Encode() 250 pic.custom_ptr = &wrt; in Encode() 253 ok = import(&pic, rgba, stride) && WebPEncode(&config, &pic); in Encode() 254 WebPPictureFree(&pic); in Encode()
|
/external/opencv3/3rdparty/libwebp/enc/ |
D | syntax.c | 33 static int PutPaddingByte(const WebPPicture* const pic) { in PutPaddingByte() argument 35 return !!pic->writer(pad_byte, 1, pic); in PutPaddingByte() 43 const WebPPicture* const pic = enc->pic_; in PutRIFFHeader() local 49 if (!pic->writer(riff, sizeof(riff), pic)) { in PutRIFFHeader() 56 const WebPPicture* const pic = enc->pic_; in PutVP8XHeader() local 63 assert(pic->width >= 1 && pic->height >= 1); in PutVP8XHeader() 64 assert(pic->width <= MAX_CANVAS_SIZE && pic->height <= MAX_CANVAS_SIZE); in PutVP8XHeader() 72 PutLE24(vp8x + CHUNK_HEADER_SIZE + 4, pic->width - 1); in PutVP8XHeader() 73 PutLE24(vp8x + CHUNK_HEADER_SIZE + 7, pic->height - 1); in PutVP8XHeader() 74 if (!pic->writer(vp8x, sizeof(vp8x), pic)) { in PutVP8XHeader() [all …]
|
D | picture.c | 209 static void SnapTopLeftPosition(const WebPPicture* const pic, in SnapTopLeftPosition() argument 211 if (!pic->use_argb) { in SnapTopLeftPosition() 212 const int is_yuv422 = IS_YUV_CSP(pic->colorspace, WEBP_YUV422); in SnapTopLeftPosition() 213 if (IS_YUV_CSP(pic->colorspace, WEBP_YUV420) || is_yuv422) { in SnapTopLeftPosition() 221 static int AdjustAndCheckRectangle(const WebPPicture* const pic, in AdjustAndCheckRectangle() argument 224 SnapTopLeftPosition(pic, left, top); in AdjustAndCheckRectangle() 227 if ((*left) + width > pic->width) return 0; in AdjustAndCheckRectangle() 228 if ((*top) + height > pic->height) return 0; in AdjustAndCheckRectangle() 320 int WebPPictureCrop(WebPPicture* pic, in WebPPictureCrop() argument 324 if (pic == NULL) return 0; in WebPPictureCrop() [all …]
|
D | webpenc.c | 337 int WebPEncodingSetError(const WebPPicture* const pic, in WebPEncodingSetError() argument 341 ((WebPPicture*)pic)->error_code = error; in WebPEncodingSetError() 345 int WebPReportProgress(const WebPPicture* const pic, in WebPReportProgress() argument 349 if (pic->progress_hook && !pic->progress_hook(percent, pic)) { in WebPReportProgress() 351 WebPEncodingSetError(pic, VP8_ENC_ERROR_USER_ABORT); in WebPReportProgress() 359 int WebPEncode(const WebPConfig* config, WebPPicture* pic) { in WebPEncode() argument 362 if (pic == NULL) in WebPEncode() 364 WebPEncodingSetError(pic, VP8_ENC_OK); // all ok so far in WebPEncode() 366 return WebPEncodingSetError(pic, VP8_ENC_ERROR_NULL_PARAMETER); in WebPEncode() 368 return WebPEncodingSetError(pic, VP8_ENC_ERROR_INVALID_CONFIGURATION); in WebPEncode() [all …]
|
D | iterator.c | 109 const WebPPicture* const pic = enc->pic_; in VP8IteratorImport() local 110 const uint8_t* const ysrc = pic->y + (y * pic->y_stride + x) * 16; in VP8IteratorImport() 111 const uint8_t* const usrc = pic->u + (y * pic->uv_stride + x) * 8; in VP8IteratorImport() 112 const uint8_t* const vsrc = pic->v + (y * pic->uv_stride + x) * 8; in VP8IteratorImport() 116 int w = (pic->width - x * 16); in VP8IteratorImport() 117 int h = (pic->height - y * 16); in VP8IteratorImport() 123 ImportBlock(ysrc, pic->y_stride, ydst, w, h, 16); in VP8IteratorImport() 128 ImportBlock(usrc, pic->uv_stride, udst, uv_w, uv_h, 8); in VP8IteratorImport() 129 ImportBlock(vsrc, pic->uv_stride, vdst, uv_w, uv_h, 8); in VP8IteratorImport() 152 const WebPPicture* const pic = enc->pic_; in VP8IteratorExport() local [all …]
|
D | alpha.c | 184 const WebPPicture* const pic = enc->pic_; in EncodeAlpha() local 185 const int width = pic->width; in EncodeAlpha() 186 const int height = pic->height; in EncodeAlpha() 196 assert(enc != NULL && pic != NULL && pic->a != NULL); in EncodeAlpha() 199 assert(pic->a_stride >= width); in EncodeAlpha() 216 CopyPlane(pic->a, pic->a_stride, quant_alpha, width, width, height); in EncodeAlpha() 251 effort_level, NULL, &bw, pic->stats); in EncodeAlpha() 277 if (pic->stats != NULL) best_stats = *pic->stats; in EncodeAlpha() 289 pic->stats); in EncodeAlpha() 298 if (pic->stats != NULL) best_stats = *pic->stats; in EncodeAlpha() [all …]
|
D | vp8l.c | 48 static int AnalyzeAndCreatePalette(const WebPPicture* const pic, in AnalyzeAndCreatePalette() argument 56 const uint32_t* argb = pic->argb; in AnalyzeAndCreatePalette() 57 const int width = pic->width; in AnalyzeAndCreatePalette() 58 const int height = pic->height; in AnalyzeAndCreatePalette() 88 argb += pic->argb_stride; in AnalyzeAndCreatePalette() 147 const WebPPicture* const pic = enc->pic_; in VP8LEncAnalyze() local 148 assert(pic != NULL && pic->argb != NULL); in VP8LEncAnalyze() 151 AnalyzeAndCreatePalette(pic, enc->palette_, &enc->palette_size_); in VP8LEncAnalyze() 165 if (!AnalyzeEntropy(pic->argb, pic->width, pic->height, pic->argb_stride, in VP8LEncAnalyze() 722 static WebPEncodingError WriteRiffHeader(const WebPPicture* const pic, in WriteRiffHeader() argument [all …]
|
/external/llvm/test/CodeGen/SPARC/ |
D | tls.ll | 3 ; 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/skia/tools/ |
D | pinspect.cpp | 37 SkPicture* pic = SkPicture::CreateFromStream(&stream); in inspect() local 38 if (nullptr == pic) { in inspect() 43 pic->cullRect().fLeft, pic->cullRect().fTop, in inspect() 44 pic->cullRect().fRight, pic->cullRect().fBottom); in inspect() 45 return pic; in inspect() 48 static void dumpOps(SkPicture* pic) { in dumpOps() argument 52 canvas.drawPicture(pic); in dumpOps() 75 SkAutoTUnref<SkPicture> pic(inspect(argv[index])); in tool_main() local 77 dumpOps(pic); in tool_main()
|
/external/llvm/test/CodeGen/Mips/ |
D | fp16instrinsmc.ll | 1 …l-linux-gnu -march=mipsel -mattr=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 …]
|
/external/llvm/test/CodeGen/Mips/Fast-ISel/ |
D | check-disabled-mcpus.ll | 1 ; RUN: llc -march=mips -mcpu=mips2 -O0 -relocation-model=pic \ 3 ; RUN: llc -march=mips -mcpu=mips3 -O0 -relocation-model=pic \ 5 ; RUN: llc -march=mips -mcpu=mips4 -O0 -relocation-model=pic \ 8 ; RUN: llc -march=mips -mcpu=mips32r6 -O0 -relocation-model=pic \ 11 ; RUN: llc -march=mips -mcpu=mips64 -O0 -relocation-model=pic \ 13 ; RUN: llc -march=mips -mcpu=mips64r2 -O0 -relocation-model=pic \ 15 ; RUN: llc -march=mips -mcpu=mips64r3 -O0 -relocation-model=pic \ 17 ; RUN: llc -march=mips -mcpu=mips64r5 -O0 -relocation-model=pic \ 19 ; RUN: llc -march=mips -mcpu=mips32r6 -O0 -relocation-model=pic \
|
/external/skia/samplecode/ |
D | SamplePictFile.cpp | 154 SkAutoTUnref<SkPicture> pic; in LoadPicture() local 164 pic.reset(recorder.endRecording()); in LoadPicture() 168 pic.reset(SkPicture::CreateFromStream(&stream)); in LoadPicture() 175 pic->playback(recorder.beginRecording(pic->cullRect().width(), in LoadPicture() 176 pic->cullRect().height(), in LoadPicture() 187 if (nullptr == pic) { in LoadPicture() 195 return pic.detach(); in LoadPicture() 204 pic->playback(recorder.beginRecording(pic->cullRect().width(), in LoadPicture() 205 pic->cullRect().height(), in LoadPicture()
|
/external/skia/tests/ |
D | RecordReplaceDrawTest.cpp | 36 SkAutoTUnref<const SkPicture> pic; in DEF_TEST() local 46 pic.reset(recorder.endRecording()); in DEF_TEST() 53 GrRecordReplaceDraw(pic, &canvas, nullptr, 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, nullptr, SkMatrix::I(), nullptr/*callback*/); in DEF_TEST() 94 SkAutoTUnref<const SkPicture> pic; in test_replacements() local 105 pic.reset(recorder.endRecording()); in test_replacements() 115 GrCachedLayer* layer = layerCache->findLayerOrCreate(pic->uniqueID(), 0, 2, in test_replacements() 134 GrRecordReplaceDraw(pic, &canvas, layerCache, SkMatrix::I(), nullptr/*callback*/); in test_replacements()
|
/external/skia/gm/ |
D | image_shader.cpp | 29 static SkImage* make_raster(GrContext*, const SkPicture* pic, const SkImageInfo& info) { in make_raster() argument 32 surface->getCanvas()->drawPicture(pic); in make_raster() 36 static SkImage* make_texture(GrContext* ctx, const SkPicture* pic, const SkImageInfo& info) { in make_texture() argument 43 surface->getCanvas()->drawPicture(pic); in make_texture() 47 static SkImage* make_pict_gen(GrContext*, const SkPicture* pic, const SkImageInfo& info) { in make_pict_gen() argument 48 return SkImage::NewFromPicture(pic, info.dimensions(), nullptr, nullptr); in make_pict_gen() 51 static SkImage* make_encode_gen(GrContext* ctx, const SkPicture* pic, const SkImageInfo& info) { in make_encode_gen() argument 52 SkAutoTUnref<SkImage> src(make_raster(ctx, pic, info)); in make_encode_gen()
|
/external/skia/tools/lua/ |
D | lua_pictures.cpp | 44 SkPicture* pic = nullptr; in load_picture() local 46 pic = SkPicture::CreateFromStream(stream.get()); in load_picture() 48 return pic; in load_picture() 147 SkAutoTUnref<SkPicture> pic(load_picture(path)); in tool_main() local 148 if (pic.get()) { in tool_main() 150 new SkLuaCanvas(SkScalarCeilToInt(pic->cullRect().width()), in tool_main() 151 SkScalarCeilToInt(pic->cullRect().height()), in tool_main() 155 canvas->drawPicture(pic); in tool_main()
|
/external/llvm/test/CodeGen/ARM/ |
D | fast-isel-align.ll | 1 ; 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 -mattr=+strict-align -relocation-model=dynamic-no-pic -mtriple=armv7-apple-ios … 4 ; RUN: llc < %s -O0 -mattr=+strict-align -relocation-model=dynamic-no-pic -mtriple=thumbv7-apple-io… 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 -mattr=+strict-align -relocation-model=dynamic-no-pic -mtriple=armv7-linux-gnue… 9 ; RUN: llc < %s -O0 -mattr=+strict-align -relocation-model=dynamic-no-pic -mtriple=thumbv7-linux-gn… 11 ; RUN: llc < %s -O0 -fast-isel-abort=1 -relocation-model=dynamic-no-pic -mtriple=armv7-unknown-nacl… 12 ; RUN: llc < %s -O0 -mattr=+strict-align -relocation-model=dynamic-no-pic -mtriple=armv7-unknown-na… [all …]
|
/external/skia/experimental/SimpleCocoaApp/ |
D | SimpleApp.mm | 27 SkPicture* pic = NULL; 32 pic = new SkPicture; 33 SkCanvas* can = pic->beginRecording(bm.width(), bm.height()); 35 pic->endRecording(); 39 pic = new SkPicture(&stream, NULL, &SkImageDecoder::DecodeStream); 44 pic->draw(p2.beginRecording(pic->width(), pic->height())); 53 return pic; 253 SkPicture* pic = LoadPicture(path.c_str()); 254 pic->draw(&canvas); 255 delete pic; [all …]
|
/external/libpng/contrib/gregbook/ |
D | Makefile.mingw32 | 68 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/ |
D | replay-without-inlining.c | 37 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/ |
D | Makefile.bsd-lib | 17 @mkdir -p pic 25 (cd pic; ld -Bshareable -o $(BSD_LIB) $(LDFLAGS) $(OBJS)) 26 $(MV) pic/$(BSD_LIB) . 45 $(RM) -rf pic
|