/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
H A D | MutableFrameFormat.java | 52 public void setDimensions(int[] dimensions) { argument 53 mDimensions = (dimensions == null) ? null : Arrays.copyOf(dimensions, dimensions.length); 58 int[] dimensions = new int[1]; 59 dimensions[0] = size; 60 mDimensions = dimensions; 65 int[] dimensions = new int[2]; 66 dimensions[0] = width; 67 dimensions[ [all...] |
H A D | FrameFormat.java | 212 // Check number of dimensions 218 // Check dimensions 271 // Check number of dimensions 278 // Check dimensions 328 public static String dimensionsToString(int[] dimensions) { argument 330 if (dimensions != null) { 331 int n = dimensions.length; 333 if (dimensions[i] == SIZE_UNSPECIFIED) { 336 buffer.append("[" + String.valueOf(dimensions[i]) + "]"); 423 int calcSize(int[] dimensions) { argument [all...] |
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
H A D | FrameBuffer2D.java | 40 int[] dimensions = backingStore.getDimensions(); 41 int dimCount = dimensions != null ? dimensions.length : 0;
|
H A D | TransformUtils.java | 41 public static FrameImage2D makeMipMappedFrame(FrameImage2D current, int[] dimensions) { argument 44 int[] pow2Dims = new int[] { powOf2(dimensions[0]), powOf2(dimensions[1]) }; 49 } else if (!Arrays.equals(dimensions, current.getDimensions())) { 55 public static FrameImage2D makeTempFrame(FrameImage2D current, int[] dimensions) { argument 59 current = Frame.create(imageType, dimensions).asFrameImage2D(); 60 } else if (!Arrays.equals(dimensions, current.getDimensions())) { 61 current.resize(dimensions);
|
H A D | FrameQueue.java | 81 public Frame fetchAvailableFrame(int[] dimensions); argument 116 public Frame fetchAvailableFrame(int[] dimensions) { argument 120 return new Frame(mType, dimensions, manager); 158 public Frame fetchAvailableFrame(int[] dimensions) { argument 159 return mQueueImpl.fetchAvailableFrame(dimensions);
|
H A D | FrameType.java | 26 * A FrameType generally consists of an element type and number of dimensions. The currently 59 * <li>The dimensions must match (except for singles and arrays, see below).</li> 80 * type must have its element and dimensions specified. This ensures that filters that need to 261 * Returns the number of dimensions of the FrameType or -1 if no dimensions were set. 262 * @return The number of dimensions of the FrameType. 271 * A FrameType is fully specified if its element and dimensions are specified. 337 int dimensions = Math.max(writer.mDimensions, reader.mDimensions); 340 return success ? FrameType.fetchType(mergedClass, dimensions) : null; 404 private static FrameType fetchType(int elementId, int dimensions, in argument 408 fetchType(Class<?> clazz, int dimensions) argument 412 fetchType( int elementId, int dimensions, int accessHints, Class<?> clazz) argument 423 FrameType(int elementId, int dimensions, int accessHints, Class<?> clazz) argument [all...] |
H A D | Frame.java | 136 public static Frame create(FrameType type, int[] dimensions) { argument 142 return new Frame(type, dimensions, manager); 166 Frame(FrameType type, int[] dimensions, FrameManager manager) { argument 167 mBackingStore = new BackingStore(type, dimensions, manager);
|
H A D | FrameBuffer1D.java | 91 throw new RuntimeException("Cannot access Frame with no dimensions as a FrameBuffer " 96 void updateLength(int[] dimensions) { argument 98 for (int dim : dimensions) {
|
H A D | FrameImage2D.java | 136 private void validateBitmapSize(Bitmap bitmap, int[] dimensions) { argument 137 if (bitmap.getWidth() != dimensions[0] || bitmap.getHeight() != dimensions[1]) { 139 + "x" + bitmap.getHeight() + " to frame of size " + dimensions[0] + "x" 140 + dimensions[1] + "!"); 159 // Convert rectangles to integer rectangles in image dimensions
|
H A D | OutputPort.java | 67 * @param dimensions the size of the Frame you wish to obtain. 70 public Frame fetchAvailableFrame(int[] dimensions) { argument 71 Frame frame = getQueue().fetchAvailableFrame(dimensions);
|
H A D | FrameManager.java | 115 public abstract Backing fetchBacking(int mode, int access, int[] dimensions, int elemSize); argument 135 public Backing fetchBacking(int mode, int access, int[] dimensions, int elemSize) { argument 173 public Backing fetchBacking(int mode, int access, int[] dimensions, int elemSize) { argument 179 && dimensionsCompatible(backing.getDimensions(), dimensions) 187 //Log.w("FrameManager", "Could not find backing for dimensions " + Arrays.toString(dimensions)); 409 Backing fetchBacking(int mode, int access, int[] dimensions, int elemSize) { argument 410 return mCache.fetchBacking(mode, access, dimensions, elemSize);
|
H A D | BackingStore.java | 74 public BackingStore(FrameType type, int[] dimensions, FrameManager frameManager) { argument 76 mDimensions = dimensions != null ? Arrays.copyOf(dimensions, dimensions.length) : null; 368 public void setDimensions(int[] dimensions) { argument 369 mDimensions = dimensions; 923 "Cannot create an allocation with more than 2 dimensions!");
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | RoundRectangle.java | 64 assert cornerDimensions.length == 8 : "The array of corner dimensions must have eight " + 72 float[] dimensions = cornerDimensions.clone(); 74 for (int i = 0; i < dimensions.length; i += 2) { 75 if (dimensions[i] < 0 || dimensions[i + 1] < 0) { 76 dimensions[i] = 0; 77 dimensions[i + 1] = 0; 81 double topCornerWidth = (dimensions[0] + dimensions[2]) / 2d; 82 double bottomCornerWidth = (dimensions[ [all...] |
/frameworks/native/cmds/surfacereplayer/replayer/ |
H A D | BufferQueueScheduler.h | 47 BufferEvent(std::shared_ptr<Event> e, Dimensions d) : event(e), dimensions(d) {} 50 Dimensions dimensions; member in struct:android::BufferEvent 64 void bufferUpdate(const Dimensions& dimensions);
|
H A D | BufferQueueScheduler.cpp | 45 bufferUpdate(event.dimensions); 75 void BufferQueueScheduler::bufferUpdate(const Dimensions& dimensions) { argument 77 s->setBuffersDimensions(dimensions.width, dimensions.height);
|
H A D | Replayer.cpp | 297 Dimensions dimensions(increment.buffer_update().w(), increment.buffer_update().h()); 298 BufferEvent bufferEvent(event, dimensions);
|
/frameworks/rs/tests/java_api/RsCameraDemo/src/com/android/example/rscamera/ |
H A D | ViewfinderProcessor.java | 43 public ViewfinderProcessor(RenderScript rs, Size dimensions) { argument 45 yuvTypeBuilder.setX(dimensions.getWidth()); 46 yuvTypeBuilder.setY(dimensions.getHeight()); 53 rgbTypeBuilder.setX(dimensions.getWidth()); 54 rgbTypeBuilder.setY(dimensions.getHeight());
|
/frameworks/base/core/java/android/hardware/camera2/params/ |
H A D | MeteringRectangle.java | 106 * @param dimensions a non-{@code null} {@link android.util.Size Size} with width, height >= 0 112 public MeteringRectangle(Point xy, Size dimensions, int meteringWeight) { argument 114 checkNotNull(dimensions, "dimensions must not be null"); 118 mWidth = checkArgumentNonnegative(dimensions.getWidth(), "width must be nonnegative"); 119 mHeight = checkArgumentNonnegative(dimensions.getHeight(), "height must be nonnegative"); 128 * @param rect a non-{@code null} rectangle with all x,y,w,h dimensions >= 0
|
/frameworks/rs/tests/java_api/CannyLive/src/com/android/example/cannylive/ |
H A D | ViewfinderProcessor.java | 61 public ViewfinderProcessor(RenderScript rs, Size dimensions) { argument 64 yuvTypeBuilder.setX(dimensions.getWidth()); 65 yuvTypeBuilder.setY(dimensions.getHeight()); 67 Log.d(TAG, ">>>>>>>>>>>> " + dimensions.getWidth() + "x" + dimensions.getHeight()); 72 rgbTypeBuilder.setX(dimensions.getWidth()); 73 rgbTypeBuilder.setY(dimensions.getHeight()); 78 buffTypeBuilder.setX(dimensions.getWidth()); 79 buffTypeBuilder.setY(dimensions.getHeight());
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/ |
H A D | MffFilterTestCase.java | 132 protected Frame createFrame(FrameType type, int[] dimensions) { argument 133 return new Frame(type, dimensions, mRunner.getFrameManager());
|
/frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/ |
H A D | TestDelegates.java | 195 int dimensions = 0; 197 dimensions++; 201 for (int i = 0; i < dimensions; i++) {
|
/frameworks/base/libs/hwui/ |
H A D | SkiaCanvasProxy.cpp | 122 if (hwuiBitmap && bitmap.dimensions() != hwuiBitmap->info().dimensions()) { 125 origin.fX + bitmap.dimensions().width(), 126 origin.fY + bitmap.dimensions().height(), 128 left + bitmap.dimensions().width(), 129 top + bitmap.dimensions().height(),
|
/frameworks/rs/script_api/ |
H A D | rs_for_each.spec | 23 an executing kernel, like dimensions and current indices. These functions take 51 over, like dimensions. It also contains rarely used indices of the currently processed 108 and the output allocation if it exists, must have the same dimensions. 247 // The current index in the common x, y, z dimensions are accessed by<br/> 249 // to the other dimensions, extract them from the kernel context:<br/>
|
/frameworks/native/services/vr/bufferhubd/ |
H A D | buffer_hub.cpp | 74 std::string dimensions = std::to_string(info.width) + "x" + local 77 stream << std::setw(14) << dimensions; 121 std::string dimensions = std::to_string(info.width) + "x" + local 124 stream << std::setw(14) << dimensions;
|
/frameworks/base/libs/hwui/pipeline/skia/ |
H A D | RenderNodeDrawable.cpp | 104 SkRect dimensions = SkRect::MakeWH(renderNode->getWidth(), renderNode->getHeight()); local 105 canvas->drawAnnotation(dimensions, renderNode->getName(), nullptr);
|