Home
last modified time | relevance | path

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

12

/external/pdfium/fxbarcode/pdf417/
DBC_PDF417Writer.cpp53 int32_t& outHeight) { in Encode() argument
72 int32_t height = outHeight; in Encode()
74 outHeight = barcodeMatrix->getHeight(); in Encode()
76 if ((height > width) ^ (outWidth < outHeight)) { in Encode()
77 rotateArray(originalScale, outHeight, outWidth); in Encode()
79 int32_t temp = outHeight; in Encode()
80 outHeight = outWidth; in Encode()
84 int32_t scaleY = height / outHeight; in Encode()
90 rotateArray(originalScale, outHeight, outWidth); in Encode()
91 int32_t temp = outHeight; 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 …getRoundedSampleSize(int degreesToRotate, int inWidth, int inHeight, int outWidth, int outHeight) { 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()
47 + outHeight + " less than or equal to zero"); in transform()
50 Bitmap transformed = transform(bitmapPool, toTransform, outWidth, outHeight); in transform()
74 …tected abstract Bitmap transform(BitmapPool pool, Bitmap toTransform, int outWidth, int outHeight); 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.cpp61 int32_t& outHeight) { in Encode() argument
84 outHeight = 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.cpp113 int32_t& outHeight) { in Encode() argument
114 if (outWidth < 0 || outHeight < 0) in Encode()
145 outHeight = bytematrix->GetHeight(); 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.cpp36 int32_t outHeight = 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.cpp42 int32_t outHeight = 0; in Encode() local
46 outWidth, outHeight)); in Encode()
49 return pWriter->RenderResult(data.get(), outWidth, outHeight); in Encode()
Dcbc_pdf417i.cpp45 int32_t outHeight = 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.cpp44 int32_t outHeight = 0; in Encode() local
54 pWriter->Encode(byteString, format, outWidth, outHeight)); in Encode()
Dcbc_code39.cpp40 int32_t outHeight = 0; in Encode() local
47 pWriter->Encode(byteString, format, outWidth, outHeight)); in Encode()
Dcbc_codabar.cpp56 int32_t outHeight = 0; in Encode() local
62 pWriter->Encode(byteString, format, outWidth, outHeight)); in Encode()
Dcbc_ean13.cpp59 int32_t outHeight = 0; in Encode() local
65 pWriter->Encode(byteString, format, outWidth, outHeight)); in Encode()
Dcbc_ean8.cpp57 int32_t outHeight = 0; in Encode() local
63 pWriter->Encode(byteString, format, outWidth, outHeight)); in Encode()
Dcbc_upca.cpp58 int32_t outHeight = 0; in Encode() local
66 pWriter->Encode(byteString, format, outWidth, outHeight)); in Encode()
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/gifbitmap/
DGifBitmapWrapperTransformation.java30 …rce<GifBitmapWrapper> transform(Resource<GifBitmapWrapper> resource, int outWidth, int outHeight) { 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 …blic 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.java36 assertEquals(100, opts.outHeight); in decodeResourceWithOpts_shouldSetDescription()
76 assertEquals(456, opts.outHeight); in decodeResourceWithOpts_shouldGetWidthAndHeightFromHints()
104 assertEquals(456, options.outHeight); in decodeFileEtc_shouldSetOptionsOutWidthAndOutHeightFromHints()
/external/pdfium/fxbarcode/oned/
DBC_OneDimWriter.cpp96 int32_t& outHeight, in EncodeWithHint() argument
98 outHeight = 1; in EncodeWithHint()
105 int32_t& outHeight) { in Encode() argument
106 return EncodeWithHint(contents, format, outWidth, outHeight, 0); in Encode()
DBC_OneDimWriter.h43 int32_t& outHeight);
53 int32_t& outHeight,
DBC_OnedCodaBarWriter.cpp129 int32_t& outHeight, in EncodeWithHint() argument
133 return CBC_OneDimWriter::EncodeWithHint(contents, format, outWidth, outHeight, in EncodeWithHint()
DBC_OnedCode128Writer.cpp127 int32_t& outHeight, in EncodeWithHint() argument
131 return CBC_OneDimWriter::EncodeWithHint(contents, format, outWidth, outHeight, in EncodeWithHint()

12