/packages/apps/Camera2/src/com/android/camera/settings/ |
ResolutionUtil.java | 48 * It allows you to specify which aspect ratios to offer the user, and then 54 * Different aspect ratio constants. 65 * These are the preferred aspect ratios for the settings. We will take HAL 66 * supported aspect ratios that are within ASPECT_RATIO_TOLERANCE of these values. 78 * A resolution bucket holds a list of sizes that are of a given aspect 120 * aspect ratio. The aspect ratios returned include the ones in 123 * aspect ratios from above; 127 * @return The list of sizes to display grouped first by aspect ratio 128 * (sorted by maximum area), and sorted within aspect ratio by area [all...] |
/external/flac/libFLAC/include/private/ |
ogg_decoder_aspect.h | 58 void FLAC__ogg_decoder_aspect_set_serial_number(FLAC__OggDecoderAspect *aspect, long value); 59 void FLAC__ogg_decoder_aspect_set_defaults(FLAC__OggDecoderAspect *aspect); 60 FLAC__bool FLAC__ogg_decoder_aspect_init(FLAC__OggDecoderAspect *aspect); 61 void FLAC__ogg_decoder_aspect_finish(FLAC__OggDecoderAspect *aspect); 62 void FLAC__ogg_decoder_aspect_flush(FLAC__OggDecoderAspect *aspect); 63 void FLAC__ogg_decoder_aspect_reset(FLAC__OggDecoderAspect *aspect); 78 FLAC__OggDecoderAspectReadStatus FLAC__ogg_decoder_aspect_read_callback_wrapper(FLAC__OggDecoderAspect *aspect, FLAC__byte buffer[], size_t *bytes, FLAC__OggDecoderAspectReadCallbackProxy read_callback, const FLAC__StreamDecoder *decoder, void *client_data);
|
ogg_encoder_aspect.h | 54 void FLAC__ogg_encoder_aspect_set_serial_number(FLAC__OggEncoderAspect *aspect, long value); 55 FLAC__bool FLAC__ogg_encoder_aspect_set_num_metadata(FLAC__OggEncoderAspect *aspect, unsigned value); 56 void FLAC__ogg_encoder_aspect_set_defaults(FLAC__OggEncoderAspect *aspect); 57 FLAC__bool FLAC__ogg_encoder_aspect_init(FLAC__OggEncoderAspect *aspect); 58 void FLAC__ogg_encoder_aspect_finish(FLAC__OggEncoderAspect *aspect); 62 FLAC__StreamEncoderWriteStatus FLAC__ogg_encoder_aspect_write_callback_wrapper(FLAC__OggEncoderAspect *aspect, const FLAC__byte buffer[], size_t bytes, unsigned samples, unsigned current_frame, FLAC__bool is_last_block, FLAC__OggEncoderAspectWriteCallbackProxy write_callback, void *encoder, void *client_data);
|
/external/eigen/demos/opengl/ |
gpuhelper.cpp | 56 void GpuHelper::drawVector(const Vector3f& position, const Vector3f& vec, const Color& color, float aspect /* = 50.*/) 70 gluCylinder(cylindre, length/aspect, length/aspect, 0.8*length, 10, 10); 72 gluCylinder(cylindre, 2.0*length/aspect, 0.0, 0.2*length, 10, 10); 77 void GpuHelper::drawVectorBox(const Vector3f& position, const Vector3f& vec, const Color& color, float aspect) 91 gluCylinder(cylindre, length/aspect, length/aspect, 0.8*length, 10, 10); 93 glScalef(4.0*length/aspect,4.0*length/aspect,4.0*length/aspect); [all...] |
/developers/build/prebuilts/gradle/HdrViewfinder/Application/src/main/java/com/example/android/hdrviewfinder/ |
FixedAspectSurfaceView.java | 30 * A SurfaceView that maintains its aspect ratio to be a desired target value. 33 * requested aspect ratio. This can happen if both the width and the height are exactly 36 * the dimension that is best adjusted to maintain the aspect ratio.</p> 50 // Get initial aspect ratio from custom attributes 60 * Set the desired aspect ratio for this view. 62 * @param aspect the desired width/height ratio in the current UI orientation. Must be a 65 public void setAspectRatio(float aspect) { 66 if (aspect <= 0) { 67 throw new IllegalArgumentException("Aspect ratio must be positive"); 69 mAspectRatio = aspect; [all...] |
/developers/samples/android/media/HdrViewfinder/Application/src/main/java/com/example/android/hdrviewfinder/ |
FixedAspectSurfaceView.java | 30 * A SurfaceView that maintains its aspect ratio to be a desired target value. 33 * requested aspect ratio. This can happen if both the width and the height are exactly 36 * the dimension that is best adjusted to maintain the aspect ratio.</p> 50 // Get initial aspect ratio from custom attributes 60 * Set the desired aspect ratio for this view. 62 * @param aspect the desired width/height ratio in the current UI orientation. Must be a 65 public void setAspectRatio(float aspect) { 66 if (aspect <= 0) { 67 throw new IllegalArgumentException("Aspect ratio must be positive"); 69 mAspectRatio = aspect; [all...] |
/development/samples/browseable/HdrViewfinder/src/com.example.android.hdrviewfinder/ |
FixedAspectSurfaceView.java | 30 * A SurfaceView that maintains its aspect ratio to be a desired target value. 33 * requested aspect ratio. This can happen if both the width and the height are exactly 36 * the dimension that is best adjusted to maintain the aspect ratio.</p> 50 // Get initial aspect ratio from custom attributes 60 * Set the desired aspect ratio for this view. 62 * @param aspect the desired width/height ratio in the current UI orientation. Must be a 65 public void setAspectRatio(float aspect) { 66 if (aspect <= 0) { 67 throw new IllegalArgumentException("Aspect ratio must be positive"); 69 mAspectRatio = aspect; [all...] |
/frameworks/rs/java/tests/RsCameraDemo/src/com/android/example/rscamera/ |
FixedAspectSurfaceView.java | 31 * A SurfaceView that maintains its aspect ratio to be a desired target value. 34 * requested aspect ratio. This can happen if both the width and the height are exactly 37 * the dimension that is best adjusted to maintain the aspect ratio.</p> 51 // Get initial aspect ratio from custom attributes 61 * Set the desired aspect ratio for this view. 63 * @param aspect the desired width/height ratio in the current UI orientation. Must be a 66 public void setAspectRatio(float aspect) { 67 if (aspect <= 0) { 68 throw new IllegalArgumentException("Aspect ratio must be positive"); 70 mAspectRatio = aspect; [all...] |
/packages/apps/Camera2/src/com/android/camera/util/ |
AspectRatio.java | 28 * Contains precise (integer) logic for handling aspect ratios as rational 40 * @param width The width of the aspect ratio, after simplification. 41 * @param height The height of the aspect ratio, after simplification. 107 * @return The transpose of this aspect ratio. 114 * @return The landscape version of this aspect ratio. 125 * @return The portrait version of this aspect ratio. 136 * @return The version of this aspect ratio in the same orientation 148 * @return True if this aspect ratio is wider than the other. 158 * @return True if this aspect ratio is taller than the other. 168 * @return The largest centered region of area with this aspect ratio. Fo [all...] |
/pdk/apps/TestingCamera2/src/com/android/testingcamera2/ |
FixedAspectSurfaceView.java | 28 * A SurfaceView that maintains its aspect ratio to be a desired target value. 31 * requested aspect ratio. This can happen if both the width and the height are exactly 34 * the dimension that is best adjusted to maintain the aspect ratio.</p> 48 // Get initial aspect ratio from custom attributes 58 * Set the desired aspect ratio for this view. 60 * @param aspect the desired width/height ratio in the current UI orientation. Must be a 63 public void setAspectRatio(float aspect) { 64 if (aspect <= 0) { 65 throw new IllegalArgumentException("Aspect ratio must be positive"); 67 mAspectRatio = aspect; [all...] |
/external/deqp/external/vulkancts/modules/vulkan/draw/ |
vktDrawImageObjectUtil.cpp | 170 vk::VkImageAspectFlagBits aspect, 176 if (aspect == vk::VK_IMAGE_ASPECT_COLOR_BIT) 178 read(queue, allocator, layout, offset, width, height, 1, mipLevel, arrayElement, aspect, vk::VK_IMAGE_TYPE_2D, 181 if (aspect == vk::VK_IMAGE_ASPECT_DEPTH_BIT || aspect == vk::VK_IMAGE_ASPECT_STENCIL_BIT) 183 readUsingBuffer(queue, allocator, layout, offset, width, height, 1, mipLevel, arrayElement, aspect, m_pixelAccessData.data()); 195 vk::VkImageAspectFlagBits aspect, 201 if (aspect == vk::VK_IMAGE_ASPECT_COLOR_BIT) 203 read(queue, allocator, layout, offset, width, height, depth, mipLevel, arrayElement, aspect, vk::VK_IMAGE_TYPE_3D, 206 if (aspect == vk::VK_IMAGE_ASPECT_DEPTH_BIT || aspect == vk::VK_IMAGE_ASPECT_STENCIL_BIT [all...] |
vktDrawImageObjectUtil.hpp | 78 vk::VkImageAspectFlagBits aspect, 87 vk::VkImageAspectFlagBits aspect, 98 vk::VkImageAspectFlagBits aspect, 106 vk::VkImageAspectFlagBits aspect, 119 vk::VkImageAspectFlagBits aspect, 132 vk::VkImageAspectFlagBits aspect, 141 vk::VkImageAspectFlagBits aspect, 149 vk::VkImageAspectFlagBits aspect, 158 vk::VkImageAspectFlagBits aspect, 167 vk::VkImageAspectFlagBits aspect, [all...] |
/external/deqp/external/vulkancts/modules/vulkan/dynamic_state/ |
vktDynamicStateImageObjectUtil.cpp | 170 vk::VkImageAspectFlagBits aspect, 176 if (aspect == vk::VK_IMAGE_ASPECT_COLOR_BIT) 178 read(queue, allocator, layout, offset, width, height, 1, mipLevel, arrayElement, aspect, vk::VK_IMAGE_TYPE_2D, 181 if (aspect == vk::VK_IMAGE_ASPECT_DEPTH_BIT || aspect == vk::VK_IMAGE_ASPECT_STENCIL_BIT) 183 readUsingBuffer(queue, allocator, layout, offset, width, height, 1, mipLevel, arrayElement, aspect, m_pixelAccessData.data()); 195 vk::VkImageAspectFlagBits aspect, 201 if (aspect == vk::VK_IMAGE_ASPECT_COLOR_BIT) 203 read(queue, allocator, layout, offset, width, height, depth, mipLevel, arrayElement, aspect, vk::VK_IMAGE_TYPE_3D, 206 if (aspect == vk::VK_IMAGE_ASPECT_DEPTH_BIT || aspect == vk::VK_IMAGE_ASPECT_STENCIL_BIT [all...] |
vktDynamicStateImageObjectUtil.hpp | 79 vk::VkImageAspectFlagBits aspect, 88 vk::VkImageAspectFlagBits aspect, 99 vk::VkImageAspectFlagBits aspect, 107 vk::VkImageAspectFlagBits aspect, 120 vk::VkImageAspectFlagBits aspect, 133 vk::VkImageAspectFlagBits aspect, 142 vk::VkImageAspectFlagBits aspect, 150 vk::VkImageAspectFlagBits aspect, 159 vk::VkImageAspectFlagBits aspect, 168 vk::VkImageAspectFlagBits aspect, [all...] |
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/ |
PerspectiveCamera.java | 32 /** Constructs a new {@link PerspectiveCamera} with the given field of view and viewport size. The aspect ratio is derived from
36 * according to the aspect ratio.
55 float aspect = viewportWidth / viewportHeight;
local 56 projection.setToProjection(Math.abs(near), Math.abs(far), fieldOfView, aspect);
local
|
/external/deqp/external/vulkancts/modules/vulkan/query_pool/ |
vktQueryPoolImageObjectUtil.cpp | 172 vk::VkImageAspectFlagBits aspect, 178 if (aspect == vk::VK_IMAGE_ASPECT_COLOR_BIT) 180 read(queue, allocator, layout, offset, width, height, depth, mipLevel, arrayElement, aspect, vk::VK_IMAGE_TYPE_3D, 183 if (aspect == vk::VK_IMAGE_ASPECT_DEPTH_BIT || aspect == vk::VK_IMAGE_ASPECT_STENCIL_BIT) 185 readUsingBuffer(queue, allocator, layout, offset, width, height, depth, mipLevel, arrayElement, aspect, m_pixelAccessData.data()); 195 vk::VkImageAspectFlagBits aspect, 201 if (aspect == vk::VK_IMAGE_ASPECT_COLOR_BIT) 203 read(queue, allocator, layout, offset, width, 1, 1, mipLevel, arrayElement, aspect, vk::VK_IMAGE_TYPE_1D, 206 if (aspect == vk::VK_IMAGE_ASPECT_DEPTH_BIT || aspect == vk::VK_IMAGE_ASPECT_STENCIL_BIT [all...] |
vktQueryPoolImageObjectUtil.hpp | 77 vk::VkImageAspectFlagBits aspect, 88 vk::VkImageAspectFlagBits aspect, 96 vk::VkImageAspectFlagBits aspect, 109 vk::VkImageAspectFlagBits aspect, 122 vk::VkImageAspectFlagBits aspect, 131 vk::VkImageAspectFlagBits aspect, 139 vk::VkImageAspectFlagBits aspect, 148 vk::VkImageAspectFlagBits aspect, 157 vk::VkImageAspectFlagBits aspect, 166 vk::VkImageAspectFlagBits aspect, [all...] |
/docs/source.android.com/src/devices/camera/ |
camera3_crop_reprocess.jd | 81 <p>Since the crop region applies to all streams, which may have different aspect 84 pixels and its aspect ratio by minimally further cropping the defined crop 85 region. If the stream's aspect ratio is wider than the crop region, the stream 86 should be further cropped vertically, and if the stream's aspect ratio is 92 <p>For example, if two streams are defined, a 640x480 stream (4:3 aspect), and a 93 1280x720 stream (16:9 aspect), below demonstrates the expected output regions 97 Crop region: (500, 375, 1000, 750) (4:3 aspect ratio)<br/> 103 <strong>Figure 1.</strong> 4:3 aspect ratio 105 <p>Crop region: (500, 375, 1333, 750) (16:9 aspect ratio)<br/> 111 <strong>Figure 2.</strong> 16:9 aspect rati [all...] |
/cts/tests/tests/dpi/src/android/dpi/cts/ |
AspectRatioTest.java | 45 * aspect ratio. With this, the screen orientation doesn't affect the aspect 46 * ratio value anymore. Test that the aspect ratio is within the range. 54 // Watch allows for a different set of aspect ratios. 59 fail("Aspect ratio was not between 1.333 and 1.86: " + aspectRatio);
|
/external/libgdx/gdx/src/com/badlogic/gdx/utils/ |
Scaling.java | 24 /** Scales the source to fit the target while keeping the same aspect ratio. This may cause the source to be smaller than the
27 /** Scales the source to fill the target while keeping the same aspect ratio. This may cause the source to be larger than the
30 /** Scales the source to fill the target in the x direction while keeping the same aspect ratio. This may cause the source to be
33 /** Scales the source to fill the target in the y direction while keeping the same aspect ratio. This may cause the source to be
36 /** Scales the source to fill the target. This may cause the source to not keep the same aspect ratio. */
39 * keep the same aspect ratio. */
42 * keep the same aspect ratio. */
|
/external/webrtc/talk/media/base/ |
videocommon_unittest.cc | 210 // Request 16:9 but VGA has 3:8 pixel aspect ratio. Expect no crop. 214 3, 8, // Pixel aspect ratio is tall 220 // Request 16:9 but QVGA has 15:11 pixel aspect ratio. Expect horizontal crop. 224 15, 11, // Pixel aspect ratio is wide 230 // Request 16:10 but QVGA has 15:11 pixel aspect ratio. 235 15, 11, // Pixel aspect ratio is wide 241 // Request 16:9 but VGA has 6:5 pixel aspect ratio. Expect vertical crop. 245 6, 5, // Pixel aspect ratio is wide 255 1, 1, // Pixel aspect ratio is wide 261 // Request 16:9 but HD has 3:4 pixel aspect ratio. Expect vertical crop [all...] |
/external/libgdx/gdx/src/com/badlogic/gdx/utils/viewport/ |
ScalingViewport.java | 27 * {@link Scaling#fit} keeps the aspect ratio by scaling the world up to fit the screen, adding black bars (letterboxing) for the 30 * {@link Scaling#fill} keeps the aspect ratio by scaling the world up to take the whole screen (some of the world may be off 33 * {@link Scaling#stretch} does not keep the aspect ratio, the world is scaled to take the whole screen. 35 * {@link Scaling#none} keeps the aspect ratio by using a fixed size world (the world may not fill the screen or some of the world
|
/external/opencv3/modules/stitching/src/ |
camera.cpp | 48 CameraParams::CameraParams() : focal(1), aspect(1), ppx(0), ppy(0), 58 aspect = other.aspect; 68 k(1,1) = focal * aspect; k(1,2) = ppy;
|
/frameworks/support/percent/tests/java/android/support/percent/ |
PercentRelativeTest.java | 50 * <li>Top child (marked with T) - width, aspect ratio, top margin, left margin.</li> 51 * <li>Left child (marked with L) - height, aspect ratio, top margin, left margin.</li> 52 * <li>Bottom child (marked with B) - width, aspect ratio, bottom margin, right margin.</li> 53 * <li>Right child (marked with R) - height, aspect ratio, bottom margin, right margin.</li> 84 assertFuzzyEquals("Child aspect ratio of 2000%", 105 assertFuzzyEquals("Child aspect ratio of 5%", 126 assertFuzzyEquals("Child aspect ratio of 2000%", 147 assertFuzzyEquals("Child aspect ratio of 5%",
|
/packages/apps/Camera2/src/com/android/camera/app/ |
FirstRunDialog.java | 48 /** The default preference of aspect ratio. */ 72 /** Aspect ratio preference dialog */ 103 // ask preferences about location and aspect ratio. The first dialog is 108 * If people already set location preference, prompt aspect ratio dialog. 148 * Prompts a dialog to allow people to choose aspect ratio preference when 159 // Change resolution setting based on the chosen aspect ratio. 225 // Prompt the second dialog about aspect ratio preference.
|