Home
last modified time | relevance | path

Searched refs:uchar (Results 1 – 25 of 686) sorted by relevance

12345678910>>...28

/external/opencv/otherlibs/highgui/
Dutils.h51 (((uchar*)(ptr))[0] = (clr).b, \
52 ((uchar*)(ptr))[1] = (clr).g, \
53 ((uchar*)(ptr))[2] = (clr).r)
56 #define saturate(x) (uchar)(((x) & ~255) == 0 ? (x) : ~((x)>>31))
61 void icvCvt_BGR2Gray_8u_C3C1R( const uchar* bgr, int bgr_step,
62 uchar* gray, int gray_step,
64 void icvCvt_BGRA2Gray_8u_C4C1R( const uchar* bgra, int bgra_step,
65 uchar* gray, int gray_step,
67 void icvCvt_Gray2BGR_8u_C1C3R( const uchar* gray, int gray_step,
68 uchar* bgr, int bgr_step, CvSize size );
[all …]
Dutils.cpp83 void icvCvt_BGR2Gray_8u_C3C1R( const uchar* rgb, int rgb_step, in icvCvt_BGR2Gray_8u_C3C1R()
84 uchar* gray, int gray_step, in icvCvt_BGR2Gray_8u_C3C1R()
94 gray[i] = (uchar)t; in icvCvt_BGR2Gray_8u_C3C1R()
121 void icvCvt_BGRA2Gray_8u_C4C1R( const uchar* rgba, int rgba_step, in icvCvt_BGRA2Gray_8u_C4C1R()
122 uchar* gray, int gray_step, in icvCvt_BGRA2Gray_8u_C4C1R()
132 gray[i] = (uchar)t; in icvCvt_BGRA2Gray_8u_C4C1R()
140 void icvCvt_Gray2BGR_8u_C1C3R( const uchar* gray, int gray_step, in icvCvt_Gray2BGR_8u_C1C3R()
141 uchar* bgr, int bgr_step, CvSize size ) in icvCvt_Gray2BGR_8u_C1C3R()
155 void icvCvt_BGRA2BGR_8u_C4C3R( const uchar* bgra, int bgra_step, in icvCvt_BGRA2BGR_8u_C4C3R()
156 uchar* bgr, int bgr_step, in icvCvt_BGRA2BGR_8u_C4C3R()
[all …]
/external/opencv3/modules/imgcodecs/src/
Dutils.hpp51 (((uchar*)(ptr))[0] = (clr).b, \
52 ((uchar*)(ptr))[1] = (clr).g, \
53 ((uchar*)(ptr))[2] = (clr).r)
56 #define saturate(x) (uchar)(((x) & ~255) == 0 ? (x) : ~((x)>>31))
58 void icvCvt_BGR2Gray_8u_C3C1R( const uchar* bgr, int bgr_step,
59 uchar* gray, int gray_step,
61 void icvCvt_BGRA2Gray_8u_C4C1R( const uchar* bgra, int bgra_step,
62 uchar* gray, int gray_step,
68 void icvCvt_Gray2BGR_8u_C1C3R( const uchar* gray, int gray_step,
69 uchar* bgr, int bgr_step, CvSize size );
[all …]
Dutils.cpp50 void icvCvt_BGR2Gray_8u_C3C1R( const uchar* rgb, int rgb_step, in icvCvt_BGR2Gray_8u_C3C1R()
51 uchar* gray, int gray_step, in icvCvt_BGR2Gray_8u_C3C1R()
61 gray[i] = (uchar)t; in icvCvt_BGR2Gray_8u_C3C1R()
88 void icvCvt_BGRA2Gray_8u_C4C1R( const uchar* rgba, int rgba_step, in icvCvt_BGRA2Gray_8u_C4C1R()
89 uchar* gray, int gray_step, in icvCvt_BGRA2Gray_8u_C4C1R()
99 gray[i] = (uchar)t; in icvCvt_BGRA2Gray_8u_C4C1R()
107 void icvCvt_Gray2BGR_8u_C1C3R( const uchar* gray, int gray_step, in icvCvt_Gray2BGR_8u_C1C3R()
108 uchar* bgr, int bgr_step, CvSize size ) in icvCvt_Gray2BGR_8u_C1C3R()
137 void icvCvt_BGRA2BGR_8u_C4C3R( const uchar* bgra, int bgra_step, in icvCvt_BGRA2BGR_8u_C4C3R()
138 uchar* bgr, int bgr_step, in icvCvt_BGRA2BGR_8u_C4C3R()
[all …]
Dbitstrm.cpp67 m_start = new uchar[m_block_size]; in allocate()
202 uchar *current = m_current; in getByte()
211 val = *((uchar*)current); in getByte()
219 uchar* data = (uchar*)buffer; in getBytes()
253 uchar *current = m_current; in getWord()
272 uchar *current = m_current; in getDWord()
294 uchar *current = m_current; in getWord()
313 uchar *current = m_current; in getDWord()
361 m_start = new uchar[m_block_size]; in allocate()
406 bool WBaseStream::open( std::vector<uchar>& buf ) in open()
[all …]
/external/opencv3/modules/cudaarithm/src/cuda/
Dadd_weighted.cu106 addWeightedImpl<uchar, uchar, uchar >, in addWeighted()
107 addWeightedImpl<uchar, uchar, schar >, in addWeighted()
108 addWeightedImpl<uchar, uchar, ushort>, in addWeighted()
109 addWeightedImpl<uchar, uchar, short >, in addWeighted()
110 addWeightedImpl<uchar, uchar, int >, in addWeighted()
111 addWeightedImpl<uchar, uchar, float >, in addWeighted()
112 addWeightedImpl<uchar, uchar, double> in addWeighted()
115 addWeightedImpl<uchar, schar, uchar >, in addWeighted()
116 addWeightedImpl<uchar, schar, schar >, in addWeighted()
117 addWeightedImpl<uchar, schar, ushort>, in addWeighted()
[all …]
Dcmp_scalar.cu59 template <class Op, typename T> struct CmpOp : binary_function<T, T, uchar>
61 __device__ __forceinline__ uchar operator()(T a, T b) const in operator ()()
73 struct CmpScalarOp<Op, T, 1> : unary_function<T, uchar>
77 __device__ __forceinline__ uchar operator()(T src) const in operator ()()
85 struct CmpScalarOp<Op, T, 2> : unary_function<MAKE_VEC(T, 2), MAKE_VEC(uchar, 2)>
89 __device__ __forceinline__ MAKE_VEC(uchar, 2) operator()(const MAKE_VEC(T, 2) & src) const
92 return VecTraits<MAKE_VEC(uchar, 2)>::make(op(src.x, val.x), op(src.y, val.y));
97 struct CmpScalarOp<Op, T, 3> : unary_function<MAKE_VEC(T, 3), MAKE_VEC(uchar, 3)>
101 __device__ __forceinline__ MAKE_VEC(uchar, 3) operator()(const MAKE_VEC(T, 3) & src) const
104 … return VecTraits<MAKE_VEC(uchar, 3)>::make(op(src.x, val.x), op(src.y, val.y), op(src.z, val.z));
[all …]
Dlut.cu61 texture<uchar, cudaTextureType1D, cudaReadModeElementType> texLutTable;
101 texRes.res.linear.desc = cudaCreateChannelDesc<uchar>(); in LookUpTableImpl()
102 texRes.res.linear.sizeInBytes = 256 * d_lut.channels() * sizeof(uchar); in LookUpTableImpl()
112 cudaChannelFormatDesc desc = cudaCreateChannelDesc<uchar>(); in LookUpTableImpl()
133 typedef uchar value_type;
134 typedef uchar index_type;
138 __device__ __forceinline__ uchar operator ()(uchar, uchar x) const in operator ()()
145 return tex1Dfetch<uchar>(texLutTableObj, x); in operator ()()
163 …turn make_uchar3(tex1Dfetch<uchar>(texLutTableObj, x.x * 3), tex1Dfetch<uchar>(texLutTableObj, x.y… in operator ()()
182 GpuMat_<uchar> src1(src.reshape(1)); in transform()
[all …]
/external/v8/src/
Dunicode.h18 typedef unsigned int uchar; typedef
31 inline bool get(uchar c);
35 bool CalculateValue(uchar c);
40 inline CacheEntry(uchar code_point, bool value) in CacheEntry()
44 uchar code_point() const { return CodePointField::decode(bit_field_); } in code_point()
48 class CodePointField : public v8::internal::BitField<uchar, 0, 21> {};
67 inline int get(uchar c, uchar n, uchar* result);
70 int CalculateValue(uchar c, uchar n, uchar* result);
73 inline CacheEntry(uchar code_point, signed offset) in CacheEntry()
76 uchar code_point_;
[all …]
/external/opencv3/modules/core/include/opencv2/core/cuda/
Dvec_math.hpp164 CV_CUDEV_IMPLEMENT_VEC_UNARY_OP(!, uchar, uchar)
165 CV_CUDEV_IMPLEMENT_VEC_UNARY_OP(!, char, uchar)
166 CV_CUDEV_IMPLEMENT_VEC_UNARY_OP(!, ushort, uchar)
167 CV_CUDEV_IMPLEMENT_VEC_UNARY_OP(!, short, uchar)
168 CV_CUDEV_IMPLEMENT_VEC_UNARY_OP(!, int, uchar)
169 CV_CUDEV_IMPLEMENT_VEC_UNARY_OP(!, uint, uchar)
170 CV_CUDEV_IMPLEMENT_VEC_UNARY_OP(!, float, uchar)
171 CV_CUDEV_IMPLEMENT_VEC_UNARY_OP(!, double, uchar)
173 CV_CUDEV_IMPLEMENT_VEC_UNARY_OP(~, uchar, uchar)
202 CV_CUDEV_IMPLEMENT_VEC_UNARY_FUNC(abs, /*::abs*/, uchar, uchar)
[all …]
/external/opencv3/modules/cudev/include/opencv2/cudev/util/
Dvec_math.hpp162 CV_CUDEV_IMPLEMENT_VEC_UNARY_OP(!, uchar, uchar)
163 CV_CUDEV_IMPLEMENT_VEC_UNARY_OP(!, char, uchar)
164 CV_CUDEV_IMPLEMENT_VEC_UNARY_OP(!, ushort, uchar)
165 CV_CUDEV_IMPLEMENT_VEC_UNARY_OP(!, short, uchar)
166 CV_CUDEV_IMPLEMENT_VEC_UNARY_OP(!, int, uchar)
167 CV_CUDEV_IMPLEMENT_VEC_UNARY_OP(!, uint, uchar)
168 CV_CUDEV_IMPLEMENT_VEC_UNARY_OP(!, float, uchar)
169 CV_CUDEV_IMPLEMENT_VEC_UNARY_OP(!, double, uchar)
171 CV_CUDEV_IMPLEMENT_VEC_UNARY_OP(~, uchar, uchar)
213 CV_CUDEV_IMPLEMENT_VEC_UNARY_FUNC(abs, /*::abs*/, uchar, uchar)
[all …]
/external/opencv3/modules/photo/src/
Dinpaint.cpp93 num += CV_MAT_ELEM(*f,uchar,i,j)!=0; in Init()
123 if (CV_MAT_ELEM(*f,uchar,i,j)!=0) { in Add()
219 if( CV_MAT_ELEM(*f,uchar,i1,j1) != INSIDE ) in FastMarching_solve()
220 if( CV_MAT_ELEM(*f,uchar,i2,j2) != INSIDE ) in FastMarching_solve()
227 else if( CV_MAT_ELEM(*f,uchar,i2,j2) != INSIDE ) in FastMarching_solve()
246 CV_MAT_ELEM(*f,uchar,ii,jj) = (uchar)known; in icvCalcFMM()
256 if (CV_MAT_ELEM(*f,uchar,i,j)==INSIDE) { in icvCalcFMM()
262 CV_MAT_ELEM(*f,uchar,i,j) = BAND; in icvCalcFMM()
271 if (CV_MAT_ELEM(*f,uchar,i,j) == CHANGE) { in icvCalcFMM()
272 CV_MAT_ELEM(*f,uchar,i,j) = KNOWN; in icvCalcFMM()
[all …]
/external/opencv3/modules/cudacodec/src/cuda/
Drgb_to_yv12.cu59 __device__ __forceinline__ void rgb_to_y(const uchar b, const uchar g, const uchar r, uchar& y) in rgb_to_y()
61 y = static_cast<uchar>(((int)(30 * r) + (int)(59 * g) + (int)(11 * b)) / 100); in rgb_to_y()
64 …ice__ __forceinline__ void rgb_to_yuv(const uchar b, const uchar g, const uchar r, uchar& y, uchar in rgb_to_yuv()
67 u = static_cast<uchar>(((int)(-17 * r) - (int)(33 * g) + (int)(50 * b) + 12800) / 100); in rgb_to_yuv()
68 v = static_cast<uchar>(((int)(50 * r) - (int)(42 * g) - (int)(8 * b) + 12800) / 100); in rgb_to_yuv()
71 __global__ void Gray_to_YV12(const GlobPtrSz<uchar> src, GlobPtr<uchar> dst) in Gray_to_YV12()
81 GlobPtr<uchar> y_plane = globPtr(dst.data, dst.step); in Gray_to_YV12()
82 GlobPtr<uchar> u_plane = globPtr(y_plane.data + planeSize, dst.step / 2); in Gray_to_YV12()
83 GlobPtr<uchar> v_plane = globPtr(u_plane.data + (planeSize / 4), dst.step / 2); in Gray_to_YV12()
85 uchar pix; in Gray_to_YV12()
[all …]
/external/opencv/cv/src/
Dcvinpaint.cpp91 num += CV_MAT_ELEM(*f,uchar,i,j)!=0; in Init()
121 if (CV_MAT_ELEM(*f,uchar,i,j)!=0) { in Add()
217 if( CV_MAT_ELEM(*f,uchar,i1,j1) != INSIDE ) in FastMarching_solve()
218 if( CV_MAT_ELEM(*f,uchar,i2,j2) != INSIDE ) in FastMarching_solve()
225 else if( CV_MAT_ELEM(*f,uchar,i2,j2) != INSIDE ) in FastMarching_solve()
244 CV_MAT_ELEM(*f,uchar,ii,jj) = (uchar)known; in icvCalcFMM()
254 if (CV_MAT_ELEM(*f,uchar,i,j)==INSIDE) { in icvCalcFMM()
260 CV_MAT_ELEM(*f,uchar,i,j) = BAND; in icvCalcFMM()
269 if (CV_MAT_ELEM(*f,uchar,i,j) == CHANGE) { in icvCalcFMM()
270 CV_MAT_ELEM(*f,uchar,i,j) = KNOWN; in icvCalcFMM()
[all …]
/external/opencv3/modules/imgproc/test/
Dtest_thresh.cpp133 ithresh2 = saturate_cast<uchar>(ithresh); in test_threshold()
134 imaxval = saturate_cast<uchar>(maxval); in test_threshold()
156 const uchar* src = _src.ptr<uchar>(i); in test_threshold()
157 uchar* dst = _dst.ptr<uchar>(i); in test_threshold()
159 dst[j] = (uchar)(src[j] > ithresh ? imaxval : 0); in test_threshold()
182 const uchar* src = _src.ptr<uchar>(i); in test_threshold()
183 uchar* dst = _dst.ptr<uchar>(i); in test_threshold()
185 dst[j] = (uchar)(src[j] > ithresh ? 0 : imaxval); in test_threshold()
208 const uchar* src = _src.ptr<uchar>(i); in test_threshold()
209 uchar* dst = _dst.ptr<uchar>(i); in test_threshold()
[all …]
Dtest_cvtyuv.cpp59 virtual void write(Mat& gray, int row, int col, const uchar& val) in write()
61 gray.at<uchar>(row, col) = val; in write()
139 yuv.ptr<uchar>(row)[col] = val[0]; in write()
142 yuv.ptr<uchar>(h + row/4)[col/2 + ((row/2) % 2) * (yuv.cols/2)] = val[2]; in write()
143 … yuv.ptr<uchar>(h + (row/2 + h/2)/2)[col/2 + ((row/2 + h/2) % 2) * (yuv.cols/2)] = val[1]; in write()
154 yuv.ptr<uchar>(row)[col] = val[0]; in write()
157 yuv.ptr<uchar>(h + row/4)[col/2 + ((row/2) % 2) * (yuv.cols/2)] = val[1]; in write()
158 … yuv.ptr<uchar>(h + (row/2 + h/2)/2)[col/2 + ((row/2 + h/2) % 2) * (yuv.cols/2)] = val[2]; in write()
180 uchar y = yuv.ptr<uchar>(row)[col]; in read()
181 uchar u = yuv.ptr<uchar>(yuv.rows * 2 / 3 + row/2)[(col/2)*2 + 1]; in read()
[all …]
/external/opencv/
DWLNonFileByteStream.cpp36 m_start = new uchar[data_size]; in Allocate()
73 *m_current++ = (uchar)val; in PutByte()
79 uchar* data = (uchar*)buffer; in PutBytes()
103 uchar *current = m_current; in PutWord()
107 current[0] = (uchar)val; in PutWord()
108 current[1] = (uchar)(val >> 8); in PutWord()
121 uchar *current = m_current; in PutDWord()
125 current[0] = (uchar)val; in PutDWord()
126 current[1] = (uchar)(val >> 8); in PutDWord()
127 current[2] = (uchar)(val >> 16); in PutDWord()
[all …]
/external/opencv/cvaux/src/
Dcvmorphing.cpp46 icvMorphEpilines8uC3( uchar * first_pix, /* raster epiline from image 1 */ in icvMorphEpilines8uC3()
47 uchar * second_pix, /* raster epiline from image 2 */ in icvMorphEpilines8uC3()
48 uchar * dst_pix, /* raster epiline from dest image */ in icvMorphEpilines8uC3()
120 dst_pix[indexImg1] = (uchar) (((int) (first_pix[begLineIndex]) * s) >> 8); in icvMorphEpilines8uC3()
125 dst_pix[indexImg1] = (uchar) (((int) (first_pix[begLineIndex + 1]) * s) >> 8); in icvMorphEpilines8uC3()
130 dst_pix[indexImg1] = (uchar) (((int) (first_pix[begLineIndex + 2]) * s) >> 8); in icvMorphEpilines8uC3()
210 (uchar) (dst_pix[indexImg1] + in icvMorphEpilines8uC3()
211 (uchar) (((unsigned int) (second_pix[begLineIndex]) * s1) >> 8)); in icvMorphEpilines8uC3()
217 (uchar) (dst_pix[indexImg1] + in icvMorphEpilines8uC3()
218 (uchar) (((unsigned int) (second_pix[begLineIndex + 1]) * s1) >> in icvMorphEpilines8uC3()
[all …]
/external/opencv3/samples/cpp/tutorial_code/core/how_to_scan_images/
Dhow_to_scan_images.cpp25 Mat& ScanImageAndReduceC(Mat& I, const uchar* table);
26 Mat& ScanImageAndReduceIterator(Mat& I, const uchar* table);
27 Mat& ScanImageAndReduceRandomAccess(Mat& I, const uchar * table);
61 uchar table[256]; in main()
63 table[i] = (uchar)(divideWith * (i/divideWith)); in main()
113 uchar* p = lookUpTable.ptr(); in main()
134 Mat& ScanImageAndReduceC(Mat& I, const uchar* const table) in ScanImageAndReduceC()
137 CV_Assert(I.depth() != sizeof(uchar)); in ScanImageAndReduceC()
151 uchar* p; in ScanImageAndReduceC()
154 p = I.ptr<uchar>(i); in ScanImageAndReduceC()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/bidi/
DBidiTest.java196 char uchar; in buildPseudoTables() local
245 for (i = 0, uchar = 0x0030; i < 6; i++, uchar++) { in buildPseudoTables()
247 pseudoToUChar[c] = uchar; in buildPseudoTables()
248 UCharToPseudo[uchar & 0x00ff] = c; in buildPseudoTables()
251 for (i = 6, uchar = 0x0666; i < 10; i++, uchar++) { in buildPseudoTables()
253 pseudoToUChar[c] = uchar; in buildPseudoTables()
254 UCharToPseud2[uchar & 0x00ff] = c; in buildPseudoTables()
257 for (i = 10, uchar = 0x0631; i < 16; i++, uchar++) { in buildPseudoTables()
259 pseudoToUChar[c] = uchar; in buildPseudoTables()
260 UCharToPseud2[uchar & 0x00ff] = c; in buildPseudoTables()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/bidi/
DBidiTest.java192 char uchar; in buildPseudoTables() local
241 for (i = 0, uchar = 0x0030; i < 6; i++, uchar++) { in buildPseudoTables()
243 pseudoToUChar[c] = uchar; in buildPseudoTables()
244 UCharToPseudo[uchar & 0x00ff] = c; in buildPseudoTables()
247 for (i = 6, uchar = 0x0666; i < 10; i++, uchar++) { in buildPseudoTables()
249 pseudoToUChar[c] = uchar; in buildPseudoTables()
250 UCharToPseud2[uchar & 0x00ff] = c; in buildPseudoTables()
253 for (i = 10, uchar = 0x0631; i < 16; i++, uchar++) { in buildPseudoTables()
255 pseudoToUChar[c] = uchar; in buildPseudoTables()
256 UCharToPseud2[uchar & 0x00ff] = c; in buildPseudoTables()
[all …]
/external/opencv3/modules/video/src/
Dbgfg_KNN.cpp179 virtual void setShadowValue(int value) { nShadowDetection = (uchar)value; } in setShadowValue()
204 nShadowDetection = saturate_cast<uchar>((int)fn["shadowValue"]); in read()
257 _cvUpdatePixelBackgroundNP( long pixel,const uchar* data, int nchannels, int m_nN, in _cvUpdatePixelBackgroundNP()
258 uchar* m_aModel, in _cvUpdatePixelBackgroundNP()
259 uchar* m_nNextLongUpdate, in _cvUpdatePixelBackgroundNP()
260 uchar* m_nNextMidUpdate, in _cvUpdatePixelBackgroundNP()
261 uchar* m_nNextShortUpdate, in _cvUpdatePixelBackgroundNP()
262 uchar* m_aModelIndexLong, in _cvUpdatePixelBackgroundNP()
263 uchar* m_aModelIndexMid, in _cvUpdatePixelBackgroundNP()
264 uchar* m_aModelIndexShort, in _cvUpdatePixelBackgroundNP()
[all …]
/external/opencv3/modules/cudev/test/
Dtest_reduction.cu57 GpuMat_<uchar> d_src(src); in TEST()
92 GpuMat_<uchar> d_src(src); in TEST()
128 GpuMat_<uchar> d_src(src); in TEST()
147 GpuMat_<uchar> d_src(src); in TEST()
161 GpuMat_<uchar> d_src(src); in TEST()
177 GpuMat_<uchar> d_src(src); in TEST()
193 GpuMat_<uchar> d_src(src); in TEST()
195 GpuMat_<uchar> dst = reduceToRow_<Min<uchar> >(d_src); in TEST()
209 GpuMat_<uchar> d_src(src); in TEST()
211 GpuMat_<uchar> dst = reduceToRow_<Max<uchar> >(d_src); in TEST()
[all …]
/external/opencv3/modules/video/src/opencl/
Dbgfg_mog2.cl39 … void mog2_kernel(__global const uchar* frame, int frame_step, int frame_offset, int frame_row, in…
40 …__global uchar* modesUsed, //uc…
41 …__global uchar* weight, //fl…
42 …__global uchar* mean, //T_…
43 …__global uchar* variance, //fl…
44 …__global uchar* fgmask, int fgmask_step, int fgmask_offset, //uc…
49 , uchar c_shadowVal
58 __global const uchar* _frame = (frame + mad24(y, frame_step, mad24(x, CN, frame_offset)));
62 uchar foreground = 255; // 0 - the pixel classified as background
69 __global uchar* _modesUsed = modesUsed + pt_idx;
[all …]
/external/opencv3/samples/cpp/tutorial_code/core/interoperability_with_OpenCV_1/
Dinteroperability_with_OpenCV_1.cpp70 MatIterator_<uchar> it = planes[0].begin<uchar>(), it_end = planes[0].end<uchar>(); in main()
74 *it = saturate_cast<uchar>(v*v/255); in main()
80 uchar* Uptr = planes[1].ptr<uchar>(y); in main()
83 Uptr[x] = saturate_cast<uchar>((Uptr[x]-128)/2 + 128); in main()
86 uchar& Vxy = planes[2].at<uchar>(y, x); in main()
87 Vxy = saturate_cast<uchar>((Vxy-128)/2 + 128); in main()
125 planes[2] = Mat_<uchar>(planes[2]*color_scale + 128*(1-color_scale)); in main()

12345678910>>...28