Home
last modified time | relevance | path

Searched refs:top_left (Results 1 – 25 of 83) sorted by relevance

1234

/external/chromium-trace/catapult/devil/devil/utils/
Dgeometry.py50 def __new__(cls, top_left, bottom_right): argument
51 if not isinstance(top_left, Point):
52 top_left = Point(*top_left)
55 return super(Rectangle, cls).__new__(cls, top_left, bottom_right)
59 return '[%s, %s]' % (self.top_left, self.bottom_right)
64 return 0.5 * (self.top_left + self.bottom_right)
/external/clang/test/Sema/
Ddesignated-initializers.c57 struct point top_left; member
61 struct rect window = { .top_left.x = 1.0 };
64 [2].top_left = { 1.0, 2.0 },
67 [3] = { .top_left = { 1.1, 2.2 }, .bottom_right = { .y = 1.1 } }
73 [2].top_left = { { .x = 1.1 } }, // expected-error{{designator in initializer for scalar type}}
74 [1].top_left = { .x = 1.1 }
82 [5].windows[3].top_left.x = { 7.0 } // expected-warning{{braces around scalar initializer}}
90 .window = { .top_left = { 1.0, 2.0 } },
/external/llvm-project/clang/test/Sema/
Ddesignated-initializers.c57 struct point top_left; member
61 struct rect window = { .top_left.x = 1.0 };
64 [2].top_left = { 1.0, 2.0 },
67 [3] = { .top_left = { 1.1, 2.2 }, .bottom_right = { .y = 1.1 } }
73 [2].top_left = { { .x = 1.1 } }, // expected-error{{designator in initializer for scalar type}}
74 [1].top_left = { .x = 1.1 }
82 [5].windows[3].top_left.x = { 7.0 } // expected-warning{{braces around scalar initializer}}
90 .window = { .top_left = { 1.0, 2.0 } },
/external/libgav1/libgav1/src/dsp/x86/
Dintrapred_sse4.cc1061 const uint8_t top_left, const __m128i top, in WritePaeth16x8() argument
1066 const __m128i top_lefts16 = _mm_set1_epi16(top_left); in WritePaeth16x8()
1067 const __m128i top_lefts8 = _mm_set1_epi8(static_cast<int8_t>(top_left)); in WritePaeth16x8()
1127 void WritePaeth16x16(void* const dest, ptrdiff_t stride, const uint8_t top_left, in WritePaeth16x16() argument
1132 const __m128i top_lefts16 = _mm_set1_epi16(top_left); in WritePaeth16x16()
1133 const __m128i top_lefts8 = _mm_set1_epi8(static_cast<int8_t>(top_left)); in WritePaeth16x16()
1231 const uint8_t top_left = top_ptr[-1]; in Paeth16x32_SSE4_1() local
1233 WritePaeth16x16(dst, stride, top_left, top, left_0); in Paeth16x32_SSE4_1()
1236 WritePaeth16x16(dst + (stride << 4), stride, top_left, top, left_1); in Paeth16x32_SSE4_1()
1246 const uint8_t top_left = top_ptr[-1]; in Paeth16x64_SSE4_1() local
[all …]
/external/webrtc/modules/desktop_capture/
Ddesktop_frame.cc46 uint8_t* dest = GetFrameDataAtPos(dest_rect.top_left()); in CopyPixelsFrom()
68 const DesktopVector& origin = top_left(); in CopyIntersectingPixelsFrom()
69 const DesktopVector& src_frame_origin = src_frame.top_left(); in CopyIntersectingPixelsFrom()
109 return DesktopRect::MakeXYWH(top_left().x(), top_left().y(), in rect()
135 set_top_left(other.top_left()); in CopyFrameInfoFrom()
144 set_top_left(other->top_left()); in MoveFrameInfoFrom()
Dcropped_desktop_frame_unittest.cc53 ASSERT_EQ(cropped->top_left().x(), 1); in TEST()
54 ASSERT_EQ(cropped->top_left().y(), 2); in TEST()
64 ASSERT_EQ(frame->top_left().x(), 101); in TEST()
65 ASSERT_EQ(frame->top_left().y(), 203); in TEST()
70 const DesktopVector frame_origin = frame->top_left(); in TEST()
Dcropped_desktop_frame.cc55 frame->GetFrameDataAtPos(rect.top_left()), in CroppedDesktopFrame()
59 set_top_left(frame_->top_left().add(rect.top_left())); in CroppedDesktopFrame()
Ddesktop_and_cursor_composer.cc103 DesktopVector cursor_origin = cursor_rect_.top_left(); in DesktopFrameWithCursor()
117 restore_position_ = cursor_rect_.top_left(); in DesktopFrameWithCursor()
119 restore_frame_->CopyPixelsFrom(*this, cursor_rect_.top_left(), in DesktopFrameWithCursor()
126 DesktopVector origin_shift = cursor_rect_.top_left().subtract(cursor_origin); in DesktopFrameWithCursor()
213 cursor_position_.subtract(frame->top_left()); in OnCaptureResult()
Ddesktop_frame.h52 const DesktopVector& top_left() const { return top_left_; } in top_left() function
53 void set_top_left(const DesktopVector& top_left) { top_left_ = top_left; } in set_top_left() argument
Ddesktop_frame_rotation.cc110 source.GetFrameDataAtPos(source_rect.top_left()), source.stride(), in RotateDesktopFrame()
111 target->GetFrameDataAtPos(target_rect.top_left()), target->stride(), in RotateDesktopFrame()
/external/llvm-project/clang/test/FixIt/
Dtypo.c12 struct Point top_left, // expected-note{{'top_left' declared here}} member
35 r1.top_left.x = 0; in test()
41 r2->top_left.y = 0; in test()
/external/clang/test/FixIt/
Dtypo.c12 struct Point top_left, // expected-note{{'top_left' declared here}} member
35 r1.top_left.x = 0; in test()
41 r2->top_left.y = 0; in test()
/external/libgav1/libgav1/src/tile/bitstream/
Dpalette.cc205 const uint8_t top_left = in PopulatePaletteColorContexts() local
208 index_mask = (1 << top) | (1 << left) | (1 << top_left); in PopulatePaletteColorContexts()
209 if (top == left && top == top_left) { in PopulatePaletteColorContexts()
216 color_order[counter][1] = top_left; in PopulatePaletteColorContexts()
218 } else if (top == top_left) { in PopulatePaletteColorContexts()
220 color_order[counter][0] = top_left; in PopulatePaletteColorContexts()
223 } else if (left == top_left) { in PopulatePaletteColorContexts()
225 color_order[counter][0] = top_left; in PopulatePaletteColorContexts()
232 color_order[counter][2] = top_left; in PopulatePaletteColorContexts()
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/h264/model/
DPictureParameterSet.java75 public int[] top_left; field in PictureParameterSet
101 pps.top_left = new int[pps.num_slice_groups_minus1 + 1]; in read()
110 pps.top_left[iGroup] = reader.readUE("PPS: top_left"); in read()
200 int[] top_left = new int[1]; in write() local
209 writer.writeUE(top_left[iGroup], "PPS: "); in write()
311 result = prime * result + Arrays.hashCode(top_left); in hashCode()
369 if (!Arrays.equals(top_left, other.top_left)) in equals()
398 ",\n top_left=" + top_left + in toString()
/external/webrtc/modules/desktop_capture/linux/
Dx_server_pixel_buffer.cc69 RTC_DCHECK_LE(frame->top_left().x(), rect.left()); in FastBlit()
70 RTC_DCHECK_LE(frame->top_left().y(), rect.top()); in FastBlit()
73 int dst_x = rect.left() - frame->top_left().x(); in FastBlit()
74 int dst_y = rect.top() - frame->top_left().y(); in FastBlit()
92 RTC_DCHECK_LE(frame->top_left().x(), rect.left()); in SlowBlit()
93 RTC_DCHECK_LE(frame->top_left().y(), rect.top()); in SlowBlit()
96 int dst_x = rect.left() - frame->top_left().x(); in SlowBlit()
97 int dst_y = rect.top() - frame->top_left().y(); in SlowBlit()
/external/libvpx/libvpx/vpx_dsp/mips/
Dintrapred4_dspr2.c89 int32_t top_left; in vpx_tm_predictor_4x4_dspr2() local
221 [resr] "=&r"(resr), [top_left] "=&r"(top_left) in vpx_tm_predictor_4x4_dspr2()
Dintrapred8_dspr2.c157 int32_t top_left; in vpx_tm_predictor_8x8_dspr2() local
599 [top_left] "=&r"(top_left) in vpx_tm_predictor_8x8_dspr2()
/external/libvpx/libvpx/vp8/common/
Dreconintra4x4.c42 unsigned char top_left) { in vp8_intra4x4_predict() argument
72 Above[-1] = top_left; in vp8_intra4x4_predict()
/external/tensorflow/tensorflow/lite/kernels/perception/
Ddense_image_warp.cc68 float top_left = in DenseImageWarp() local
77 float interp_top = alpha_x * (top_right - top_left) + top_left; in DenseImageWarp()
/external/tensorflow/tensorflow/tools/android/test/jni/object_tracking/
Dintegral_image.h124 const uint32_t top_left = (*this)[y1 - 1][x1 - 1]; in GetRegionSum() local
126 sum = everything - left - top + top_left; in GetRegionSum()
128 everything, left, top, top_left, sum, x1, y1, x2, y2); in GetRegionSum()
/external/tensorflow/tensorflow/core/kernels/image/
Dcrop_and_resize_op_gpu.cu.cc97 const float top_left(static_cast<float>( in CropAndResizeKernel()
117 const float top = top_left + (top_right - top_left) * x_lerp; in CropAndResizeKernel()
289 const float top_left(static_cast<float>( in CropAndResizeBackpropBoxesKernel()
311 float image_grad_y = (1 - x_lerp) * (bottom_left - top_left) + in CropAndResizeBackpropBoxesKernel()
313 float image_grad_x = (1 - y_lerp) * (top_right - top_left) + in CropAndResizeBackpropBoxesKernel()
Dresize_bilinear_op.cc108 inline float compute_lerp(const float top_left, const float top_right, in compute_lerp() argument
111 const float top = top_left + (top_right - top_left) * x_lerp; in compute_lerp()
162 const float top_left = input_(b, ys_[y].lower, xs_[x].lower, c); in operator ()() local
168 return compute_lerp(top_left, top_right, bottom_left, bottom_right, xs_lerp, in operator ()()
Dresize_bilinear_op_gpu.cu.cc144 const float top_left( in ResizeBilinearKernel() local
161 const float top = top_left + (top_right - top_left) * x_lerp; in ResizeBilinearKernel()
312 const float top_left( in LegacyResizeBilinearKernel() local
329 const float top = top_left + (top_right - top_left) * x_lerp; in LegacyResizeBilinearKernel()
/external/libgav1/libgav1/src/dsp/arm/
Dintrapred_neon.cc328 const uint8x8_t top_left = vdup_n_u8(top_row_u8[-1]); in Paeth4Or8xN_NEON() local
340 const uint8x8_t left_dist = vabd_u8(top, top_left); in Paeth4Or8xN_NEON()
341 const uint8x8_t top_dist = vabd_u8(left, top_left); in Paeth4Or8xN_NEON()
363 result = vbsl_u8(left_or_top_mask, result, top_left); in Paeth4Or8xN_NEON()
390 const uint8x16_t top_left, in SelectPaeth() argument
406 return vbslq_u8(left_or_top_mask, result, top_left); in SelectPaeth()
435 const uint8x16_t top_left = vdupq_n_u8(top_row_u8[-1]); in Paeth16PlusxN_NEON() local
450 const uint8x16_t top_dist = vabdq_u8(left, top_left); in Paeth16PlusxN_NEON()
452 const uint8x16_t left_0_dist = vabdq_u8(top[0], top_left); in Paeth16PlusxN_NEON()
459 SelectPaeth(top[0], left, top_left, left_0_le_top, left_le_top_left_0, in Paeth16PlusxN_NEON()
[all …]
/external/tensorflow/tensorflow/core/kernels/
Dquantization_utils_test.cc826 T_CALC ComputeRefLerp(T_CALC top_left, T_CALC top_right, T_CALC bottom_left, in ComputeRefLerp() argument
830 top_left * RESOLUTION_POW + (top_right - top_left) * x_lerp; in ComputeRefLerp()
838 void TestComputeLerp8x8(uint8 top_left, uint8 top_right, uint8 bottom_left, in TestComputeLerp8x8() argument
840 uint8x8_t top_left8x8 = To8x8(top_left); in TestComputeLerp8x8()
854 static_cast<int16>(top_left), static_cast<int16>(top_right), in TestComputeLerp8x8()
862 VLOG(1) << "Lerp(8): " << static_cast<int>(top_left) << ", " in TestComputeLerp8x8()
870 void TestComputeLerp32x2(int32 top_left, int32 top_right, int32 bottom_left, in TestComputeLerp32x2() argument
872 int32x2_t top_left32x2 = To32x2(top_left); in TestComputeLerp32x2()
884 static_cast<int64>(top_left), static_cast<int64>(top_right), in TestComputeLerp32x2()
888 VLOG(1) << "Lerp(32): " << top_left << ", " << top_right << ", " in TestComputeLerp32x2()

1234