/frameworks/av/media/libstagefright/omx/ |
D | SoftVideoEncoderOMXComponent.cpp | 363 struct android_ycbcr *ycbcr, int32_t width, int32_t height) { in ConvertFlexYUVToPlanar() argument 364 const uint8_t *src = (const uint8_t *)ycbcr->y; in ConvertFlexYUVToPlanar() 365 const uint8_t *srcU = (const uint8_t *)ycbcr->cb; in ConvertFlexYUVToPlanar() 366 const uint8_t *srcV = (const uint8_t *)ycbcr->cr; in ConvertFlexYUVToPlanar() 373 src += ycbcr->ystride; in ConvertFlexYUVToPlanar() 375 if (ycbcr->cstride == ycbcr->ystride >> 1 && ycbcr->chroma_step == 1) { in ConvertFlexYUVToPlanar() 380 srcU += ycbcr->cstride; in ConvertFlexYUVToPlanar() 383 srcV += ycbcr->cstride; in ConvertFlexYUVToPlanar() 391 srcU += ycbcr->chroma_step; in ConvertFlexYUVToPlanar() 392 srcV += ycbcr->chroma_step; in ConvertFlexYUVToPlanar() [all …]
|
/frameworks/rs/ |
D | rsGrallocConsumer.cpp | 97 android_ycbcr ycbcr = android_ycbcr(); in lockNextBuffer() local 104 &ycbcr); in lockNextBuffer() 111 bufferPointer = ycbcr.y; in lockNextBuffer() 151 mAlloc->mHal.drvState.lod[1].mallocPtr = ycbcr.cb; in lockNextBuffer() 152 mAlloc->mHal.drvState.lod[2].mallocPtr = ycbcr.cr; in lockNextBuffer() 154 mAlloc->mHal.drvState.lod[0].stride = ycbcr.ystride; in lockNextBuffer() 155 mAlloc->mHal.drvState.lod[1].stride = ycbcr.cstride; in lockNextBuffer() 156 mAlloc->mHal.drvState.lod[2].stride = ycbcr.cstride; in lockNextBuffer() 159 mAlloc->mHal.drvState.yuv.step = ycbcr.chroma_step; in lockNextBuffer()
|
/frameworks/native/libs/gui/ |
D | CpuConsumer.cpp | 112 android_ycbcr ycbcr = android_ycbcr(); in lockNextBuffer() local 121 &ycbcr, in lockNextBuffer() 127 &ycbcr); in lockNextBuffer() 130 bufferPointer = ycbcr.y; in lockNextBuffer() 182 nativeBuffer->stride = (ycbcr.y != NULL) ? in lockNextBuffer() 183 static_cast<uint32_t>(ycbcr.ystride) : in lockNextBuffer() 193 nativeBuffer->dataCb = reinterpret_cast<uint8_t*>(ycbcr.cb); in lockNextBuffer() 194 nativeBuffer->dataCr = reinterpret_cast<uint8_t*>(ycbcr.cr); in lockNextBuffer() 195 nativeBuffer->chromaStride = static_cast<uint32_t>(ycbcr.cstride); in lockNextBuffer() 196 nativeBuffer->chromaStep = static_cast<uint32_t>(ycbcr.chroma_step); in lockNextBuffer()
|
/frameworks/native/libs/ui/ |
D | GraphicBufferMapper.cpp | 95 uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr) in lockYCbCr() argument 106 ycbcr); in lockYCbCr() 148 uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr, int fenceFd) in lockAsyncYCbCr() argument 157 bounds.width(), bounds.height(), ycbcr, fenceFd); in lockAsyncYCbCr() 165 ycbcr); in lockAsyncYCbCr()
|
D | GraphicBuffer.cpp | 202 status_t GraphicBuffer::lockYCbCr(uint32_t inUsage, android_ycbcr* ycbcr) in lockYCbCr() argument 205 status_t res = lockYCbCr(inUsage, lockBounds, ycbcr); in lockYCbCr() 210 android_ycbcr* ycbcr) in lockYCbCr() argument 219 status_t res = getBufferMapper().lockYCbCr(handle, inUsage, rect, ycbcr); in lockYCbCr() 251 status_t GraphicBuffer::lockAsyncYCbCr(uint32_t inUsage, android_ycbcr* ycbcr, in lockAsyncYCbCr() argument 255 status_t res = lockAsyncYCbCr(inUsage, lockBounds, ycbcr, fenceFd); in lockAsyncYCbCr() 260 android_ycbcr* ycbcr, int fenceFd) in lockAsyncYCbCr() argument 270 ycbcr, fenceFd); in lockAsyncYCbCr()
|
/frameworks/native/include/ui/ |
D | GraphicBuffer.h | 111 status_t lockYCbCr(uint32_t inUsage, android_ycbcr *ycbcr); 113 android_ycbcr *ycbcr); 118 status_t lockAsyncYCbCr(uint32_t inUsage, android_ycbcr *ycbcr, 121 android_ycbcr *ycbcr, int fenceFd);
|
D | GraphicBufferMapper.h | 49 uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr); 57 uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr,
|
/frameworks/base/core/jni/ |
D | android_hardware_camera2_legacy_LegacyCameraDevice.cpp | 85 static void rgbToYuv420(uint8_t* rgbBuf, size_t width, size_t height, android_ycbcr* ycbcr) { in rgbToYuv420() argument 86 size_t cStep = ycbcr->chroma_step; in rgbToYuv420() 87 size_t cStride = ycbcr->cstride; in rgbToYuv420() 88 size_t yStride = ycbcr->ystride; in rgbToYuv420() 91 rgbToYuv420(rgbBuf, width, height, reinterpret_cast<uint8_t*>(ycbcr->y), in rgbToYuv420() 92 reinterpret_cast<uint8_t*>(ycbcr->cr), reinterpret_cast<uint8_t*>(ycbcr->cb), in rgbToYuv420() 303 android_ycbcr ycbcr = android_ycbcr(); in produceFrame() local 306 err = buf->lockYCbCr(GRALLOC_USAGE_SW_WRITE_OFTEN, &ycbcr); in produceFrame() 312 rgbToYuv420(pixelBuffer, width, height, &ycbcr); in produceFrame()
|
/frameworks/base/media/jni/ |
D | android_media_ImageWriter.cpp | 729 android_ycbcr ycbcr = android_ycbcr(); in Image_getLockedImage() local 735 res = buffer->lockAsyncYCbCr(GRALLOC_USAGE_SW_WRITE_OFTEN, &ycbcr, fenceFd); in Image_getLockedImage() 742 pData = ycbcr.y; in Image_getLockedImage() 760 image->stride = (ycbcr.y != NULL) ? static_cast<uint32_t>(ycbcr.ystride) : buffer->getStride(); in Image_getLockedImage() 762 image->dataCb = reinterpret_cast<uint8_t*>(ycbcr.cb); in Image_getLockedImage() 763 image->dataCr = reinterpret_cast<uint8_t*>(ycbcr.cr); in Image_getLockedImage() 764 image->chromaStride = static_cast<uint32_t>(ycbcr.cstride); in Image_getLockedImage() 765 image->chromaStep = static_cast<uint32_t>(ycbcr.chroma_step); in Image_getLockedImage()
|
/frameworks/av/media/libstagefright/include/ |
D | SoftVideoEncoderOMXComponent.h | 55 struct android_ycbcr *ycbcr, int32_t width, int32_t height);
|