Home
last modified time | relevance | path

Searched refs:image (Results 1 – 25 of 2014) sorted by relevance

12345678910>>...81

/external/opencv/cxcore/include/
Dcxcore.hpp49 CvImage() : image(0), refcount(0) {} in CvImage()
52 image = cvCreateImage( size, depth, channels ); in CvImage()
53 refcount = image ? new int(1) : 0; in CvImage()
56 CvImage( IplImage* img ) : image(img) in CvImage()
58 refcount = image ? new int(1) : 0; in CvImage()
61 CvImage( const CvImage& img ) : image(img.image), refcount(img.refcount) in CvImage()
66 CvImage( const char* filename, const char* imgname=0, int color=-1 ) : image(0), refcount(0) in CvImage()
69 CvImage( CvFileStorage* fs, const char* mapname, const char* imgname ) : image(0), refcount(0) in CvImage()
72 CvImage( CvFileStorage* fs, const char* seqname, int idx ) : image(0), refcount(0) in CvImage()
79 cvReleaseImage( &image ); in ~CvImage()
[all …]
/external/opencv3/3rdparty/libjasper/jasper/
Djas_image.h267 int (*encode)(jas_image_t *image, jas_stream_t *out, char *opts);
308 jas_image_t *jas_image_copy(jas_image_t *image);
311 void jas_image_destroy(jas_image_t *image);
314 #define jas_image_width(image) \ argument
315 ((image)->brx_ - (image)->tlx_)
318 #define jas_image_height(image) \ argument
319 ((image)->bry_ - (image)->tly_)
323 #define jas_image_tlx(image) \ argument
324 ((image)->tlx_)
328 #define jas_image_tly(image) \ argument
[all …]
/external/opencv3/modules/imgcodecs/src/
Dgrfmt_gdal.cpp218 Mat& image, in write_pixel() argument
224 double newValue = range_cast(gdalType, image.depth(), pixelValue ); in write_pixel()
227 if( gdalChannels == 1 && image.channels() == 1 ){ in write_pixel()
228 if( image.depth() == CV_8U ){ image.at<uchar>(row,col) = newValue; } in write_pixel()
229 else if( image.depth() == CV_16U ){ image.at<unsigned short>(row,col) = newValue; } in write_pixel()
230 else if( image.depth() == CV_16S ){ image.at<short>(row,col) = newValue; } in write_pixel()
231 else if( image.depth() == CV_32S ){ image.at<int>(row,col) = newValue; } in write_pixel()
232 else if( image.depth() == CV_32F ){ image.at<float>(row,col) = newValue; } in write_pixel()
233 else if( image.depth() == CV_64F ){ image.at<double>(row,col) = newValue; } in write_pixel()
238 else if( gdalChannels == 1 && image.channels() == 3 ){ in write_pixel()
[all …]
/external/deqp/framework/delibs/deimage/
DdeImage.c36 static void* getPixelAddress (const deImage* image, int x, int y) in getPixelAddress() argument
38 int offset = ((y*image->width) + x) * deImageFormat_getBytesPerPixel(image->format); in getPixelAddress()
39 DE_ASSERT(deInBounds32(x, 0, image->width)); in getPixelAddress()
40 DE_ASSERT(deInBounds32(y, 0, image->height)); in getPixelAddress()
41 return (void*)((deUint8*)image->pixels + offset); in getPixelAddress()
46 deImage* image = DE_NEW(deImage); in deImage_create() local
48 if (!image) in deImage_create()
51 image->width = width; in deImage_create()
52 image->height = height; in deImage_create()
53 image->format = format; in deImage_create()
[all …]
/external/mesa3d/src/mesa/drivers/dri/i915/
Dintel_screen.c250 __DRIimage *image; in intel_allocate_image() local
252 image = CALLOC(sizeof *image); in intel_allocate_image()
253 if (image == NULL) in intel_allocate_image()
256 image->dri_format = dri_format; in intel_allocate_image()
257 image->offset = 0; in intel_allocate_image()
261 image->format = MESA_FORMAT_RGB565; in intel_allocate_image()
264 image->format = MESA_FORMAT_XRGB8888; in intel_allocate_image()
267 image->format = MESA_FORMAT_ARGB8888; in intel_allocate_image()
270 image->format = MESA_FORMAT_RGBA8888_REV; in intel_allocate_image()
273 image->format = MESA_FORMAT_RGBX8888_REV; in intel_allocate_image()
[all …]
/external/mesa3d/src/mesa/drivers/dri/intel/
Dintel_screen.c250 __DRIimage *image; in intel_allocate_image() local
252 image = CALLOC(sizeof *image); in intel_allocate_image()
253 if (image == NULL) in intel_allocate_image()
256 image->dri_format = dri_format; in intel_allocate_image()
257 image->offset = 0; in intel_allocate_image()
261 image->format = MESA_FORMAT_RGB565; in intel_allocate_image()
264 image->format = MESA_FORMAT_XRGB8888; in intel_allocate_image()
267 image->format = MESA_FORMAT_ARGB8888; in intel_allocate_image()
270 image->format = MESA_FORMAT_RGBA8888_REV; in intel_allocate_image()
273 image->format = MESA_FORMAT_RGBX8888_REV; in intel_allocate_image()
[all …]
/external/mesa3d/src/mesa/drivers/dri/i965/
Dintel_screen.c250 __DRIimage *image; in intel_allocate_image() local
252 image = CALLOC(sizeof *image); in intel_allocate_image()
253 if (image == NULL) in intel_allocate_image()
256 image->dri_format = dri_format; in intel_allocate_image()
257 image->offset = 0; in intel_allocate_image()
261 image->format = MESA_FORMAT_RGB565; in intel_allocate_image()
264 image->format = MESA_FORMAT_XRGB8888; in intel_allocate_image()
267 image->format = MESA_FORMAT_ARGB8888; in intel_allocate_image()
270 image->format = MESA_FORMAT_RGBA8888_REV; in intel_allocate_image()
273 image->format = MESA_FORMAT_RGBX8888_REV; in intel_allocate_image()
[all …]
/external/mesa3d/src/mesa/drivers/dri/radeon/
Dradeon_screen.c209 __DRIimage *image; in radeon_create_image_from_name() local
215 image = CALLOC(sizeof *image); in radeon_create_image_from_name()
216 if (image == NULL) in radeon_create_image_from_name()
221 image->format = MESA_FORMAT_RGB565; in radeon_create_image_from_name()
222 image->internal_format = GL_RGB; in radeon_create_image_from_name()
223 image->data_type = GL_UNSIGNED_BYTE; in radeon_create_image_from_name()
226 image->format = MESA_FORMAT_XRGB8888; in radeon_create_image_from_name()
227 image->internal_format = GL_RGB; in radeon_create_image_from_name()
228 image->data_type = GL_UNSIGNED_BYTE; in radeon_create_image_from_name()
231 image->format = MESA_FORMAT_ARGB8888; in radeon_create_image_from_name()
[all …]
Dradeon_texture.c109 radeon_texture_image *image = get_radeon_texture_image(timage); in radeonAllocTextureImageBuffer() local
122 assert(!image->base.ImageOffsets); in radeonAllocTextureImageBuffer()
123 image->base.ImageOffsets = malloc(slices * sizeof(GLuint)); in radeonAllocTextureImageBuffer()
135 radeon_texture_image* image = get_radeon_texture_image(timage); in radeonFreeTextureImageBuffer() local
137 if (image->mt) { in radeonFreeTextureImageBuffer()
138 radeon_miptree_unreference(&image->mt); in radeonFreeTextureImageBuffer()
142 if (image->bo) { in radeonFreeTextureImageBuffer()
143 radeon_bo_unref(image->bo); in radeonFreeTextureImageBuffer()
144 image->bo = NULL; in radeonFreeTextureImageBuffer()
146 if (image->base.Buffer) { in radeonFreeTextureImageBuffer()
[all …]
/external/mesa3d/src/mesa/drivers/dri/r200/
Dradeon_screen.c209 __DRIimage *image; in radeon_create_image_from_name() local
215 image = CALLOC(sizeof *image); in radeon_create_image_from_name()
216 if (image == NULL) in radeon_create_image_from_name()
221 image->format = MESA_FORMAT_RGB565; in radeon_create_image_from_name()
222 image->internal_format = GL_RGB; in radeon_create_image_from_name()
223 image->data_type = GL_UNSIGNED_BYTE; in radeon_create_image_from_name()
226 image->format = MESA_FORMAT_XRGB8888; in radeon_create_image_from_name()
227 image->internal_format = GL_RGB; in radeon_create_image_from_name()
228 image->data_type = GL_UNSIGNED_BYTE; in radeon_create_image_from_name()
231 image->format = MESA_FORMAT_ARGB8888; in radeon_create_image_from_name()
[all …]
Dradeon_texture.c109 radeon_texture_image *image = get_radeon_texture_image(timage); in radeonAllocTextureImageBuffer() local
122 assert(!image->base.ImageOffsets); in radeonAllocTextureImageBuffer()
123 image->base.ImageOffsets = malloc(slices * sizeof(GLuint)); in radeonAllocTextureImageBuffer()
135 radeon_texture_image* image = get_radeon_texture_image(timage); in radeonFreeTextureImageBuffer() local
137 if (image->mt) { in radeonFreeTextureImageBuffer()
138 radeon_miptree_unreference(&image->mt); in radeonFreeTextureImageBuffer()
142 if (image->bo) { in radeonFreeTextureImageBuffer()
143 radeon_bo_unref(image->bo); in radeonFreeTextureImageBuffer()
144 image->bo = NULL; in radeonFreeTextureImageBuffer()
146 if (image->base.Buffer) { in radeonFreeTextureImageBuffer()
[all …]
/external/opencv3/modules/cudaimgproc/src/
Dmatch_template.cpp58 …void matchTemplateNaive_CCORR_8U(const PtrStepSzb image, const PtrStepSzb templ, PtrStepSzf result…
59 …void matchTemplateNaive_CCORR_32F(const PtrStepSzb image, const PtrStepSzb templ, PtrStepSzf resul…
61 …void matchTemplateNaive_SQDIFF_8U(const PtrStepSzb image, const PtrStepSzb templ, PtrStepSzf resul…
62 …void matchTemplateNaive_SQDIFF_32F(const PtrStepSzb image, const PtrStepSzb templ, PtrStepSzf resu…
136 …void extractFirstChannel_32F(const PtrStepSzb image, PtrStepSzf result, int cn, cudaStream_t strea…
171 …void match(InputArray image, InputArray templ, OutputArray result, Stream& stream = Stream::Null()…
187 GpuMat image = _image.getGpuMat(); in match() local
190 CV_Assert( image.depth() == CV_32F ); in match()
191 CV_Assert( image.type() == templ.type() ); in match()
192 CV_Assert( image.cols >= templ.cols && image.rows >= templ.rows ); in match()
[all …]
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.apache.ant_1.7.1.v20090120-1145/lib/
Dant-jai.jar ... instr int i javax.media.jai.PlanarImage image java.awt.image.BufferedImage bi java. ...
/external/opencv3/3rdparty/libjasper/
Djas_image.c100 static void jas_image_setbbox(jas_image_t *image);
102 static int jas_image_growcmpts(jas_image_t *image, int maxcmpts);
107 static void jas_image_calcbbox2(jas_image_t *image, jas_image_coord_t *tlx,
113 static void jas_image_calcbbox2(jas_image_t *image, jas_image_coord_t *tlx,
130 jas_image_t *image; in jas_image_create() local
136 if (!(image = jas_image_create0())) { in jas_image_create()
140 image->clrspc_ = clrspc; in jas_image_create()
141 image->maxcmpts_ = numcmpts; in jas_image_create()
142 image->inmem_ = true; in jas_image_create()
145 if (!(image->cmpts_ = jas_alloc2(image->maxcmpts_, in jas_image_create()
[all …]
Djp2_enc.c94 int jp2_write_header(jas_image_t *image, jas_stream_t *out) in jp2_write_header() argument
120 sgnd = jas_image_cmptsgnd(image, 0); in jp2_write_header()
121 prec = jas_image_cmptprec(image, 0); in jp2_write_header()
122 for (i = 1; i < jas_image_numcmpts(image); ++i) { in jp2_write_header()
123 if (jas_image_cmptsgnd(image, i) != sgnd || in jp2_write_header()
124 jas_image_cmptprec(image, i) != prec) { in jp2_write_header()
175 ihdr->width = jas_image_width(image); in jp2_write_header()
176 ihdr->height = jas_image_height(image); in jp2_write_header()
177 ihdr->numcmpts = jas_image_numcmpts(image); in jp2_write_header()
178 ihdr->bpc = allcmptssame ? JP2_SPTOBPC(jas_image_cmptsgnd(image, 0), in jp2_write_header()
[all …]
Djp2_dec.c100 jas_image_t *image; in jp2_decode() local
121 image = 0; in jp2_decode()
215 if (!(dec->image = jpc_decode(in, optstr))) { in jp2_decode()
228 if (dec->ihdr->data.ihdr.numcmpts != JAS_CAST(uint, jas_image_numcmpts(dec->image))) { in jp2_decode()
233 if (!jas_image_numcmpts(dec->image)) { in jp2_decode()
240 dtype = jas_image_cmptdtype(dec->image, 0); in jp2_decode()
241 for (i = 1; i < JAS_CAST(uint, jas_image_numcmpts(dec->image)); ++i) { in jp2_decode()
242 if (jas_image_cmptdtype(dec->image, i) != dtype) { in jp2_decode()
265 dec->image))) { in jp2_decode()
271 for (i = 0; i < JAS_CAST(uint, jas_image_numcmpts(dec->image)); ++i) { in jp2_decode()
[all …]
/external/pdfium/core/src/fxcodec/codec/
Dfx_codec_jpx_opj.cpp432 void color_apply_icc_profile(opj_image_t* image) { in color_apply_icc_profile() argument
441 cmsOpenProfileFromMem(image->icc_profile_buf, image->icc_profile_len); in color_apply_icc_profile()
447 int max_w = (int)image->comps[0].w; in color_apply_icc_profile()
448 int max_h = (int)image->comps[0].h; in color_apply_icc_profile()
449 int prec = (int)image->comps[0].prec; in color_apply_icc_profile()
450 OPJ_COLOR_SPACE oldspace = image->color_space; in color_apply_icc_profile()
460 image->color_space = OPJ_CLRSPC_SRGB; in color_apply_icc_profile()
470 image->color_space = OPJ_CLRSPC_SRGB; in color_apply_icc_profile()
475 image->color_space = OPJ_CLRSPC_SRGB; in color_apply_icc_profile()
484 image->color_space = oldspace; in color_apply_icc_profile()
[all …]
/external/opencv3/modules/python/test/
Dticket_6.py21 image = cv.CreateImage(self.size, cv.IPL_DEPTH_8U, 1)
22 cnt=cv.CountNonZero(image)
28 image = cv.CreateImage(self.size, cv.IPL_DEPTH_8U, 1)
29 cnt+=cv.CountNonZero(image)
36 image = cv.CreateImage(self.size, cv.IPL_DEPTH_8U, 1)
37 cv.FillPoly(image, [[(0, 0), (0, 100), (100, 0)]], 0)
38 cnt+=cv.CountNonZero(image)
39 v.append(image)
43 image = cv.CreateImage(self.size, cv.IPL_DEPTH_8U, 1)
44 image.tostring()
[all …]
/external/pdfium/third_party/libopenjpeg20/
Dimage.c35 opj_image_t *image = (opj_image_t*)opj_calloc(1, sizeof(opj_image_t)); in opj_image_create0() local
36 return image; in opj_image_create0()
41 opj_image_t *image = NULL; in opj_image_create() local
43 image = (opj_image_t*) opj_calloc(1, sizeof(opj_image_t)); in opj_image_create()
44 if(image) { in opj_image_create()
45 image->color_space = clrspc; in opj_image_create()
46 image->numcomps = numcmpts; in opj_image_create()
48 image->comps = (opj_image_comp_t*)opj_calloc(1,image->numcomps * sizeof(opj_image_comp_t)); in opj_image_create()
49 if(!image->comps) { in opj_image_create()
52 opj_image_destroy(image); in opj_image_create()
[all …]
/external/skia/tests/
DImageTest.cpp134 static void test_encode(skiatest::Reporter* reporter, SkImage* image) { in test_encode() argument
136 SkAutoTUnref<SkData> origEncoded(image->encode()); in test_encode()
142 assert_equal(reporter, image, nullptr, decoded); in test_encode()
148 assert_equal(reporter, image, &ir, decoded); in test_encode()
152 SkAutoTUnref<SkImage> image(create_image()); in DEF_TEST() local
153 test_encode(reporter, image); in DEF_TEST()
158 SkAutoTUnref<SkImage> image(create_gpu_image(context)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
159 test_encode(reporter, image); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
195 SkAutoTUnref<SkImage> image(create_image()); in DEF_TEST() local
196 SkAutoTUnref<SkData> encoded(image->encode(&serializer)); in DEF_TEST()
[all …]
/external/opencv3/samples/cpp/tutorial_code/core/Matrix/
DDrawing_2.cpp27 int Drawing_Random_Lines( Mat image, char* window_name, RNG rng );
28 int Drawing_Random_Rectangles( Mat image, char* window_name, RNG rng );
29 int Drawing_Random_Ellipses( Mat image, char* window_name, RNG rng );
30 int Drawing_Random_Polylines( Mat image, char* window_name, RNG rng );
31 int Drawing_Random_Filled_Polygons( Mat image, char* window_name, RNG rng );
32 int Drawing_Random_Circles( Mat image, char* window_name, RNG rng );
33 int Displaying_Random_Text( Mat image, char* window_name, RNG rng );
34 int Displaying_Big_End( Mat image, char* window_name, RNG rng );
51 Mat image = Mat::zeros( window_height, window_width, CV_8UC3 ); in main() local
53 imshow( window_name, image ); in main()
[all …]
/external/libpng/contrib/libtests/
Dpngstest.c576 png_image image; member
594 newimage(Image *image) in newimage() argument
596 memset(image, 0, sizeof *image); in newimage()
602 resetimage(Image *image) in resetimage() argument
604 if (image->input_file != NULL) in resetimage()
605 rewind(image->input_file); in resetimage()
612 freebuffer(Image *image) in freebuffer() argument
614 if (image->buffer) free(image->buffer); in freebuffer()
615 image->buffer = NULL; in freebuffer()
616 image->bufsize = 0; in freebuffer()
[all …]
/external/chromium-trace/catapult/telemetry/telemetry/util/
Dimage_util.py28 def Channels(image): argument
30 return impl.Channels(image)
32 def Width(image): argument
34 return impl.Width(image)
36 def Height(image): argument
38 return impl.Height(image)
40 def Pixels(image): argument
42 return impl.Pixels(image)
44 def GetPixelColor(image, x, y): argument
46 return impl.GetPixelColor(image, x, y)
[all …]
/external/libpng/contrib/examples/
Dpngtopng.c32 png_image image; in main() local
35 memset(&image, 0, sizeof image); in main()
36 image.version = PNG_IMAGE_VERSION; in main()
38 if (png_image_begin_read_from_file(&image, argv[1])) in main()
45 image.format = PNG_FORMAT_RGBA; in main()
47 buffer = malloc(PNG_IMAGE_SIZE(image)); in main()
51 if (png_image_finish_read(&image, NULL/*background*/, buffer, in main()
54 if (png_image_write_to_file(&image, argv[2], in main()
61 image.message); in main()
69 image.message); in main()
[all …]
/external/chromium-trace/catapult/telemetry/telemetry/internal/image_processing/
Dimage_util_numpy_impl.py16 def Channels(image): argument
17 return image.shape[2]
19 def Width(image): argument
20 return image.shape[1]
22 def Height(image): argument
23 return image.shape[0]
25 def Pixels(image): argument
26 return bytearray(np.uint8(image[:, :, ::-1]).flat) # Convert from bgr to rgb.
28 def GetPixelColor(image, x, y): argument
29 bgr = image[y][x]
[all …]

12345678910>>...81