Searched defs:transform (Results 1 - 25 of 64) sorted by relevance

123

/frameworks/av/camera/
H A DCameraUtils.cpp30 /*out*/int32_t* transform) {
33 if (transform == NULL) {
34 ALOGW("%s: null transform", __FUNCTION__);
38 *transform = 0;
52 int32_t& flags = *transform;
119 ALOGV("%s: final transform = 0x%x", __FUNCTION__, flags);
29 getRotationTransform(const CameraMetadata& staticInfo, int32_t* transform) argument
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DResizeFilter.java17 package androidx.media.filterpacks.transform;
H A DRotateFilter.java17 package androidx.media.filterpacks.transform;
H A DScaleFilter.java17 package androidx.media.filterpacks.transform;
H A DTransformUtils.java17 package androidx.media.filterpacks.transform;
26 /** Internal class that contains utility functions used by the transform filters. **/
H A DCropFilter.java17 package androidx.media.filterpacks.transform;
128 // Calculate transform for crop
129 Matrix transform = Quad.getTransform(sourceQuad, targetQuad);
130 transform.postScale(outDims[0] / (float)inDims[0], outDims[1] / (float)inDims[1]);
141 canvas.drawBitmap(sourceBitmap, transform, paint);
/frameworks/av/services/camera/libcameraservice/device3/
H A DCamera3DummyStream.cpp73 status_t Camera3DummyStream::setTransform(int transform) { argument
H A DCamera3OutputStream.cpp243 status_t Camera3OutputStream::setTransform(int transform) { argument
246 return setTransformLocked(transform);
249 status_t Camera3OutputStream::setTransformLocked(int transform) { argument
256 mTransform = transform;
259 transform);
261 ALOGE("%s: Unable to configure stream transform to %x: %s (%d)",
262 __FUNCTION__, transform, strerror(-res), res);
359 ALOGE("%s: Unable to configure stream transform to %x: %s (%d)",
/frameworks/base/core/java/android/hardware/camera2/utils/
H A DParamsUtils.java74 * Map the rectangle in {@code rect} with the transform in {@code transform} into
80 * @param transform a non-{@code null} transformation matrix
82 * @return a new rectangle that was transformed by {@code transform}
86 public static Rect mapRect(Matrix transform, Rect rect) { argument
87 checkNotNull(transform, "transform must not be null");
91 transform.mapRect(rectF);
/frameworks/base/include/private/hwui/
H A DDrawGlInfo.h41 // Input: current transform matrix, in OpenGL format
42 float transform[16]; member in struct:android::uirenderer::DrawGlInfo
/frameworks/base/libs/hwui/
H A DDeferredLayerUpdater.cpp81 float transform[16]; local
109 mSurfaceTexture->getTransformMatrix(transform);
113 !mBlend, forceFilter, renderTarget, transform);
H A DRenderProperties.cpp183 // only allocate a mPrimitiveFields.matrix if we have a complex transform
190 SkMatrix* transform = mComputedFields.mTransformMatrix; local
191 transform->reset();
193 transform->setTranslate(getTranslationX(), getTranslationY());
194 transform->preRotate(getRotation(), getPivotX(), getPivotY());
195 transform->preScale(getScaleX(), getScaleY(), getPivotX(), getPivotY());
199 transform->preScale(getScaleX(), getScaleY(), getPivotX(), getPivotY());
207 transform->postConcat(transform3D);
H A DDamageAccumulator.cpp40 // When this frame is pop'd, this rect is mapped through the above transform
70 LOG_ALWAYS_FATAL("Tried to compute transform with an invalid type: %d", currentFrame->type);
90 void DamageAccumulator::pushTransform(const RenderNode* transform) { argument
93 mHead->renderNode = transform;
96 void DamageAccumulator::pushTransform(const Matrix4* transform) { argument
99 mHead->matrix4 = transform;
134 const SkMatrix* transform = props.getTransformMatrix(); local
136 if (transform && !transform->isIdentity()) {
137 transform
[all...]
H A DSnapshot.h138 * transformed by the inverse transform matrix.
153 * Resets the current transform to a pure 3D translation.
183 * Indicates whether the current transform has perspective components.
230 mat4* transform; member in class:android::uirenderer::Snapshot
H A DStatefulBaseRenderer.cpp113 mSnapshot->transform->copyTo(*matrix);
117 mSnapshot->transform->translate(dx, dy, dz);
121 mSnapshot->transform->rotate(degrees, 0.0f, 0.0f, 1.0f);
125 mSnapshot->transform->scale(sx, sy, 1.0f);
129 mSnapshot->transform->skew(sx, sy);
133 mSnapshot->transform->load(matrix);
137 mSnapshot->transform->load(matrix);
141 mat4 transform(matrix);
142 mSnapshot->transform->multiply(transform);
166 SkMatrix transform; local
[all...]
H A DTessellationCache.h72 Description(Type type, const Matrix4& transform, const SkPaint& paint);
124 void precacheRoundRect(const Matrix4& transform, const SkPaint& paint, argument
126 getRoundRectBuffer(transform, paint, width, height, rx, ry);
128 const VertexBuffer* getRoundRect(const Matrix4& transform, const SkPaint& paint,
149 Buffer* getRectBuffer(const Matrix4& transform, const SkPaint& paint,
151 Buffer* getRoundRectBuffer(const Matrix4& transform, const SkPaint& paint,
/frameworks/native/include/gui/
H A DCpuConsumer.h53 uint32_t transform; member in struct:android::CpuConsumer::LockedBuffer
H A DIGraphicBufferProducer.h272 // transform - a set of flags from NATIVE_WINDOW_TRANSFORM_* in <window.h>
276 // sticky - the sticky transform set in Surface (only used by the LEGACY
279 const Rect& crop, int scalingMode, uint32_t transform, bool async,
282 scalingMode(scalingMode), transform(transform), stickyTransform(sticky),
292 *outTransform = transform;
311 uint32_t transform; member in struct:android::IGraphicBufferProducer::QueueBufferInput
322 // outTransformHint - filled with default transform applied to the buffer
278 QueueBufferInput(int64_t timestamp, bool isAutoTimestamp, const Rect& crop, int scalingMode, uint32_t transform, bool async, const sp<Fence>& fence, uint32_t sticky = 0) argument
/frameworks/native/libs/ui/
H A DRect.cpp90 Rect Rect::transform(uint32_t xform, int32_t width, int32_t height) const { function in class:android::Rect
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
H A DKeyguardWidgetCarousel.java192 private void getTransformForPage(int screenCenter, int index, float[] transform) { argument
200 transform[0] = pivotX;
201 transform[1] = pivotY;
202 transform[2] = rotationY;
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/
H A DShaderParam.java63 Transform transform) {
81 trParam.setTransform(transform);
61 fillInParams(Element constantElem, HashMap<String, ShaderParam> sourceParams, Transform transform) argument
/frameworks/base/tests/TransformTest/src/com/google/android/test/transform/
H A DTransformTestActivity.java17 package com.google.android.test.transform;
/frameworks/av/media/libstagefright/colorconversion/
H A DSoftwareRenderer.cpp170 uint32_t transform; local
172 case 0: transform = 0; break;
173 case 90: transform = HAL_TRANSFORM_ROT_90; break;
174 case 180: transform = HAL_TRANSFORM_ROT_180; break;
175 case 270: transform = HAL_TRANSFORM_ROT_270; break;
176 default: transform = 0; break;
180 mNativeWindow.get(), transform));
/frameworks/base/graphics/java/android/graphics/pdf/
H A DPdfEditor.java113 * @param pageIndex The page whose transform to set.
114 * @param transform The transformation to apply.
117 public void setTransformAndClip(int pageIndex, @Nullable Matrix transform, argument
121 throwIfNotNullAndNotAfine(transform);
122 if (transform == null) {
123 transform = Matrix.IDENTITY_MATRIX;
128 nativeSetTransformAndClip(mNativeDocument, pageIndex, transform.native_instance,
131 nativeSetTransformAndClip(mNativeDocument, pageIndex, transform.native_instance,
H A DPdfRenderer.java318 * You may optionally specify a matrix to transform the content from page coordinates
342 * @param transform Optional transformation to apply when rendering.
349 @Nullable Matrix transform, @RenderMode int renderMode) {
362 if (transform != null && !transform.isAffine()) {
363 throw new IllegalArgumentException("transform not affine");
381 final long transformPtr = (transform != null) ? transform.native_instance : 0;
348 render(@onNull Bitmap destination, @Nullable Rect destClip, @Nullable Matrix transform, @RenderMode int renderMode) argument

Completed in 270 milliseconds

123