Home
last modified time | relevance | path

Searched refs:outWidth (Results 1 – 25 of 49) sorted by relevance

12

/external/pdfium/fxbarcode/pdf417/
DBC_PDF417Writer.cpp52 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/
DDownsampler.java38 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 …]
DBitmapTransformation.java44 … 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
DCenterCrop.java27 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()
DFitCenter.java23 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/
DBC_QRCodeWriter.cpp60 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/
DBC_DataMatrixWriter.cpp112 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/
Dcbc_datamatrix.cpp35 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()
Dcbc_qrcode.cpp41 int32_t outWidth = 0; in Encode() local
46 outWidth, outHeight)); in Encode()
49 return pWriter->RenderResult(data.get(), outWidth, outHeight); in Encode()
Dcbc_pdf417i.cpp44 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()
Dcbc_code128.cpp43 int32_t outWidth = 0; in Encode() local
54 pWriter->Encode(byteString, format, outWidth, outHeight)); in Encode()
58 outWidth); in Encode()
Dcbc_code39.cpp39 int32_t outWidth = 0; in Encode() local
47 pWriter->Encode(byteString, format, outWidth, outHeight)); in Encode()
51 outWidth); in Encode()
Dcbc_codabar.cpp55 int32_t outWidth = 0; in Encode() local
62 pWriter->Encode(byteString, format, outWidth, outHeight)); in Encode()
67 outWidth); in Encode()
Dcbc_ean13.cpp58 int32_t outWidth = 0; in Encode() local
65 pWriter->Encode(byteString, format, outWidth, outHeight)); in Encode()
69 outWidth); in Encode()
Dcbc_ean8.cpp56 int32_t outWidth = 0; in Encode() local
63 pWriter->Encode(byteString, format, outWidth, outHeight)); in Encode()
67 outWidth); in Encode()
Dcbc_upca.cpp57 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/
DGifBitmapWrapperTransformation.java30 …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/
DGifDrawableTransformation.java24 …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/
DMultiTransformation.java33 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()
DTransformation.java28 Resource<T> transform(Resource<T> resource, int outWidth, int outHeight); in transform() argument
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DBitmapFactoryTest.java35 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/
DBC_OneDimWriter.cpp95 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()
DBC_OneDimWriter.h42 int32_t& outWidth,
52 int32_t& outWidth,
DBC_OnedCodaBarWriter.cpp128 int32_t& outWidth, in EncodeWithHint() argument
133 return CBC_OneDimWriter::EncodeWithHint(contents, format, outWidth, outHeight, in EncodeWithHint()
DBC_OnedCode128Writer.cpp126 int32_t& outWidth, in EncodeWithHint() argument
131 return CBC_OneDimWriter::EncodeWithHint(contents, format, outWidth, outHeight, in EncodeWithHint()

12