Home
last modified time | relevance | path

Searched refs:strides (Results 1 – 25 of 216) sorted by relevance

123456789

/third_party/flutter/skia/third_party/externals/libjpeg-turbo/java/org/libjpegturbo/turbojpeg/
DYUVImage.java90 public YUVImage(int width, int[] strides, int height, int subsamp) { in YUVImage() argument
91 setBuf(null, null, width, strides, height, subsamp, true); in YUVImage()
147 public YUVImage(byte[][] planes, int[] offsets, int width, int[] strides, in YUVImage() argument
149 setBuf(planes, offsets, width, strides, height, subsamp, false); in YUVImage()
211 public void setBuf(byte[][] planes, int[] offsets, int width, int[] strides, in setBuf() argument
213 setBuf(planes, offsets, width, strides, height, subsamp, false); in setBuf()
216 private void setBuf(byte[][] planes, int[] offsets, int width, int[] strides, in setBuf() argument
225 (strides != null && strides.length != nc)) in setBuf()
232 if (strides == null) in setBuf()
233 strides = new int[nc]; in setBuf()
[all …]
/third_party/boost/libs/multi_array/test/
Dconstructors.cpp30 int* strides, in check_shape() argument
36 BOOST_TEST(std::equal(strides, strides + A.num_dimensions(), A.strides())); in check_shape()
37 check_shape(A[0], ++sizes, ++strides, num_elements / A.size()); in check_shape()
63 int strides[] = { 9, 3, 1 }; in main() local
74 check_shape(A, &sizes[0], strides, num_elements); in main()
78 check_shape(B, &sizes[0], strides, num_elements); in main()
82 check_shape(C, &sizes[0], strides, num_elements); in main()
114 check_shape(A, &sizes[0], strides, num_elements); in main()
118 check_shape(B, &sizes[0], strides, num_elements); in main()
122 check_shape(C, &sizes[0], strides, num_elements); in main()
[all …]
Dallocators.cpp67 void test(const Array& array, std::size_t* sizes, int* strides, in test() argument
73 BOOST_TEST(std::equal(strides, strides + array.num_dimensions(), in test()
74 array.strides())); in test()
75 test(array[0], ++sizes, ++strides, elements / array.size()); in test()
106 int strides[] = { 9, 3, 1 }; in main() local
108 test(array, &sizes[0], strides, elements); in main()
111 int strides[] = { 1, 3, 9 }; in main() local
113 test(array, &sizes[0], strides, elements); in main()
116 int strides[] = { 9, 3, 1 }; in main() local
119 test(array, &sizes[0], strides, elements); in main()
[all …]
/third_party/python/Modules/
D_testbuffer.c156 base->strides = NULL; in ndbuf_new()
171 PyMem_XFree(base->strides); in ndbuf_free()
229 PyMem_XFree(base->strides); in ndarray_dealloc()
551 dest->strides[dest->ndim-1] != dest->itemsize || in copy_buffer()
552 src->strides[src->ndim-1] != src->itemsize) { in copy_buffer()
561 dest->buf, dest->strides, dest->suboffsets, in copy_buffer()
562 src->buf, src->strides, src->suboffsets, in copy_buffer()
611 const Py_ssize_t *shape, const Py_ssize_t *strides, in unpack_rec() argument
619 assert(strides != NULL); in unpack_rec()
639 for (i = 0; i < shape[0]; ptr+=strides[0], i++) { in unpack_rec()
[all …]
/third_party/boost/boost/python/numpy/
Dndarray.hpp47 Py_intptr_t * strides; member
93 Py_intptr_t strides(int n) const;
116 Py_intptr_t const * get_strides() const { return get_struct()->strides; } in get_strides()
168 std::vector<Py_intptr_t> const & strides,
176 Container strides, in from_data_impl() argument
182 std::vector<Py_intptr_t> strides_(strides.begin(), strides.end()); in from_data_impl()
189 object const & strides,
212 Container strides, in from_data() argument
215 return numpy::detail::from_data_impl(data, dt, shape, strides, owner, true); in from_data()
237 Container strides, in from_data() argument
[all …]
/third_party/boost/libs/python/src/numpy/
Dndarray.cpp43 std::vector<Py_intptr_t> const & strides, in is_c_contiguous() argument
46 std::vector<Py_intptr_t>::const_reverse_iterator j = strides.rbegin(); in is_c_contiguous()
57 std::vector<Py_intptr_t> const & strides, in is_f_contiguous() argument
60 std::vector<Py_intptr_t>::const_iterator j = strides.begin(); in is_f_contiguous()
70 bool is_aligned(std::vector<Py_intptr_t> const & strides, in is_aligned() argument
73 for (std::vector<Py_intptr_t>::const_iterator i = strides.begin(); i != strides.end(); ++i) in is_aligned()
89 python::object const & strides, in from_data_impl() argument
94 std::vector<Py_intptr_t> strides_(len(strides)); in from_data_impl()
103 strides_[i] = python::extract<Py_intptr_t>(strides[i]); in from_data_impl()
111 std::vector<Py_intptr_t> const & strides, in from_data_impl() argument
[all …]
/third_party/boost/boost/multi_array/
Dsubarray.hpp77 idx,base_,shape(),strides(),index_bases()); in operator []()
86 shape(),strides(),index_bases()); in operator ()()
100 strides(), in operator []()
139 shape(),strides(),index_bases()); in begin()
144 shape(),strides(),index_bases()); in end()
161 const index* strides() const { return strides_; } in strides() function in boost::detail::multi_array::const_sub_array
180 const index* strides, in const_sub_array() argument
182 base_(base), extents_(extents), strides_(strides), in const_sub_array()
261 idx,this->base_,this->shape(),this->strides(), in operator []()
275 this->strides(), in operator []()
[all …]
Dview.hpp108 const index* strides() const { in strides() function in boost::detail::multi_array::const_multi_array_view
126 shape(),strides(),index_bases()); in operator ()()
133 shape(),strides(), in operator []()
148 strides(), in operator []()
154 shape(),strides(),index_bases()); in begin()
159 shape(),strides(),index_bases()); in end()
231 const boost::array<Index,NumDims>& strides): in const_multi_array_view() argument
240 copy_n(strides.begin(),NumDims,stride_list_.begin()); in const_multi_array_view()
331 this->shape(),this->strides(), in operator ()()
339 this->shape(),this->strides(), in operator []()
[all …]
Dbase.hpp132 const index* strides, in access() argument
138 TPtr newbase = base + idx * strides[0]; in access()
139 return Reference(newbase,extents+1,strides+1,index_bases+1); in access()
172 const index* strides, in access() argument
179 return *(base + idx * strides[0]); in access()
303 const index* strides, in access_element() argument
321 offset += (*i) * strides[n]; in access_element()
412 const index* strides, in generate_array_view() argument
472 offset += start * strides[n]; in generate_array_view()
478 new_strides[dim] = stride * strides[n]; in generate_array_view()
Dmulti_array_ref.hpp193 const index* strides() const { in strides() function in boost::const_multi_array_ref
217 shape(),strides(),index_bases()); in operator ()()
224 shape(),strides(),index_bases()); in operator []()
238 strides(), in operator []()
245 shape(),strides(),index_bases()); in begin()
250 shape(),strides(),index_bases()); in end()
514 this->shape(),this->strides(), in operator ()()
522 this->shape(),this->strides(), in operator []()
537 this->strides(), in operator []()
545 this->strides(),this->index_bases()); in begin()
[all …]
/third_party/python/Objects/
Dmemoryobject.c228 ((view)->shape[0] == 1 || (view)->strides[0] == (view)->itemsize)
270 dest->strides[dest->ndim-1] == dest->itemsize && in last_dim_is_contiguous()
271 src->strides[src->ndim-1] == src->itemsize); in last_dim_is_contiguous()
416 dest->buf, dest->strides, dest->suboffsets, in copy_single()
417 src->buf, src->strides, src->suboffsets, in copy_single()
448 dest->buf, dest->strides, dest->suboffsets, in copy_buffer()
449 src->buf, src->strides, src->suboffsets, in copy_buffer()
466 view->strides[view->ndim-1] = view->itemsize; in init_strides_from_shape()
468 view->strides[i] = view->strides[i+1] * view->shape[i+1]; in init_strides_from_shape()
479 view->strides[0] = view->itemsize; in init_fortran_strides_from_shape()
[all …]
/third_party/boost/libs/numeric/ublas/test/tensor/
Dtest_algorithms.cpp67 auto wa = ublas::strides<ublas::first_order>(n); in BOOST_FIXTURE_TEST_CASE_TEMPLATE()
68 auto wb = ublas::strides<ublas::last_order> (n); in BOOST_FIXTURE_TEST_CASE_TEMPLATE()
69 auto wc = ublas::strides<ublas::first_order>(n); in BOOST_FIXTURE_TEST_CASE_TEMPLATE()
82 using size_type = typename ublas::strides<ublas::first_order>::value_type; in BOOST_FIXTURE_TEST_CASE_TEMPLATE()
101 auto wa = ublas::strides<ublas::first_order>(n); in BOOST_FIXTURE_TEST_CASE_TEMPLATE()
102 auto wb = ublas::strides<ublas::last_order> (n); in BOOST_FIXTURE_TEST_CASE_TEMPLATE()
103 auto wc = ublas::strides<ublas::first_order>(n); in BOOST_FIXTURE_TEST_CASE_TEMPLATE()
135 auto wa = ublas::strides<ublas::first_order>(n); in BOOST_FIXTURE_TEST_CASE_TEMPLATE()
136 auto wb = ublas::strides<ublas::last_order> (n); in BOOST_FIXTURE_TEST_CASE_TEMPLATE()
137 auto wc = ublas::strides<ublas::first_order>(n); in BOOST_FIXTURE_TEST_CASE_TEMPLATE()
[all …]
/third_party/boost/boost/numeric/ublas/tensor/
Dfunctions.hpp98 c.data(), c.extents().data(), c.strides().data(), in prod()
99 a.data(), a.extents().data(), a.strides().data(), in prod()
159 c.data(), c.extents().data(), c.strides().data(), in prod()
160 a.data(), a.extents().data(), a.strides().data(), in prod()
262 c.data(), c.extents().data(), c.strides().data(), in prod()
263 a.data(), a.extents().data(), a.strides().data(), in prod()
264 b.data(), b.extents().data(), b.strides().data()); in prod()
322 a.data(), a.strides().data(), in inner_prod()
323 b.data(), b.strides().data(), value_type{0}); in inner_prod()
355 outer(c.data(), c.rank(), c.extents().data(), c.strides().data(), in outer_prod()
[all …]
/third_party/python/Lib/test/
Dtest_buffer.py269 strides = list(shape[1:]) + [itemsize]
271 strides[i] *= strides[i+1]
273 strides = [itemsize] + list(shape[:-1])
275 strides[i] *= strides[i-1]
276 return strides
320 def getindex(ndim, ind, strides): argument
324 ret += strides[i] * ind[i]
434 def verify_structure(memlen, itemsize, ndim, shape, strides, offset): argument
445 if any(v % itemsize for v in strides):
449 return ndim == 0 and not shape and not strides
[all …]
Dtest_picklebuffer.py27 self.assertEqual(m.strides, expected.strides)
91 arr = ndarray(list(range(12)), shape=(3, 4), strides=(4, 12), format='<i')
121 arr = ndarray(list(range(6)), shape=(2, 3), strides=(2, 4),
/third_party/weston/libweston/backend-drm/
Dfb.c89 fb->handles, fb->strides, in drm_fb_addfb()
96 fb->handles, fb->strides, fb->offsets, &fb->fb_id, in drm_fb_addfb()
112 fb->strides[0], fb->handles[0], &fb->fb_id); in drm_fb_addfb()
157 fb->strides[0] = create_arg.pitch; in drm_fb_create_dumb()
280 static_assert(ARRAY_LENGTH(import_mod.strides) == in drm_fb_get_from_dmabuf()
283 static_assert(sizeof(import_mod.strides) == in drm_fb_get_from_dmabuf()
286 memcpy(import_mod.strides, dmabuf->attributes.stride, in drm_fb_get_from_dmabuf()
287 sizeof(import_mod.strides)); in drm_fb_get_from_dmabuf()
327 static_assert(ARRAY_LENGTH(fb->strides) == in drm_fb_get_from_dmabuf()
330 static_assert(sizeof(fb->strides) == sizeof(dmabuf->attributes.stride), in drm_fb_get_from_dmabuf()
[all …]
/third_party/skia/third_party/externals/libjpeg-turbo/
Dturbojpeg.c759 int *strides, int subsamp, int flags) in tjEncodeYUVPlanes() argument
877 ptr += (strides && strides[i] != 0) ? strides[i] : pw[i]; in tjEncodeYUVPlanes()
920 int pw0, ph0, strides[3], retval = -1; in tjEncodeYUV3() local
933 strides[0] = PAD(pw0, pad); in tjEncodeYUV3()
935 strides[1] = strides[2] = 0; in tjEncodeYUV3()
941 strides[1] = strides[2] = PAD(pw1, pad); in tjEncodeYUV3()
942 dstPlanes[1] = dstPlanes[0] + strides[0] * ph0; in tjEncodeYUV3()
943 dstPlanes[2] = dstPlanes[1] + strides[1] * ph1; in tjEncodeYUV3()
947 dstPlanes, strides, subsamp, flags); in tjEncodeYUV3()
973 int width, const int *strides, in tjCompressFromYUVPlanes() argument
[all …]
/third_party/flutter/skia/third_party/externals/libjpeg-turbo/
Dturbojpeg.c699 int *strides, int subsamp, int flags) in tjEncodeYUVPlanes() argument
817 ptr += (strides && strides[i] != 0) ? strides[i] : pw[i]; in tjEncodeYUVPlanes()
860 int pw0, ph0, strides[3], retval = -1; in tjEncodeYUV3() local
873 strides[0] = PAD(pw0, pad); in tjEncodeYUV3()
875 strides[1] = strides[2] = 0; in tjEncodeYUV3()
881 strides[1] = strides[2] = PAD(pw1, pad); in tjEncodeYUV3()
882 dstPlanes[1] = dstPlanes[0] + strides[0] * ph0; in tjEncodeYUV3()
883 dstPlanes[2] = dstPlanes[1] + strides[1] * ph1; in tjEncodeYUV3()
887 dstPlanes, strides, subsamp, flags); in tjEncodeYUV3()
913 int width, const int *strides, in tjCompressFromYUVPlanes() argument
[all …]
/third_party/python/Doc/c-api/
Dbuffer.rst96 block of the exporter. For example, with negative :c:member:`~Py_buffer.strides`
160 a scalar. In this case, :c:member:`~Py_buffer.shape`, :c:member:`~Py_buffer.strides`
180 .. c:member:: Py_ssize_t *strides
186 Stride values can be any integer. For regular arrays, strides are
188 ``strides[n] <= 0``. See `complex arrays`_ for further information.
190 The strides array is read-only for the consumer.
214 about whether or not the shape, strides, and suboffsets arrays must be
262 shape, strides, suboffsets
272 | Request | shape | strides | suboffsets |
296 | Request | shape | strides | suboffsets | contig |
[all …]
/third_party/boost/libs/python/doc/numpy/tutorial/
Dndarray.rst7 …om arbitrary Python sequences, as well as from C++ containers, using both unit and non-unit strides
44 Create a shape, and strides, needed by the function ::
65 …le more interesting. Lets make an 3x2 ndarray from a multi-dimensional array using non-unit strides
72 The strides will be 4x2 i.e. 4 bytes to go to the next desired row, and 2 bytes to go to the next d…
82 Notice how we can pass the shape and strides in the function directly, as well as the owner. The la…
92 … create the new ndarray using the shape and strides and print out the array we created using non-u…
99 …dy_set`` if the number of elements dictated by the shape and the corresponding strides don't match.
/third_party/boost/libs/python/doc/html/numpy/_sources/tutorial/
Dndarray.rst.txt7 …om arbitrary Python sequences, as well as from C++ containers, using both unit and non-unit strides
44 Create a shape, and strides, needed by the function ::
65 …le more interesting. Lets make an 3x2 ndarray from a multi-dimensional array using non-unit strides
72 The strides will be 4x2 i.e. 4 bytes to go to the next desired row, and 2 bytes to go to the next d…
82 Notice how we can pass the shape and strides in the function directly, as well as the owner. The la…
92 … create the new ndarray using the shape and strides and print out the array we created using non-u…
99 …dy_set`` if the number of elements dictated by the shape and the corresponding strides don't match.
/third_party/boost/libs/python/test/numpy/
Dtemplates.cpp28 int stride = argument.strides(0); in apply()
36 int row_stride = argument.strides(0); in apply()
37 int col_stride = argument.strides(1); in apply()
/third_party/gstreamer/gstplugins_bad/gst/dvdspu/
Dgstspu-vobsub-render.c428 gint strides[3]; in gstspu_vobsub_render() local
444 strides[0] = GST_VIDEO_FRAME_COMP_STRIDE (frame, 0); in gstspu_vobsub_render()
445 strides[1] = GST_VIDEO_FRAME_COMP_STRIDE (frame, 1); in gstspu_vobsub_render()
446 strides[2] = GST_VIDEO_FRAME_COMP_STRIDE (frame, 2); in gstspu_vobsub_render()
557 planes[0] += strides[0] * y; in gstspu_vobsub_render()
558 planes[1] += strides[1] * (y / 2); in gstspu_vobsub_render()
559 planes[2] += strides[2] * (y / 2); in gstspu_vobsub_render()
582 planes[0] += strides[0]; in gstspu_vobsub_render()
583 planes[1] += strides[1]; in gstspu_vobsub_render()
584 planes[2] += strides[2]; in gstspu_vobsub_render()
[all …]
Dgstspu-pgs.c178 gint strides[3]; in pgs_composition_object_render() local
203 strides[0] = GST_VIDEO_FRAME_COMP_STRIDE (frame, 0); in pgs_composition_object_render()
204 strides[1] = GST_VIDEO_FRAME_COMP_STRIDE (frame, 1); in pgs_composition_object_render()
205 strides[2] = GST_VIDEO_FRAME_COMP_STRIDE (frame, 2); in pgs_composition_object_render()
209 planes[0] += strides[0] * y; in pgs_composition_object_render()
210 planes[1] += strides[1] * (y / 2); in pgs_composition_object_render()
211 planes[2] += strides[2] * (y / 2); in pgs_composition_object_render()
218 min_x = MIN (obj->x, strides[0]); in pgs_composition_object_render()
219 max_x = MIN (obj->x + obj_w, strides[0]); in pgs_composition_object_render()
287 planes[0] += strides[0]; in pgs_composition_object_render()
[all …]
/third_party/skia/third_party/externals/angle2/src/libANGLE/
DTransformFeedback.cpp154 auto strides = programExecutable->getTransformFeedbackStrides(); in begin() local
155 ASSERT(strides.size() <= mState.mIndexedBuffers.size() && !strides.empty()); in begin()
157 for (size_t index = 0; index < strides.size(); index++) in begin()
160 GetBoundBufferAvailableSize(mState.mIndexedBuffers[index]) / strides[index]; in begin()

123456789