Home
last modified time | relevance | path

Searched refs:planes (Results 1 – 25 of 170) sorted by relevance

1234567

/external/opencv3/samples/cpp/
Dimage.cpp59 …vector<Mat> planes; // Vector is template vector class, similar to STL's vector. It can store matr… in main() local
60 split(img_yuv, planes); // split the image into separate color planes in main()
64 MatIterator_<uchar> it = planes[0].begin<uchar>(), it_end = planes[0].end<uchar>(); in main()
75 uchar* Uptr = planes[1].ptr<uchar>(y); in main()
79 uchar& Vxy = planes[2].at<uchar>(y, x); in main()
95 IplImage cv_planes_0 = planes[0], cv_noise = noise; in main()
99 addWeighted(planes[0], contrast_gain, noise, 1, -128 + brightness_gain, planes[0]); in main()
103 planes[1].convertTo(planes[1], planes[1].type(), color_scale, 128*(1-color_scale)); in main()
106 planes[2] = Mat_<uchar>(planes[2]*color_scale + 128*(1-color_scale)); in main()
109 planes[0] = planes[0].mul(planes[0], 1./255); in main()
[all …]
Ddft.cpp43 Mat planes[] = {Mat_<float>(padded), Mat::zeros(padded.size(), CV_32F)}; in main() local
45 merge(planes, 2, complexImg); in main()
50 split(complexImg, planes); in main()
51 magnitude(planes[0], planes[1], planes[0]); in main()
52 Mat mag = planes[0]; in main()
/external/opencv3/samples/cpp/tutorial_code/core/interoperability_with_OpenCV_1/
Dinteroperability_with_OpenCV_1.cpp62 vector<Mat> planes; // Use the STL's vector structure to store multiple Mat objects in main() local
63 split(I_YUV, planes); // split the image into separate color planes (Y U V) in main()
70 MatIterator_<uchar> it = planes[0].begin<uchar>(), it_end = planes[0].end<uchar>(); in main()
80 uchar* Uptr = planes[1].ptr<uchar>(y); in main()
86 uchar& Vxy = planes[2].at<uchar>(y, x); in main()
112 IplImage cv_planes_0 = planes[0], cv_noise = noisyI; in main()
115 addWeighted(planes[0], contrast_gain, noisyI, 1, -128 + brightness_gain, planes[0]); in main()
121 planes[1].convertTo(planes[1], planes[1].type(), color_scale, 128*(1-color_scale)); in main()
125 planes[2] = Mat_<uchar>(planes[2]*color_scale + 128*(1-color_scale)); in main()
128 planes[0] = planes[0].mul(planes[0], 1./255); in main()
[all …]
/external/dng_sdk/source/
Ddng_bottlenecks.h57 uint32 planes,
67 uint32 planes,
77 uint32 planes,
89 uint32 planes,
102 uint32 planes,
115 uint32 planes,
128 uint32 planes,
141 uint32 planes,
154 uint32 planes,
167 uint32 planes,
[all …]
Ddng_pixel_buffer.cpp366 uint32 planes, in dng_pixel_buffer() argument
373 , fPlanes (planes) in dng_pixel_buffer()
544 uint32 planes, in SetConstant() argument
563 planes, in SetConstant()
577 DoZeroBytes (dPtr, planes); in SetConstant()
588 planes, in SetConstant()
605 DoZeroBytes (dPtr, planes << 1); in SetConstant()
616 planes, in SetConstant()
633 DoZeroBytes (dPtr, planes << 2); in SetConstant()
644 planes, in SetConstant()
[all …]
Ddng_reference.h46 uint32 planes,
55 uint32 planes,
64 uint32 planes,
75 uint32 planes,
87 uint32 planes,
99 uint32 planes,
111 uint32 planes,
123 uint32 planes,
135 uint32 planes,
147 uint32 planes,
[all …]
Ddng_pixel_buffer.h180 dng_pixel_buffer (const dng_rect &area, uint32 plane, uint32 planes,
505 uint32 planes,
516 uint32 planes, in SetConstant_uint8() argument
522 SetConstant (area, plane, planes, (uint32) value); in SetConstant_uint8()
534 uint32 planes, in SetConstant_uint16() argument
540 SetConstant (area, plane, planes, (uint32) value); in SetConstant_uint16()
552 uint32 planes, in SetConstant_int16() argument
558 SetConstant (area, plane, planes, (uint32) (uint16) value); in SetConstant_int16()
570 uint32 planes, in SetConstant_uint32() argument
576 SetConstant (area, plane, planes, value); in SetConstant_uint32()
[all …]
/external/skia/src/gpu/
DGrYUVProvider.cpp26 bool init(GrYUVProvider*, SkYUVPlanesCache::Info*, void* planes[3], bool useCache);
35 bool YUVScoper::init(GrYUVProvider* provider, SkYUVPlanesCache::Info* yuvInfo, void* planes[3], in init()
42 planes[0] = (void*)fCachedData->data(); in init()
43 planes[1] = (uint8_t*)planes[0] + yuvInfo->fSizeInMemory[0]; in init()
44 planes[2] = (uint8_t*)planes[1] + yuvInfo->fSizeInMemory[1]; in init()
61 planes[0] = fCachedData->writable_data(); in init()
64 planes[0] = fStorage.get(); in init()
66 planes[1] = (uint8_t*)planes[0] + yuvInfo->fSizeInMemory[0]; in init()
67 planes[2] = (uint8_t*)planes[1] + yuvInfo->fSizeInMemory[1]; in init()
70 if (!provider->onGetYUVPlanes(yuvInfo->fSize, planes, yuvInfo->fRowBytes, in init()
[all …]
/external/drm_hwcomposer/
Dplatform.cpp44 std::vector<DrmPlane *> planes = in ProvisionPlanes() local
46 if (planes.empty()) { in ProvisionPlanes()
54 if (!planes.empty()) { in ProvisionPlanes()
55 squash_plane = planes.back(); in ProvisionPlanes()
56 planes.pop_back(); in ProvisionPlanes()
64 if (layers.size() > planes.size()) { in ProvisionPlanes()
65 if (!planes.empty()) { in ProvisionPlanes()
66 precomp_plane = planes.back(); in ProvisionPlanes()
67 planes.pop_back(); in ProvisionPlanes()
77 int ret = i->ProvisionPlanes(&composition, layers, crtc, &planes); in ProvisionPlanes()
[all …]
Dplatform.h64 std::vector<DrmPlane *> *planes) = 0;
68 static DrmPlane *PopPlane(std::vector<DrmPlane *> *planes) { in PopPlane() argument
69 if (planes->empty()) in PopPlane()
71 DrmPlane *plane = planes->front(); in PopPlane()
72 planes->erase(planes->begin()); in PopPlane()
88 std::vector<DrmPlane *> *planes, in Emplace() argument
91 DrmPlane *plane = PopPlane(planes); in Emplace()
152 std::vector<DrmPlane *> *planes);
162 std::vector<DrmPlane *> *planes);
Dplatformnv.cpp199 std::vector<DrmPlane *> *planes) { in GetCrtcPrimaryPlane() argument
200 for (auto i = planes->begin(); i != planes->end(); ++i) { in GetCrtcPrimaryPlane()
203 planes->erase(i); in GetCrtcPrimaryPlane()
213 std::vector<DrmPlane *> *planes) { in ProvisionPlanes() argument
222 auto primary_iter = planes->begin(); in ProvisionPlanes()
223 for (; primary_iter != planes->end(); ++primary_iter) { in ProvisionPlanes()
232 if (primary_iter != planes->end()) { in ProvisionPlanes()
236 planes->erase(primary_iter); in ProvisionPlanes()
261 if (planes->size()) { in ProvisionPlanes()
262 DrmPlane *precomp_plane = planes->back(); in ProvisionPlanes()
[all …]
/external/libjpeg-turbo/java/org/libjpegturbo/turbojpeg/
DYUVImage.java148 public YUVImage(byte[][] planes, int[] offsets, int width, int[] strides, in YUVImage() argument
150 setBuf(planes, offsets, width, strides, height, subsamp, false); in YUVImage()
212 public void setBuf(byte[][] planes, int[] offsets, int width, int strides[], in setBuf() argument
214 setBuf(planes, offsets, width, strides, height, subsamp, false); in setBuf()
217 private void setBuf(byte[][] planes, int[] offsets, int width, int strides[], in setBuf() argument
219 if ((planes == null && !alloc) || width < 1 || height < 1 || subsamp < 0 || in setBuf()
224 if (planes.length != nc || (offsets != null && offsets.length != nc) || in setBuf()
243 planes[i] = new byte[strides[i] * ph]; in setBuf()
245 if (planes[i] == null || offsets[i] < 0) in setBuf()
249 if (planes[i].length < offsets[i] + planeSize) in setBuf()
[all …]
/external/skia/tests/
DImageGeneratorTest.cpp53 void* planes[3] = { nullptr }; in DEF_TEST() local
60 ig.getYUV8Planes(sizes, planes, nullptr, nullptr); in DEF_TEST()
62 ig.getYUV8Planes(sizes, planes, rowBytes, nullptr); in DEF_TEST()
63 ig.getYUV8Planes(sizes, planes, rowBytes, &colorSpace); in DEF_TEST()
66 planes[0] = planes[1] = planes[2] = &dummy; in DEF_TEST()
69 ig.getYUV8Planes(sizes, planes, rowBytes, &colorSpace); in DEF_TEST()
DYUVTest.cpp61 void* planes[3]; in codec_yuv() local
62 planes[0] = storage.get(); in codec_yuv()
63 planes[1] = SkTAddOffset<void>(planes[0], info.fYWidthBytes * info.fYSize.height()); in codec_yuv()
64 planes[2] = SkTAddOffset<void>(planes[1], info.fUWidthBytes * info.fUSize.height()); in codec_yuv()
70 codec->getYUV8Planes(info, planes)); in codec_yuv()
/external/skia/src/core/
DSkImageGenerator.cpp55 bool SkImageGenerator::getYUV8Planes(SkISize sizes[3], void* planes[3], size_t rowBytes[3], in getYUV8Planes()
61 bool isValidWithPlanes = (planes) && (rowBytes) && in getYUV8Planes()
62 ((planes[0]) && (planes[1]) && (planes[2]) && in getYUV8Planes()
65 ((nullptr == planes) || in getYUV8Planes()
66 ((nullptr == planes[0]) && (nullptr == planes[1]) && (nullptr == planes[2]))) && in getYUV8Planes()
88 return this->onGetYUV8Planes(sizes, planes, rowBytes, colorSpace); in getYUV8Planes()
91 bool SkImageGenerator::onGetYUV8Planes(SkISize sizes[3], void* planes[3], size_t rowBytes[3]) { in onGetYUV8Planes()
95 bool SkImageGenerator::onGetYUV8Planes(SkISize sizes[3], void* planes[3], size_t rowBytes[3], in onGetYUV8Planes()
104 return this->onGetYUV8Planes(sizes, planes, rowBytes); in onGetYUV8Planes()
/external/libdrm/tests/util/
Dpattern.c464 static void fill_smpte(const struct util_format_info *info, void *planes[3], in fill_smpte()
475 return fill_smpte_yuv_packed(&info->yuv, planes[0], width, in fill_smpte()
482 u = info->yuv.order & YUV_YCbCr ? planes[1] : planes[1] + 1; in fill_smpte()
483 v = info->yuv.order & YUV_YCrCb ? planes[1] : planes[1] + 1; in fill_smpte()
484 return fill_smpte_yuv_planar(&info->yuv, planes[0], u, v, in fill_smpte()
488 return fill_smpte_yuv_planar(&info->yuv, planes[0], planes[1], in fill_smpte()
489 planes[2], width, height, stride); in fill_smpte()
492 return fill_smpte_yuv_planar(&info->yuv, planes[0], planes[2], in fill_smpte()
493 planes[1], width, height, stride); in fill_smpte()
513 return fill_smpte_rgb16(&info->rgb, planes[0], in fill_smpte()
[all …]
/external/libvpx/libvpx/vp9/
Dvp9_iface_common.h50 img->planes[VPX_PLANE_Y] = yv12->y_buffer; in yuvconfig2image()
51 img->planes[VPX_PLANE_U] = yv12->u_buffer; in yuvconfig2image()
52 img->planes[VPX_PLANE_V] = yv12->v_buffer; in yuvconfig2image()
53 img->planes[VPX_PLANE_ALPHA] = NULL; in yuvconfig2image()
64 img->planes[VPX_PLANE_Y] = (uint8_t*)CONVERT_TO_SHORTPTR(yv12->y_buffer); in yuvconfig2image()
65 img->planes[VPX_PLANE_U] = (uint8_t*)CONVERT_TO_SHORTPTR(yv12->u_buffer); in yuvconfig2image()
66 img->planes[VPX_PLANE_V] = (uint8_t*)CONVERT_TO_SHORTPTR(yv12->v_buffer); in yuvconfig2image()
67 img->planes[VPX_PLANE_ALPHA] = NULL; in yuvconfig2image()
83 yv12->y_buffer = img->planes[VPX_PLANE_Y]; in image2yuvconfig()
84 yv12->u_buffer = img->planes[VPX_PLANE_U]; in image2yuvconfig()
[all …]
/external/opencv3/modules/ts/src/
Dts_func.cpp181 Mat planes[3], buf[3]; in add() local
183 NAryMatIterator it(arrays, planes); in add()
186 int total = (int)planes[0].total(), maxsize = std::min(12*12*std::max(12/cn, 1), total); in add()
188 CV_Assert(planes[0].rows == 1); in add()
200 Mat apart0 = planes[0].colRange(j, j2); in add()
201 Mat cpart0 = planes[2].colRange(j, j2); in add()
216 Mat bpart0 = planes[1].colRange((int)j, (int)j2); in add()
298 Mat planes[2]; in convert() local
300 NAryMatIterator it(arrays, planes); in convert()
301 size_t total = planes[0].total()*planes[0].channels(); in convert()
[all …]
/external/opencv3/samples/cpp/tutorial_code/core/discrete_fourier_transform/
Ddiscrete_fourier_transform.cpp35 Mat planes[] = {Mat_<float>(padded), Mat::zeros(padded.size(), CV_32F)}; in main() local
37 merge(planes, 2, complexI); // Add to the expanded another plane with zeros in main()
43 split(complexI, planes); // planes[0] = Re(DFT(I), planes[1] = Im(DFT(I)) in main()
44 magnitude(planes[0], planes[1], planes[0]);// planes[0] = magnitude in main()
45 Mat magI = planes[0]; in main()
/external/libdrm/tests/kms/
Dlibkms-test-device.c139 device->planes = calloc(res->count_planes, sizeof(plane)); in kms_device_probe_planes()
140 if (!device->planes) in kms_device_probe_planes()
144 plane = kms_plane_create(device, res->planes[i]); in kms_device_probe_planes()
148 device->planes[i] = plane; in kms_device_probe_planes()
182 kms_plane_free(device->planes[i]); in kms_device_close()
184 free(device->planes); in kms_device_close()
209 if (device->planes[i]->type == type) { in kms_device_find_plane_by_type()
211 return device->planes[i]; in kms_device_find_plane_by_type()
/external/libvpx/libvpx/vpx/src/
Dvpx_image.c215 img->planes[VPX_PLANE_PACKED] = in vpx_img_set_rect()
223 img->planes[VPX_PLANE_ALPHA] = in vpx_img_set_rect()
228 img->planes[VPX_PLANE_Y] = data + x * bytes_per_sample + in vpx_img_set_rect()
233 img->planes[VPX_PLANE_U] = in vpx_img_set_rect()
237 img->planes[VPX_PLANE_V] = in vpx_img_set_rect()
241 img->planes[VPX_PLANE_V] = in vpx_img_set_rect()
245 img->planes[VPX_PLANE_U] = in vpx_img_set_rect()
262 img->planes[VPX_PLANE_Y] += (signed)(img->d_h - 1) * img->stride[VPX_PLANE_Y]; in vpx_img_flip()
265 img->planes[VPX_PLANE_U] += (signed)((img->d_h >> img->y_chroma_shift) - 1) in vpx_img_flip()
269 img->planes[VPX_PLANE_V] += (signed)((img->d_h >> img->y_chroma_shift) - 1) in vpx_img_flip()
[all …]
/external/opencv/cv/src/
Dcvtemplmatch.cpp159 CvMat* planes[] = { 0, 0, 0, 0 }; in icvCrossCorr() local
167 planes[k] = templ_depth == max_depth ? dst : in icvCrossCorr()
169 cvSplit( templ, planes[0], planes[1], planes[2], planes[3] ); in icvCrossCorr()
170 src = planes[k]; in icvCrossCorr()
171 planes[k] = 0; in icvCrossCorr()
203 CvMat* planes[] = { 0, 0, 0, 0 }; in icvCrossCorr() local
232 planes[i] = dst1; in icvCrossCorr()
234 planes[i] = cvInitMatHeader( &temp, y2 - y1, x2 - x1, depth, _buf ); in icvCrossCorr()
235 cvSplit( src, planes[0], planes[1], planes[2], planes[3] ); in icvCrossCorr()
236 src = planes[i]; in icvCrossCorr()
[all …]
/external/libdrm/tests/modetest/
Dbuffers.c137 void *planes[3] = { 0, }; in bo_create() local
247 planes[0] = virtual; in bo_create()
261 planes[0] = virtual; in bo_create()
262 planes[1] = virtual + offsets[1]; in bo_create()
277 planes[0] = virtual; in bo_create()
278 planes[1] = virtual + offsets[1]; in bo_create()
279 planes[2] = virtual + offsets[2]; in bo_create()
322 planes[0] = virtual; in bo_create()
326 util_fill_pattern(format, pattern, planes, width, height, pitches[0]); in bo_create()
/external/opencv3/samples/gpu/
Dfarneback_optical_flow.cpp93 GpuMat planes[2]; in main() local
94 cuda::split(d_flow, planes); in main()
96 planes[0].download(flowx); in main()
97 planes[1].download(flowy); in main()
107 Mat planes[] = {flowx, flowy}; in main() local
108 split(flowxy, planes); in main()
109 flowx = planes[0]; flowy = planes[1]; in main()
/external/opencv/cvaux/src/
Dcamshift.cpp86 uchar* planes[CV_MAX_DIM]; in color_transform() local
116 cvGetRawData( m_color_planes[i], &planes[i], &plane_step, &size ); in color_transform()
132 planes[0][x] = (uchar)val0; in color_transform()
134 planes[1][x] = (uchar)val1; in color_transform()
136 planes[2][x] = (uchar)val2; in color_transform()
142 planes[0][x] = 0; in color_transform()
144 planes[1][x] = 0; in color_transform()
146 planes[2][x] = 0; in color_transform()
151 planes[i] += plane_step; in color_transform()

1234567