Home
last modified time | relevance | path

Searched refs:pix (Results 1 – 25 of 74) sorted by relevance

123

/external/ltp/testcases/kernel/device-drivers/v4l/user_space/
Dtest_VIDIOC_FMT.c220 format.fmt.pix.width, in do_get_formats()
221 format.fmt.pix.height, in do_get_formats()
222 format.fmt.pix.pixelformat, in do_get_formats()
223 format.fmt.pix.field, in do_get_formats()
224 format.fmt.pix.bytesperline, in do_get_formats()
225 format.fmt.pix.sizeimage, in do_get_formats()
226 format.fmt.pix.colorspace, format.fmt.pix.priv); in do_get_formats()
227 if (sizeof(format.fmt.pix) < in do_get_formats()
231 for (j = sizeof(format.fmt.pix); in do_get_formats()
244 (format.fmt.pix.pixelformat)); in do_get_formats()
[all …]
/external/libvncserver/libvncserver/
Dzrlepalettehelper.c25 #define ZRLE_HASH(pix) (((pix) ^ ((pix) >> 17)) & 4095) argument
35 void zrlePaletteHelperInsert(zrlePaletteHelper *helper, zrle_U32 pix) in zrlePaletteHelperInsert() argument
38 int i = ZRLE_HASH(pix); in zrlePaletteHelperInsert()
40 while (helper->index[i] != 255 && helper->key[i] != pix) in zrlePaletteHelperInsert()
45 helper->key[i] = pix; in zrlePaletteHelperInsert()
46 helper->palette[helper->size] = pix; in zrlePaletteHelperInsert()
51 int zrlePaletteHelperLookup(zrlePaletteHelper *helper, zrle_U32 pix) in zrlePaletteHelperLookup() argument
53 int i = ZRLE_HASH(pix); in zrlePaletteHelperLookup()
57 while (helper->index[i] != 255 && helper->key[i] != pix) in zrlePaletteHelperLookup()
Dzrleencodetemplate.c149 PIXEL_T pix = *ptr; in ZRLE_ENCODE_TILE() local
150 if (*++ptr != pix) { in ZRLE_ENCODE_TILE()
153 while (*++ptr == pix) ; in ZRLE_ENCODE_TILE()
156 zrlePaletteHelperInsert(ph, pix); in ZRLE_ENCODE_TILE()
223 PIXEL_T pix; in ZRLE_ENCODE_TILE() local
227 pix = *ptr++; in ZRLE_ENCODE_TILE()
228 while (*ptr == pix && ptr < end) in ZRLE_ENCODE_TILE()
232 int index = zrlePaletteHelperLookup(ph, pix); in ZRLE_ENCODE_TILE()
239 int index = zrlePaletteHelperLookup(ph, pix); in ZRLE_ENCODE_TILE()
242 zrleOutStreamWRITE_PIXEL(os, pix); in ZRLE_ENCODE_TILE()
[all …]
Dhextile.c81 #define PUT_PIXEL8(pix) (cl->updateBuf[cl->ublen++] = (pix)) argument
83 #define PUT_PIXEL16(pix) (cl->updateBuf[cl->ublen++] = ((char*)&(pix))[0], \ argument
84 cl->updateBuf[cl->ublen++] = ((char*)&(pix))[1])
86 #define PUT_PIXEL32(pix) (cl->updateBuf[cl->ublen++] = ((char*)&(pix))[0], \ argument
87 cl->updateBuf[cl->ublen++] = ((char*)&(pix))[1], \
88 cl->updateBuf[cl->ublen++] = ((char*)&(pix))[2], \
89 cl->updateBuf[cl->ublen++] = ((char*)&(pix))[3])
/external/libxcam/xcore/
Dv4l2_buffer_proxy.cpp82 info.format = format.fmt.pix.pixelformat; in v4l2_format_to_video_info()
84 info.width = format.fmt.pix.width; in v4l2_format_to_video_info()
85 info.height = format.fmt.pix.height; in v4l2_format_to_video_info()
88 info.size = format.fmt.pix.sizeimage; in v4l2_format_to_video_info()
89 switch (format.fmt.pix.pixelformat) { in v4l2_format_to_video_info()
93 info.strides [0] = format.fmt.pix.bytesperline * 2 / 3; in v4l2_format_to_video_info()
96 info.offsets[1] = info.strides [0] * format.fmt.pix.height; in v4l2_format_to_video_info()
100 info.strides [0] = format.fmt.pix.bytesperline / 2; in v4l2_format_to_video_info()
104 info.offsets[1] = info.strides [0] * format.fmt.pix.height; in v4l2_format_to_video_info()
105 info.offsets[2] = info.offsets[1] + info.strides [1] * format.fmt.pix.height; in v4l2_format_to_video_info()
[all …]
Dv4l2_device.cpp101 if (_format.fmt.pix.pixelformat) { in set_framerate()
249 …if (tmp_format.fmt.pix.width != format.fmt.pix.width || tmp_format.fmt.pix.height != format.fmt.pi… in set_format()
253 format.fmt.pix.width, in set_format()
254 format.fmt.pix.height); in set_format()
296 format.fmt.pix.width, format.fmt.pix.height, in set_format()
297 xcam_fourcc_to_string (format.fmt.pix.pixelformat), in set_format()
298 format.fmt.pix.bytesperline, in set_format()
299 format.fmt.pix.sizeimage); in set_format()
321 format.fmt.pix.width = width; in set_format()
322 format.fmt.pix.height = height; in set_format()
[all …]
/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/util/
DValPixConverter.java36 float pix = (float)(raw * scale); in valToPix() local
39 pix = (lengthPix - pix); in valToPix()
41 return pix; in valToPix()
64 … public static double pixToVal(float pix, double min, double max, float lengthPix, boolean flip) { in pixToVal() argument
65 if(pix < ZERO) { in pixToVal()
72 float pMult = pix; in pixToVal()
74 pMult = lengthPix - pix; in pixToVal()
/external/libvncserver/libvncclient/
Drre.c37 CARDBPP pix; in HandleRREBPP() local
45 if (!ReadFromRFBServer(client, (char *)&pix, sizeof(pix))) in HandleRREBPP()
48 FillRectangle(client, rx, ry, rw, rh, pix); in HandleRREBPP()
51 if (!ReadFromRFBServer(client, (char *)&pix, sizeof(pix))) in HandleRREBPP()
62 FillRectangle(client, rx+subrect.x, ry+subrect.y, subrect.w, subrect.h, pix); in HandleRREBPP()
Dcorre.c37 CARDBPP pix; in HandleCoRREBPP() local
46 if (!ReadFromRFBServer(client, (char *)&pix, sizeof(pix))) in HandleCoRREBPP()
49 FillRectangle(client, rx, ry, rw, rh, pix); in HandleCoRREBPP()
57 pix = *(CARDBPP *)ptr; in HandleCoRREBPP()
64 FillRectangle(client, rx+x, ry+y, w, h, pix); in HandleCoRREBPP()
Dtight.c363 uint8_t pix[3]; in FilterGradient24() local
370 pix[c] = client->tightPrevRow[c] + client->buffer[y*client->rectWidth*3+c]; in FilterGradient24()
371 thisRow[c] = pix[c]; in FilterGradient24()
373 dst[y*client->rectWidth] = RGB24_TO_PIXEL32(pix[0], pix[1], pix[2]); in FilterGradient24()
378 est[c] = (int)client->tightPrevRow[x*3+c] + (int)pix[c] - in FilterGradient24()
385 pix[c] = (uint8_t)est[c] + client->buffer[(y*client->rectWidth+x)*3+c]; in FilterGradient24()
386 thisRow[x*3+c] = pix[c]; in FilterGradient24()
388 dst[y*client->rectWidth+x] = RGB24_TO_PIXEL32(pix[0], pix[1], pix[2]); in FilterGradient24()
404 uint16_t pix[3]; in FilterGradientBPP() local
428 pix[c] = (uint16_t)(((src[y*client->rectWidth] >> shift[c]) + thatRow[c]) & max[c]); in FilterGradientBPP()
[all …]
/external/mesa3d/src/mesa/main/
Dtexcompress_cpal.c82 GLubyte *pix = image; in paletted_to_color() local
92 pix += get_palette_entry(info, palette, (ind[i] >> 4) & 0xf, pix); in paletted_to_color()
93 pix += get_palette_entry(info, palette, ind[i] & 0xf, pix); in paletted_to_color()
96 get_palette_entry(info, palette, (ind[i] >> 4) & 0xf, pix); in paletted_to_color()
103 pix += get_palette_entry(info, palette, ind[i], pix); in paletted_to_color()
/external/eigen/demos/mandelbrot/
Dmandelbrot.cpp50 int pix = y * img_width; in render() local
59 for(int x = 0; x < alignedWidth; x += packetSize, pix += packetSize) in render()
98 buffer[4*(pix+i)] = 255*pix_iter[i]/max_iter; in render()
99 buffer[4*(pix+i)+1] = 0; in render()
100 buffer[4*(pix+i)+2] = 0; in render()
105 for(int x = alignedWidth; x < img_width; x++, pix++) in render()
106 buffer[4*pix] = buffer[4*pix+1] = buffer[4*pix+2] = 0; in render()
/external/webrtc/webrtc/modules/video_capture/linux/
Dvideo_capture_linux.cc208 video_fmt.fmt.pix.sizeimage = 0; in StartCapture()
209 video_fmt.fmt.pix.width = capability.width; in StartCapture()
210 video_fmt.fmt.pix.height = capability.height; in StartCapture()
211 video_fmt.fmt.pix.pixelformat = fmts[fmtsIdx]; in StartCapture()
213 if (video_fmt.fmt.pix.pixelformat == V4L2_PIX_FMT_YUYV) in StartCapture()
215 else if (video_fmt.fmt.pix.pixelformat == V4L2_PIX_FMT_YUV420) in StartCapture()
217 else if (video_fmt.fmt.pix.pixelformat == V4L2_PIX_FMT_UYVY) in StartCapture()
219 else if (video_fmt.fmt.pix.pixelformat == V4L2_PIX_FMT_MJPEG || in StartCapture()
220 video_fmt.fmt.pix.pixelformat == V4L2_PIX_FMT_JPEG) in StartCapture()
232 _currentWidth = video_fmt.fmt.pix.width; in StartCapture()
[all …]
Ddevice_info_linux.cc258 video_fmt.fmt.pix.sizeimage = 0; in FillCapabilities()
279 video_fmt.fmt.pix.pixelformat = videoFormats[fmts]; in FillCapabilities()
280 video_fmt.fmt.pix.width = size[i][0]; in FillCapabilities()
281 video_fmt.fmt.pix.height = size[i][1]; in FillCapabilities()
285 if ((video_fmt.fmt.pix.width == size[i][0]) in FillCapabilities()
286 && (video_fmt.fmt.pix.height == size[i][1])) in FillCapabilities()
289 cap.width = video_fmt.fmt.pix.width; in FillCapabilities()
290 cap.height = video_fmt.fmt.pix.height; in FillCapabilities()
/external/tensorflow/tensorflow/contrib/image/kernels/
Dsingle_image_random_dot_stereograms_ops.cc294 uint8* pix; // Scan row color for each pixel in generate_stereogram() local
298 pix = new uint8[output_Ximage * output_Cimage]; in generate_stereogram()
343 pix[x * output_Cimage + channel] = Cblack; in generate_stereogram()
345 pix[x * output_Cimage + channel] = Cwhite; in generate_stereogram()
348 pix[x * output_Cimage + channel] = rand() % 256; in generate_stereogram()
351 pix[x * output_Cimage + channel] = in generate_stereogram()
352 pix[same[x] * output_Cimage + channel]; in generate_stereogram()
354 setpixel(x, y, channel, pix[x * output_Cimage + channel]); in generate_stereogram()
361 delete[] pix; in generate_stereogram()
/external/mesa3d/src/glx/apple/
Dapple_cgl.h47 CGLPixelFormatObj * pix, GLint * npix);
48 CGLError(*destroy_pixel_format) (CGLPixelFormatObj pix);
53 CGLError(*create_context) (CGLPixelFormatObj pix, CGLContextObj share,
55 CGLError(*destroy_context) (CGLContextObj pix);
/external/swiftshader/third_party/LLVM/test/CodeGen/X86/
D2008-02-25-InlineAsmBug.ll4 define void @h264_h_loop_filter_luma_mmx2(i8* %pix, i32 %stride, i32 %alpha, i32 %beta, i8* %tc0) n…
17 %tmp154 = getelementptr i8* %pix, i32 %pix_addr.0327.sum340 ; <i8*> [#uses=1]
20 %tmp181 = getelementptr i8* %pix, i32 %pix_addr.0327.sum339 ; <i8*> [#uses=1]
23 %tmp186 = getelementptr i8* %pix, i32 %pix_addr.0327.sum338 ; <i8*> [#uses=1]
26 %tmp191 = getelementptr i8* %pix, i32 %pix_addr.0327.sum337 ; <i8*> [#uses=1]
/external/llvm/test/CodeGen/X86/
D2008-02-25-InlineAsmBug.ll4 define void @h264_h_loop_filter_luma_mmx2(i8* %pix, i32 %stride, i32 %alpha, i32 %beta, i8* %tc0) n…
17 %tmp154 = getelementptr i8, i8* %pix, i32 %pix_addr.0327.sum340 ; <i8*> [#uses=1]
20 %tmp181 = getelementptr i8, i8* %pix, i32 %pix_addr.0327.sum339 ; <i8*> [#uses=1]
23 %tmp186 = getelementptr i8, i8* %pix, i32 %pix_addr.0327.sum338 ; <i8*> [#uses=1]
26 %tmp191 = getelementptr i8, i8* %pix, i32 %pix_addr.0327.sum337 ; <i8*> [#uses=1]
/external/webrtc/webrtc/examples/peerconnection/client/linux/
Dmain_wnd.cc500 uint8_t* pix = image_.get(); in RenderFrame() local
502 while (pix < end) { in RenderFrame()
503 pix[3] = pix[0]; // Save B to A. in RenderFrame()
504 pix[0] = pix[2]; // Set Red. in RenderFrame()
505 pix[2] = pix[3]; // Set Blue. in RenderFrame()
506 pix[3] = 0xFF; // Fixed Alpha. in RenderFrame()
507 pix += 4; in RenderFrame()
/external/glide/third_party/gif_encoder/src/main/java/com/bumptech/glide/gifencoder/
DNeuQuant.java238 int pix, lim; in learn() local
244 pix = 0; in learn()
276 b = (p[pix + 0] & 0xff) << netbiasshift; in learn()
277 g = (p[pix + 1] & 0xff) << netbiasshift; in learn()
278 r = (p[pix + 2] & 0xff) << netbiasshift; in learn()
285 pix += step; in learn()
286 if (pix >= lim) in learn()
287 pix -= lengthcount; in learn()
/external/ImageMagick/coders/
Dscr.c97 int pix; in ReadSCRImage() local
176 pix = (((8*octetnr)-(256*zoneline))); in ReadSCRImage()
218 q=QueueAuthenticPixels(image,pix,piy,1,1,exception); in ReadSCRImage()
239 pix++; in ReadSCRImage()
/external/tensorflow/tensorflow/contrib/pi_examples/camera/
Dcamera.cc95 fmt.fmt.pix.width = wanted_width; in SetCameraFormat()
96 fmt.fmt.pix.height = wanted_height; in SetCameraFormat()
97 fmt.fmt.pix.pixelformat = V4L2_PIX_FMT_RGB24; in SetCameraFormat()
98 fmt.fmt.pix.field = V4L2_FIELD_INTERLACED; in SetCameraFormat()
105 if (fmt.fmt.pix.pixelformat != V4L2_PIX_FMT_RGB24) { in SetCameraFormat()
109 if ((fmt.fmt.pix.width != wanted_width) || in SetCameraFormat()
110 (fmt.fmt.pix.height != wanted_height)) { in SetCameraFormat()
111 LOG(WARNING) << "Warning: driver is sending image at " << fmt.fmt.pix.width in SetCameraFormat()
112 << "x" << fmt.fmt.pix.height; in SetCameraFormat()
/external/libxcam/modules/isp/
Datomisp_device.cpp62 subdev_fmt.format.width = format.fmt.pix.width; in pre_set_format()
63 subdev_fmt.format.height = format.fmt.pix.height; in pre_set_format()
65 if (format.fmt.pix.pixelformat == V4L2_PIX_FMT_SGRBG12) { in pre_set_format()
/external/strace/tests-m32/
Dioctl_v4l2.c69 f->fmt.pix.width = 0x657b8160; in init_v4l2_format()
70 f->fmt.pix.height = 0x951c0047; in init_v4l2_format()
71 f->fmt.pix.pixelformat = magic; in init_v4l2_format()
72 f->fmt.pix.field = V4L2_FIELD_NONE; in init_v4l2_format()
73 f->fmt.pix.bytesperline = 0xdf20d185; in init_v4l2_format()
74 f->fmt.pix.sizeimage = 0x0cf7be41; in init_v4l2_format()
75 f->fmt.pix.colorspace = V4L2_COLORSPACE_JPEG; in init_v4l2_format()
184 f->fmt.pix.width, f->fmt.pix.height, in dprint_ioctl_v4l2()
186 f->fmt.pix.bytesperline, in dprint_ioctl_v4l2()
187 f->fmt.pix.sizeimage); in dprint_ioctl_v4l2()
/external/strace/tests-mx32/
Dioctl_v4l2.c69 f->fmt.pix.width = 0x657b8160; in init_v4l2_format()
70 f->fmt.pix.height = 0x951c0047; in init_v4l2_format()
71 f->fmt.pix.pixelformat = magic; in init_v4l2_format()
72 f->fmt.pix.field = V4L2_FIELD_NONE; in init_v4l2_format()
73 f->fmt.pix.bytesperline = 0xdf20d185; in init_v4l2_format()
74 f->fmt.pix.sizeimage = 0x0cf7be41; in init_v4l2_format()
75 f->fmt.pix.colorspace = V4L2_COLORSPACE_JPEG; in init_v4l2_format()
184 f->fmt.pix.width, f->fmt.pix.height, in dprint_ioctl_v4l2()
186 f->fmt.pix.bytesperline, in dprint_ioctl_v4l2()
187 f->fmt.pix.sizeimage); in dprint_ioctl_v4l2()

123