/external/pdfium/fxbarcode/pdf417/ |
D | BC_PDF417Writer.cpp | 52 int32_t& outWidth, in Encode() argument 71 int32_t width = outWidth; in Encode() 73 outWidth = barcodeMatrix->getWidth(); in Encode() 76 if ((height > width) ^ (outWidth < outHeight)) { in Encode() 77 rotateArray(originalScale, outHeight, outWidth); in Encode() 80 outHeight = outWidth; in Encode() 81 outWidth = temp; in Encode() 83 int32_t scaleX = width / outWidth; in Encode() 90 rotateArray(originalScale, outHeight, outWidth); in Encode() 92 outHeight = outWidth; in Encode() [all …]
|
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/ |
D | Downsampler.java | 38 protected int getSampleSize(int inWidth, int inHeight, int outWidth, int outHeight) { 39 return Math.min(inHeight / outHeight, inWidth / outWidth); 55 protected int getSampleSize(int inWidth, int inHeight, int outWidth, int outHeight) { 56 return Math.max(inHeight / outHeight, inWidth / outWidth); 70 protected int getSampleSize(int inWidth, int inHeight, int outWidth, int outHeight) { 103 …public Bitmap decode(InputStream is, BitmapPool pool, int outWidth, int outHeight, DecodeFormat de… in decode() argument 138 …nal int sampleSize = getRoundedSampleSize(degreesToRotate, inWidth, inHeight, outWidth, outHeight); in decode() 170 …private int getRoundedSampleSize(int degreesToRotate, int inWidth, int inHeight, int outWidth, int… in getRoundedSampleSize() argument 175 exactSampleSize = getSampleSize(inHeight, inWidth, outWidth, outHeight); in getRoundedSampleSize() 177 exactSampleSize = getSampleSize(inWidth, inHeight, outWidth, outHeight); in getRoundedSampleSize() [all …]
|
D | BitmapTransformation.java | 44 … public final Resource<Bitmap> transform(Resource<Bitmap> resource, int outWidth, int outHeight) { in transform() argument 45 if (outWidth <= 0 || outHeight <= 0) { in transform() 46 …throw new IllegalArgumentException("Cannot apply transformation on width: " + outWidth + " or heig… in transform() 50 Bitmap transformed = transform(bitmapPool, toTransform, outWidth, outHeight); in transform() 74 …protected abstract Bitmap transform(BitmapPool pool, Bitmap toTransform, int outWidth, int outHeig… in transform() argument
|
D | CenterCrop.java | 27 protected Bitmap transform(BitmapPool pool, Bitmap toTransform, int outWidth, int outHeight) { in transform() argument 28 final Bitmap toReuse = pool.get(outWidth, outHeight, toTransform.getConfig() != null in transform() 30 … Bitmap transformed = TransformationUtils.centerCrop(toReuse, toTransform, outWidth, outHeight); in transform()
|
D | FitCenter.java | 23 protected Bitmap transform(BitmapPool pool, Bitmap toTransform, int outWidth, int outHeight) { in transform() argument 24 return TransformationUtils.fitCenter(toTransform, pool, outWidth, outHeight); in transform()
|
/external/pdfium/fxbarcode/qrcode/ |
D | BC_QRCodeWriter.cpp | 60 int32_t& outWidth, in Encode() argument 83 outWidth = qr.GetMatrixWidth(); in Encode() 85 uint8_t* result = FX_Alloc2D(uint8_t, outWidth, outHeight); in Encode() 86 memcpy(result, qr.GetMatrix()->GetArray(), outWidth * outHeight); in Encode()
|
/external/pdfium/fxbarcode/datamatrix/ |
D | BC_DataMatrixWriter.cpp | 112 int32_t& outWidth, in Encode() argument 114 if (outWidth < 0 || outHeight < 0) in Encode() 144 outWidth = bytematrix->GetWidth(); in Encode() 146 uint8_t* result = FX_Alloc2D(uint8_t, outWidth, outHeight); in Encode() 147 memcpy(result, bytematrix->GetArray(), outWidth * outHeight); in Encode()
|
/external/pdfium/fxbarcode/ |
D | cbc_datamatrix.cpp | 35 int32_t outWidth = 0; in Encode() local 39 pWriter->Encode(WideString(contents), outWidth, outHeight)); in Encode() 42 return pWriter->RenderResult(data.get(), outWidth, outHeight); in Encode()
|
D | cbc_qrcode.cpp | 41 int32_t outWidth = 0; in Encode() local 46 outWidth, outHeight)); in Encode() 49 return pWriter->RenderResult(data.get(), outWidth, outHeight); in Encode()
|
D | cbc_pdf417i.cpp | 44 int32_t outWidth = 0; in Encode() local 48 pWriter->Encode(WideString(contents), outWidth, outHeight)); in Encode() 51 return pWriter->RenderResult(data.get(), outWidth, outHeight); in Encode()
|
D | cbc_code128.cpp | 43 int32_t outWidth = 0; in Encode() local 54 pWriter->Encode(byteString, format, outWidth, outHeight)); in Encode() 58 outWidth); in Encode()
|
D | cbc_code39.cpp | 39 int32_t outWidth = 0; in Encode() local 47 pWriter->Encode(byteString, format, outWidth, outHeight)); in Encode() 51 outWidth); in Encode()
|
D | cbc_codabar.cpp | 55 int32_t outWidth = 0; in Encode() local 62 pWriter->Encode(byteString, format, outWidth, outHeight)); in Encode() 67 outWidth); in Encode()
|
D | cbc_ean13.cpp | 58 int32_t outWidth = 0; in Encode() local 65 pWriter->Encode(byteString, format, outWidth, outHeight)); in Encode() 69 outWidth); in Encode()
|
D | cbc_ean8.cpp | 56 int32_t outWidth = 0; in Encode() local 63 pWriter->Encode(byteString, format, outWidth, outHeight)); in Encode() 67 outWidth); in Encode()
|
D | cbc_upca.cpp | 57 int32_t outWidth = 0; in Encode() local 66 pWriter->Encode(byteString, format, outWidth, outHeight)); in Encode() 70 outWidth); in Encode()
|
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/gifbitmap/ |
D | GifBitmapWrapperTransformation.java | 30 …public Resource<GifBitmapWrapper> transform(Resource<GifBitmapWrapper> resource, int outWidth, int… in transform() argument 34 …Resource<Bitmap> transformed = bitmapTransformation.transform(bitmapResource, outWidth, outHeight); in transform() 40 …ource<GifDrawable> transformed = gifDataTransformation.transform(gifResource, outWidth, outHeight); in transform()
|
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/gif/ |
D | GifDrawableTransformation.java | 24 …public Resource<GifDrawable> transform(Resource<GifDrawable> resource, int outWidth, int outHeight… in transform() argument 33 Resource<Bitmap> transformed = wrapped.transform(bitmapResource, outWidth, outHeight); in transform()
|
/external/glide/library/src/main/java/com/bumptech/glide/load/ |
D | MultiTransformation.java | 33 public Resource<T> transform(Resource<T> resource, int outWidth, int outHeight) { in transform() argument 37 Resource<T> transformed = transformation.transform(previous, outWidth, outHeight); in transform()
|
D | Transformation.java | 28 Resource<T> transform(Resource<T> resource, int outWidth, int outHeight); in transform() argument
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
D | BitmapFactoryTest.java | 35 assertEquals(100, opts.outWidth); in decodeResourceWithOpts_shouldSetDescription() 75 assertEquals(123, opts.outWidth); in decodeResourceWithOpts_shouldGetWidthAndHeightFromHints() 103 assertEquals(123, options.outWidth); in decodeFileEtc_shouldSetOptionsOutWidthAndOutHeightFromHints()
|
/external/pdfium/fxbarcode/oned/ |
D | BC_OneDimWriter.cpp | 95 int32_t& outWidth, in EncodeWithHint() argument 99 return EncodeImpl(contents, outWidth); in EncodeWithHint() 104 int32_t& outWidth, in Encode() argument 106 return EncodeWithHint(contents, format, outWidth, outHeight, 0); in Encode()
|
D | BC_OneDimWriter.h | 42 int32_t& outWidth, 52 int32_t& outWidth,
|
D | BC_OnedCodaBarWriter.cpp | 128 int32_t& outWidth, in EncodeWithHint() argument 133 return CBC_OneDimWriter::EncodeWithHint(contents, format, outWidth, outHeight, in EncodeWithHint()
|
D | BC_OnedCode128Writer.cpp | 126 int32_t& outWidth, in EncodeWithHint() argument 131 return CBC_OneDimWriter::EncodeWithHint(contents, format, outWidth, outHeight, in EncodeWithHint()
|