Searched refs:yuv (Results 1 - 25 of 30) sorted by relevance

12

/frameworks/base/core/jni/android/graphics/
H A DYuvToJpegEncoder.h15 * @param pixelFormat The yuv pixel format as defined in ui/PixelFormat.h.
26 * @param inYuv The input yuv data.
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);
70 void deinterleave(uint8_t* yuv, uint8_t* yRows, uint8_t* uRows,
H A DYuvToJpegEncoder.cpp89 uint8_t* yuv, int* offsets) {
101 uint8_t* yPlanar = yuv + offsets[0];
102 uint8_t* vuPlanar = yuv + offsets[1]; //width * height;
165 uint8_t* yuv, int* offsets) {
181 uint8_t* yuvOffset = yuv + offsets[0];
207 void Yuv422IToJpegEncoder::deinterleave(uint8_t* yuv, uint8_t* yRows, uint8_t* uRows, argument
212 uint8_t* yuvSeg = yuv + (rowIndex + row) * fStrides[0];
240 jbyte* yuv = env->GetByteArrayElements(inYuv, NULL); local
248 encoder->encode(strm, yuv, width, height, imgOffsets, jpegQuality);
253 env->ReleaseByteArrayElements(inYuv, yuv,
88 compress(jpeg_compress_struct* cinfo, uint8_t* yuv, int* offsets) argument
164 compress(jpeg_compress_struct* cinfo, uint8_t* yuv, int* offsets) argument
[all...]
/frameworks/base/graphics/java/android/graphics/
H A DYuvImage.java68 * @param yuv The YUV data. In the case of more than one image plane, all the planes must be
73 * @param strides (Optional) Row bytes of each image plane. If yuv contains padding, the stride
76 * @throws IllegalArgumentException if format is not support; width or height <= 0; or yuv is
79 public YuvImage(byte[] yuv, int format, int width, int height, int[] strides) { argument
92 if (yuv == null) {
93 throw new IllegalArgumentException("yuv cannot be null");
102 mData = yuv;
/frameworks/rs/driver/runtime/
H A Drs_structs.h42 uint32_t yuv; member in struct:Allocation::__anon1990::__anon1991
77 } yuv; member in struct:Allocation::__anon1990::DrvState
H A Drs_allocation.c320 const size_t cstep = alloc->mHal.drvState.yuv.step;
321 const size_t shift = alloc->mHal.drvState.yuv.shift;
334 const size_t cstep = alloc->mHal.drvState.yuv.step;
335 const size_t shift = alloc->mHal.drvState.yuv.shift;
/frameworks/rs/tests/java_api/LivePreview/src/com/android/rs/livepreview/
H A DRsYuv.java112 void execute(byte[] yuv) { argument
113 mAllocationIn.copyFrom(yuv);
/frameworks/rs/rsov/driver/
H A DrsovAllocation.cpp33 size_t DeriveYUVLayout(int yuv, Allocation::Hal::DrvState *state) { argument
37 if (yuv == HAL_PIXEL_FORMAT_YCbCr_420_888) {
48 state->yuv.shift = 1;
49 state->yuv.step = 1;
52 switch (yuv) {
72 state->yuv.step = 2;
102 if (alloc->mHal.state.yuv) {
103 o += DeriveYUVLayout(alloc->mHal.state.yuv, &alloc->mHal.drvState);
361 if (alloc->mHal.state.yuv) {
365 if (alloc->mHal.state.yuv
[all...]
H A DrsovRuntimeStubs.cpp257 RsYuvFormat yuv = (RsYuvFormat)yuv_format; local
258 if (yuv != RS_YUV_NONE && yuv != RS_YUV_YV12 && yuv != RS_YUV_NV21 &&
259 yuv != RS_YUV_420_888) {
/frameworks/rs/
H A DrsType.cpp240 if (t->getDimYuv() != params->yuv) continue;
272 nt->mHal.state.dimYuv = params->yuv;
316 p.yuv = getDimYuv();
363 uint32_t dimY, uint32_t dimZ, bool mipmaps, bool faces, uint32_t yuv) {
373 p.yuv = yuv;
362 rsi_TypeCreate(Context *rsc, RsElement _e, uint32_t dimX, uint32_t dimY, uint32_t dimZ, bool mipmaps, bool faces, uint32_t yuv) argument
H A DrsGrallocConsumer.cpp41 if (a->mHal.state.yuv) {
223 mAlloc[idx]->mHal.drvState.yuv.shift = 1;
224 mAlloc[idx]->mHal.drvState.yuv.step = uPixStride;
H A DrsInternalDefines.h220 uint32_t yuv; member in struct:__anon2023
H A DrsAllocation.h63 uint32_t yuv; member in struct:android::renderscript::Allocation::Hal::State
99 } yuv; member in struct:android::renderscript::Allocation::Hal::DrvState
H A DrsScriptC_Lib.cpp341 uint32_t yuv) {
342 return rsi_TypeCreate(rsc, element, dimX, dimY, dimZ, mipmaps, faces, yuv);
339 rsrTypeCreate(Context *rsc, const RsElement element, uint32_t dimX, uint32_t dimY, uint32_t dimZ, bool mipmaps, bool faces, uint32_t yuv) argument
H A DrsRuntime.h167 uint32_t yuv);
H A Drs.spec46 param uint32_t yuv
H A DrsApiStubs.h54 extern "C" RsType rsTypeCreate (RsContext rsc, RsElement e, uint32_t dimX, uint32_t dimY, uint32_t dimZ, bool mipmaps, bool faces, uint32_t yuv);
/frameworks/rs/tests/java_api/CannyLive/src/com/android/example/cannylive/
H A Dcanny.rs21 rs_allocation gCurrentFrame; // yuv
72 uchar4 yuv;
73 yuv.r =
76 yuv.g = rsGetElementAtYuv_uchar_U(gCurrentFrame, x, y);
77 yuv.b = rsGetElementAtYuv_uchar_V(gCurrentFrame, x, y);
78 yuv.a = 255;
81 rgb.r = yuv.r + yuv.b * 1436 / 1024 - 179;
82 rgb.g = yuv.r - yuv
[all...]
/frameworks/native/libs/vr/libbufferhub/include/private/dvr/
H A Dion_buffer.h69 struct android_ycbcr* yuv);
/frameworks/native/libs/vr/libbufferhub/
H A Dion_buffer.cpp215 struct android_ycbcr* yuv) {
222 buffer_->lockYCbCr(usage, Rect(x, y, x + width, y + height), yuv);
214 LockYUV(uint32_t usage, int x, int y, int width, int height, struct android_ycbcr* yuv) argument
/frameworks/rs/driver/
H A DrsdAllocation.cpp249 static size_t DeriveYUVLayout(int yuv, Allocation::Hal::DrvState *state) { argument
254 if (yuv == RS_YUV_420_888) {
266 state->yuv.shift = 1;
267 state->yuv.step = 1;
270 switch(yuv) {
290 state->yuv.step = 2;
315 if (alloc->mHal.state.yuv) {
316 o += DeriveYUVLayout(alloc->mHal.state.yuv, &alloc->mHal.drvState);
821 if (alloc->mHal.state.yuv) {
822 DeriveYUVLayout(alloc->mHal.state.yuv,
[all...]
H A DrsdRuntimeStubs.cpp276 RsYuvFormat yuv = (RsYuvFormat) yuv_format; local
277 if (yuv != RS_YUV_NONE &&
278 yuv != RS_YUV_YV12 &&
279 yuv != RS_YUV_NV21 &&
280 yuv != RS_YUV_420_888) {
/frameworks/rs/cpu_ref/
H A DrsCpuIntrinsicYuvToRGB.cpp124 size_t cstep = cp->alloc->mHal.drvState.yuv.step;
141 // Legacy yuv support didn't fill in uv
/frameworks/rs/support/java/src/android/support/v8/renderscript/
H A DRenderScript.java375 native long rsnTypeCreate(long con, long eid, int x, int y, int z, boolean mips, boolean faces, int yuv); argument
376 synchronized long nTypeCreate(long eid, int x, int y, int z, boolean mips, boolean faces, int yuv) { argument
378 return rsnTypeCreate(mContext, eid, x, y, z, mips, faces, yuv);
1034 native long rsnIncTypeCreate(long con, long eid, int x, int y, int z, boolean mips, boolean faces, int yuv); argument
1035 synchronized long nIncTypeCreate(long eid, int x, int y, int z, boolean mips, boolean faces, int yuv) { argument
1037 return rsnIncTypeCreate(mIncCon, eid, x, y, z, mips, faces, yuv);
/frameworks/native/opengl/tests/hwc/
H A DhwcTestLib.cpp798 bool yuv; member in struct:attrib
870 if (fromAttrib->rgb && toAttrib->yuv) {
907 if (fromAttrib->yuv && toAttrib->rgb) {
/frameworks/base/rs/java/android/renderscript/
H A DRenderScript.java430 native long rsnTypeCreate(long con, long eid, int x, int y, int z, boolean mips, boolean faces, int yuv); argument
431 synchronized long nTypeCreate(long eid, int x, int y, int z, boolean mips, boolean faces, int yuv) { argument
433 return rsnTypeCreate(mContext, eid, x, y, z, mips, faces, yuv);

Completed in 6787 milliseconds

12