/external/qemu/distrib/sdl-1.2.15/test/ |
testoverlay2.c | 58 void RGBtoYUV(Uint8 *rgb, int *yuv, int monochrome, int luminance) 63 yuv[0] = 0.299*rgb[0] + 0.587*rgb[1] + 0.114*rgb[2]; 64 yuv[1] = 128; 65 yuv[2] = 128; 67 yuv[0] = (0.257 * rgb[0]) + (0.504 * rgb[1]) + (0.098 * rgb[2]) + 16; 68 yuv[1] = 128; 69 yuv[2] = 128; 75 yuv[0] = 0.299*rgb[0] + 0.587*rgb[1] + 0.114*rgb[2]; 76 yuv[1] = (rgb[2]-yuv[0])*0.565 + 128 96 int yuv[3]; local 129 int yuv[3]; local 162 int yuv[3]; local 195 int yuv[3]; local 231 int yuv[3]; local [all...] |
testoverlay.c | 35 void RGBtoYUV(Uint8 *rgb, int *yuv, int monochrome, int luminance) 40 yuv[0] = 0.299*rgb[0] + 0.587*rgb[1] + 0.114*rgb[2]; 41 yuv[1] = 128; 42 yuv[2] = 128; 44 yuv[0] = (0.257 * rgb[0]) + (0.504 * rgb[1]) + (0.098 * rgb[2]) + 16; 45 yuv[1] = 128; 46 yuv[2] = 128; 52 yuv[0] = 0.299*rgb[0] + 0.587*rgb[1] + 0.114*rgb[2]; 53 yuv[1] = (rgb[2]-yuv[0])*0.565 + 128 84 int yuv[3]; local 124 int yuv[3]; local 164 int yuv[3]; local 197 int yuv[3]; local 233 int yuv[3]; local [all...] |
/frameworks/base/core/jni/android/graphics/ |
YuvToJpegEncoder.h | 13 /** Create an encoder based on the YUV format. 15 * @param pixelFormat The yuv pixel format as defined in ui/PixelFormat.h. 23 /** Encode YUV data to jpeg, which is output to a stream. 26 * @param inYuv The input yuv data. 27 * @param width Width of the the Yuv data in terms of pixels. 28 * @param height Height of the Yuv data in terms of pixels. 45 uint8_t* yuv, int* offsets) = 0; 55 void deinterleaveYuv(uint8_t* yuv, int width, int height, 59 void compress(jpeg_compress_struct* cinfo, uint8_t* yuv, int* offsets); 69 void compress(jpeg_compress_struct* cinfo, uint8_t* yuv, int* offsets) [all...] |
YuvToJpegEncoder.cpp | 72 uint8_t* yuv, int* offsets) { 84 uint8_t* yPlanar = yuv + offsets[0]; 85 uint8_t* vuPlanar = yuv + offsets[1]; //width * height; 148 uint8_t* yuv, int* offsets) { 164 uint8_t* yuvOffset = yuv + offsets[0]; 190 void Yuv422IToJpegEncoder::deinterleave(uint8_t* yuv, uint8_t* yRows, uint8_t* uRows, 195 uint8_t* yuvSeg = yuv + (rowIndex + row) * fStrides[0]; 223 jbyte* yuv = env->GetByteArrayElements(inYuv, NULL); local 232 encoder->encode(strm, yuv, width, height, imgOffsets, jpegQuality); 235 env->ReleaseByteArrayElements(inYuv, yuv, 0) [all...] |
/cts/tests/tests/graphics/src/android/graphics/cts/ |
YuvImageTest.java | 95 byte[] yuv = new byte[width * height * 2]; 101 image = new YuvImage(yuv, mFormats[i], width, height, null); 119 image = new YuvImage(yuv, mFormats[i], width, height, null); 133 image = new YuvImage(yuv, format, -1, height, null); 141 image = new YuvImage(yuv, format, width, -1, null); 147 // abnormal case: yuv array is null 150 fail("not catching null yuv data"); 205 byte[] yuv = convertArgbsToYuvs(argb, stride, height, ImageFormat.NV21); 209 YuvImage image = new YuvImage(yuv, ImageFormat.NV21, width, height, strides); 210 assertEquals(yuv, image.getYuvData()) [all...] |
/device/lge/mako/camera/mm-camera-interface/ |
mm_jpeg_encoder.c | 135 thumbnail_buffer = tn_img_info.p_fragments[0].color.yuv.luma_buf; 140 snapshot_buffer = main_img_info.p_fragments[0].color.yuv.luma_buf; 255 jpeg_buffer_destroy(&tn_img_info.p_fragments[0].color.yuv.luma_buf); 256 jpeg_buffer_destroy(&tn_img_info.p_fragments[0].color.yuv.chroma_buf); 258 jpeg_buffer_destroy(&main_img_info.p_fragments[0].color.yuv.luma_buf); 259 jpeg_buffer_destroy(&main_img_info.p_fragments[0].color.yuv.chroma_buf); 351 (usethumbnail && (rc = jpeg_buffer_init(&tn_img_info.p_fragments[0].color.yuv.luma_buf))) || 352 (usethumbnail && (rc = jpeg_buffer_init(&tn_img_info.p_fragments[0].color.yuv.chroma_buf))) || 353 (rc = jpeg_buffer_init(&main_img_info.p_fragments[0].color.yuv.luma_buf)) || 354 (rc = jpeg_buffer_init(&main_img_info.p_fragments[0].color.yuv.chroma_buf) [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/xa/ |
xa_yuv.c | 70 xa_yuv_bind_samplers(struct xa_context *r, struct xa_surface *yuv[]) 88 u_sampler_view_default_template(&view_templ, yuv[i]->tex, 89 yuv[i]->tex->format); 92 r->pipe->create_sampler_view(r->pipe, yuv[i]->tex, &view_templ); 121 struct xa_surface *dst, struct xa_surface *yuv[]) 137 xa_yuv_bind_samplers(r, yuv); 152 scale_x * w, scale_y * h, x, y, w, h, yuv); local
|
xa_context.h | 49 * @yuv is an array of three xa_yuv_component surfaces. 63 struct xa_surface *dst, struct xa_surface *yuv[]);
|
/external/mesa3d/src/gallium/state_trackers/xa/ |
xa_yuv.c | 70 xa_yuv_bind_samplers(struct xa_context *r, struct xa_surface *yuv[]) 88 u_sampler_view_default_template(&view_templ, yuv[i]->tex, 89 yuv[i]->tex->format); 92 r->pipe->create_sampler_view(r->pipe, yuv[i]->tex, &view_templ); 121 struct xa_surface *dst, struct xa_surface *yuv[]) 137 xa_yuv_bind_samplers(r, yuv); 152 scale_x * w, scale_y * h, x, y, w, h, yuv); local
|
xa_context.h | 49 * @yuv is an array of three xa_yuv_component surfaces. 63 struct xa_surface *dst, struct xa_surface *yuv[]);
|
/packages/apps/Camera/jni/feature_mos/src/mosaic/ |
ImageUtils.cpp | 366 // VC 8 does not like calling free on yuv->Y.ptr since it is in 368 // calling mapYUVInforToImage yuv->Y.ptr points to the begginning 370 YUVinfo *yuv = (YUVinfo *) calloc(sizeof(YUVinfo), 1); local 371 if (yuv) { 372 yuv->Y.width = yuv->Y.pitch = width; 373 yuv->Y.height = height; 374 yuv->Y.border = yuv->U.border = yuv->V.border = (unsigned short) 0 [all...] |
/packages/apps/Camera2/jni/feature_mos/src/mosaic/ |
ImageUtils.cpp | 366 // VC 8 does not like calling free on yuv->Y.ptr since it is in 368 // calling mapYUVInforToImage yuv->Y.ptr points to the begginning 370 YUVinfo *yuv = (YUVinfo *) calloc(sizeof(YUVinfo), 1); local 371 if (yuv) { 372 yuv->Y.width = yuv->Y.pitch = width; 373 yuv->Y.height = height; 374 yuv->Y.border = yuv->U.border = yuv->V.border = (unsigned short) 0 [all...] |
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/ |
ImageUtils.cpp | 366 // VC 8 does not like calling free on yuv->Y.ptr since it is in 368 // calling mapYUVInforToImage yuv->Y.ptr points to the begginning 370 YUVinfo *yuv = (YUVinfo *) calloc(sizeof(YUVinfo), 1); local 371 if (yuv) { 372 yuv->Y.width = yuv->Y.pitch = width; 373 yuv->Y.height = height; 374 yuv->Y.border = yuv->U.border = yuv->V.border = (unsigned short) 0 [all...] |
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/ |
TypeThunker.java | 62 int dx, int dy, int dz, boolean dmip, boolean dfaces, int yuv) { 73 if (yuv > 0) tb.setYuvFormat(yuv);
|
/external/zxing/qr_scanner/src/com/google/zxing/client/android/ |
PlanarYUVLuminanceSource.java | 24 * This object extends LuminanceSource around an array of YUV data returned from the camera driver, 95 byte[] yuv = yuvData; 98 System.arraycopy(yuv, inputOffset, matrix, outputOffset, width); 113 byte[] yuv = yuvData; 119 int grey = yuv[inputOffset + x] & 0xff;
|
/frameworks/base/graphics/java/android/graphics/ |
YuvImage.java | 22 * YuvImage contains YUV data and provides a method that compresses a region of 23 * the YUV data to a Jpeg. The YUV data should be provided as a single byte 27 * To compress a rectangle region in the YUV data, users have to specify the 39 * The YUV format as defined in {@link ImageFormat}. 44 * The raw YUV data. 68 * @param yuv The YUV data. In the case of more than one image plane, all the planes must be 70 * @param format The YUV data format as defined in {@link ImageFormat}. 73 * @param strides (Optional) Row bytes of each image plane. If yuv contains padding, the strid [all...] |
/frameworks/rs/driver/runtime/ |
rs_structs.h | 35 uint32_t yuv; member in struct:Allocation::__anon32448::__anon32449 61 } yuv; member in struct:Allocation::__anon32448::DrvState
|
/external/webp/examples/ |
dwebp.c | 65 YUV, 245 // (http://www.fourcc.org/yuv.php#IMC4). This is a very convenient format for 247 // format=YUV: just save the Y/U/V/A planes sequentially without header. 252 const WebPYUVABuffer* const yuv = &buffer->u.YUVA; local 255 const int pad = (format == YUV) ? 0 : 1; 259 const int a_height = yuv->a ? height : 0; 265 ok &= (fwrite(yuv->y + y * yuv->y_stride, width, 1, fout) == 1); 272 ok &= (fwrite(yuv->u + y * yuv->u_stride, uv_width, 1, fout) == 1) [all...] |
/frameworks/rs/ |
rsGrallocConsumer.cpp | 44 if (a->mHal.state.yuv) { 45 bq->setDefaultBufferFormat(a->mHal.state.yuv); 144 if (mAlloc->mHal.state.yuv) { 152 mAlloc->mHal.drvState.yuv.shift = 1; 153 mAlloc->mHal.drvState.yuv.step = ycbcr.chroma_step;
|
rsType.h | 106 bool dimLOD, bool dimFaces, uint32_t yuv) { 107 ObjectBaseRef<Type> type = getTypeRef(rsc, e, dimX, dimY, dimZ, dimLOD, dimFaces, yuv);
|
/external/chromium_org/content/browser/renderer_host/media/ |
web_contents_video_capture_device_unittest.cc | 63 uint8 yuv[3]; local 65 yuv, yuv + 1, yuv + 2, 1, 1, 1, 1, 1); local 66 return SkColorSetRGB(yuv[0], yuv[1], yuv[2]); 381 uint8 yuv[3]; variable 383 yuv[plane] = frame->data(plane)[0]; 388 PostColorOrError(SkColorSetRGB(yuv[0], yuv[1], yuv[2])) [all...] |
/device/lge/mako/camera/QCamera/stack/mm-camera-test/src/ |
mm_qcamera_display.c | 71 } yuv; variable in typeref:union:__anon2150 180 /* Initialize yuv structure */ 181 yuv.list.count = 1; 183 e = &yuv.list.req[0]; 242 result = ioctl(fb_fd, MSMFB_BLIT, &yuv.list); 463 /* Initialize yuv structure */ 464 yuv.list.count = 1; 465 e = &yuv.list.req[0]; 523 /* Initialize yuv structure */ 524 yuv.list.count = 1 [all...] |
/external/webp/src/dec/ |
Android.mk | 39 ../dsp/yuv.c \
|
/external/webp/src/enc/ |
Android.mk | 42 ../dsp/yuv.c \
|
/frameworks/rs/java/tests/LivePreview/src/com/android/rs/livepreview/ |
RsYuv.java | 111 void execute(byte[] yuv) { 112 mAllocationIn.copyFrom(yuv);
|