Home
last modified time | relevance | path

Searched refs:yuv (Results 1 – 23 of 23) sorted by relevance

/frameworks/base/core/jni/android/graphics/
DYuvToJpegEncoder.h45 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,
DYuvToJpegEncoder.cpp72 uint8_t* yuv, int* offsets) { in compress() argument
84 uint8_t* yPlanar = yuv + offsets[0]; in compress()
85 uint8_t* vuPlanar = yuv + offsets[1]; //width * height; in compress()
148 uint8_t* yuv, int* offsets) { in compress() argument
164 uint8_t* yuvOffset = yuv + offsets[0]; in compress()
190 void Yuv422IToJpegEncoder::deinterleave(uint8_t* yuv, uint8_t* yRows, uint8_t* uRows, in deinterleave() argument
195 uint8_t* yuvSeg = yuv + (rowIndex + row) * fStrides[0]; in deinterleave()
223 jbyte* yuv = env->GetByteArrayElements(inYuv, NULL); in YuvImage_compressToJpeg() local
231 encoder->encode(strm, yuv, width, height, imgOffsets, jpegQuality); in YuvImage_compressToJpeg()
236 env->ReleaseByteArrayElements(inYuv, yuv, 0); in YuvImage_compressToJpeg()
/frameworks/rs/
DrsGrallocConsumer.cpp44 if (a->mHal.state.yuv) { in GrallocConsumer()
45 bq->setDefaultBufferFormat(a->mHal.state.yuv); in GrallocConsumer()
144 if (mAlloc->mHal.state.yuv) { in lockNextBuffer()
152 mAlloc->mHal.drvState.yuv.shift = 1; in lockNextBuffer()
153 mAlloc->mHal.drvState.yuv.step = ycbcr.chroma_step; in lockNextBuffer()
DrsType.h108 bool dimLOD, bool dimFaces, uint32_t yuv) { in getType() argument
109 ObjectBaseRef<Type> type = getTypeRef(rsc, e, dimX, dimY, dimZ, dimLOD, dimFaces, yuv); in getType()
DrsAllocation.h63 uint32_t yuv; member
90 } yuv; member
DrsType.cpp331 uint32_t dimY, uint32_t dimZ, bool mipmaps, bool faces, uint32_t yuv) { in rsi_TypeCreate() argument
334 return Type::getType(rsc, e, dimX, dimY, dimZ, mipmaps, faces, yuv); in rsi_TypeCreate()
Drs.spec42 param uint32_t yuv
DrsAllocation.cpp74 mHal.state.yuv = type->getDimYuv(); in updateCache()
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
DTypeThunker.java62 int dx, int dy, int dz, boolean dmip, boolean dfaces, int yuv) { in create() argument
73 if (yuv > 0) tb.setYuvFormat(yuv); in create()
DRenderScript.java295 …ive int rsnTypeCreate(int con, int eid, int x, int y, int z, boolean mips, boolean faces, int yuv); in rsnTypeCreate() argument
296 … synchronized int nTypeCreate(int eid, int x, int y, int z, boolean mips, boolean faces, int yuv) { in nTypeCreate() argument
298 return rsnTypeCreate(mContext, eid, x, y, z, mips, faces, yuv); in nTypeCreate()
/frameworks/base/graphics/java/android/graphics/
DYuvImage.java79 public YuvImage(byte[] yuv, int format, int width, int height, int[] strides) { in YuvImage() argument
92 if (yuv == null) { in YuvImage()
102 mData = yuv; in YuvImage()
/frameworks/rs/driver/runtime/
Drs_structs.h39 uint32_t yuv; member
65 } yuv; member
Drs_allocation.c313 const size_t cstep = alloc->mHal.drvState.yuv.step; in rsGetElementAtYuv_uchar_U()
314 const size_t shift = alloc->mHal.drvState.yuv.shift; in rsGetElementAtYuv_uchar_U()
327 const size_t cstep = alloc->mHal.drvState.yuv.step; in rsGetElementAtYuv_uchar_V()
328 const size_t shift = alloc->mHal.drvState.yuv.shift; in rsGetElementAtYuv_uchar_V()
/frameworks/rs/java/tests/LivePreview/src/com/android/rs/livepreview/
DRsYuv.java112 void execute(byte[] yuv) { in execute() argument
113 mAllocationIn.copyFrom(yuv); in execute()
/frameworks/av/media/libstagefright/codecs/avc/enc/
DSoftAVCEncoder.h55 int32_t bindOutputBuffer(int32_t index, uint8_t **yuv);
DSoftAVCEncoder.cpp134 void *userData, int32_t index, uint8_t **yuv) { in BindFrameWrapper() argument
137 return encoder->bindOutputBuffer(index, yuv); in BindFrameWrapper()
927 int32_t SoftAVCEncoder::bindOutputBuffer(int32_t index, uint8_t **yuv) { in bindOutputBuffer() argument
930 *yuv = (uint8_t *) mOutputBuffers[index]->data(); in bindOutputBuffer()
/frameworks/rs/driver/
DrsdAllocation.cpp255 static size_t DeriveYUVLayout(int yuv, Allocation::Hal::DrvState *state) { in DeriveYUVLayout() argument
263 state->yuv.shift = 1; in DeriveYUVLayout()
264 state->yuv.step = 1; in DeriveYUVLayout()
268 switch(yuv) { in DeriveYUVLayout()
288 state->yuv.step = 2; in DeriveYUVLayout()
320 if (alloc->mHal.state.yuv) { in AllocationBuildPointerTable()
321 o += DeriveYUVLayout(alloc->mHal.state.yuv, &alloc->mHal.drvState); in AllocationBuildPointerTable()
845 if (alloc->mHal.state.yuv) { in rsdAllocationData2D()
849 if (alloc->mHal.state.yuv == HAL_PIXEL_FORMAT_YV12) { in rsdAllocationData2D()
852 } else if (alloc->mHal.state.yuv == HAL_PIXEL_FORMAT_YCrCb_420_SP) { in rsdAllocationData2D()
/frameworks/av/media/libstagefright/codecs/avc/common/include/
Davcapi_common.h202 typedef int (*FunctionType_FrameBind)(void *userData, int indx, uint8 **yuv);
/frameworks/rs/cpu_ref/
DrsCpuIntrinsicYuvToRGB.cpp130 size_t cstep = cp->alloc->mHal.drvState.yuv.step; in kernel()
/frameworks/native/opengl/tests/hwc/
DhwcTestLib.cpp801 bool yuv; in hwcTestColorConvert() member
873 if (fromAttrib->rgb && toAttrib->yuv) { in hwcTestColorConvert()
910 if (fromAttrib->yuv && toAttrib->rgb) { in hwcTestColorConvert()
/frameworks/base/rs/java/android/renderscript/
DRenderScript.java349 … long rsnTypeCreate(long con, long eid, int x, int y, int z, boolean mips, boolean faces, int yuv); in rsnTypeCreate() argument
350 …ynchronized long nTypeCreate(long eid, int x, int y, int z, boolean mips, boolean faces, int yuv) { in nTypeCreate() argument
352 return rsnTypeCreate(mContext, eid, x, y, z, mips, faces, yuv); in nTypeCreate()
/frameworks/support/v8/renderscript/jni/
Dandroid_renderscript_RenderScript.cpp309 jint dimx, jint dimy, jint dimz, jboolean mips, jboolean faces, jint yuv) in nTypeCreate() argument
312 con, eid, dimx, dimy, dimz, mips, faces, yuv); in nTypeCreate()
314 jint id = (jint)rsTypeCreate(con, (RsElement)eid, dimx, dimy, dimz, mips, faces, yuv); in nTypeCreate()
/frameworks/base/rs/jni/
Dandroid_renderscript_RenderScript.cpp502 jint dimx, jint dimy, jint dimz, jboolean mips, jboolean faces, jint yuv) in nTypeCreate() argument
505 (RsContext)con, eid, dimx, dimy, dimz, mips, faces, yuv); in nTypeCreate()
507 …(jlong)(uintptr_t)rsTypeCreate((RsContext)con, (RsElement)eid, dimx, dimy, dimz, mips, faces, yuv); in nTypeCreate()