Home
last modified time | relevance | path

Searched refs:ycbcr (Results 1 – 9 of 9) sorted by relevance

/frameworks/av/media/libstagefright/omx/
DSoftVideoEncoderOMXComponent.cpp49 struct android_ycbcr *ycbcr, int32_t width, int32_t height) { in ConvertFlexYUVToPlanar() argument
50 const uint8_t *src = (const uint8_t *)ycbcr->y; in ConvertFlexYUVToPlanar()
51 const uint8_t *srcU = (const uint8_t *)ycbcr->cb; in ConvertFlexYUVToPlanar()
52 const uint8_t *srcV = (const uint8_t *)ycbcr->cr; in ConvertFlexYUVToPlanar()
59 src += ycbcr->ystride; in ConvertFlexYUVToPlanar()
61 if (ycbcr->cstride == ycbcr->ystride >> 1 && ycbcr->chroma_step == 1) { in ConvertFlexYUVToPlanar()
66 srcU += ycbcr->cstride; in ConvertFlexYUVToPlanar()
69 srcV += ycbcr->cstride; in ConvertFlexYUVToPlanar()
77 srcU += ycbcr->chroma_step; in ConvertFlexYUVToPlanar()
78 srcV += ycbcr->chroma_step; in ConvertFlexYUVToPlanar()
[all …]
/frameworks/rs/
DrsGrallocConsumer.cpp91 android_ycbcr ycbcr = android_ycbcr(); in lockNextBuffer() local
98 &ycbcr); in lockNextBuffer()
105 bufferPointer = ycbcr.y; in lockNextBuffer()
145 mAlloc->mHal.drvState.lod[1].mallocPtr = ycbcr.cb; in lockNextBuffer()
146 mAlloc->mHal.drvState.lod[2].mallocPtr = ycbcr.cr; in lockNextBuffer()
148 mAlloc->mHal.drvState.lod[0].stride = ycbcr.ystride; in lockNextBuffer()
149 mAlloc->mHal.drvState.lod[1].stride = ycbcr.cstride; in lockNextBuffer()
150 mAlloc->mHal.drvState.lod[2].stride = ycbcr.cstride; in lockNextBuffer()
153 mAlloc->mHal.drvState.yuv.step = ycbcr.chroma_step; in lockNextBuffer()
/frameworks/native/libs/gui/
DCpuConsumer.cpp97 android_ycbcr ycbcr = android_ycbcr(); in lockNextBuffer() local
105 &ycbcr, in lockNextBuffer()
113 bufferPointer = ycbcr.y; in lockNextBuffer()
133 &ycbcr); in lockNextBuffer()
140 bufferPointer = ycbcr.y; in lockNextBuffer()
174 nativeBuffer->stride = (ycbcr.y != NULL) ? in lockNextBuffer()
175 ycbcr.ystride : in lockNextBuffer()
184 nativeBuffer->dataCb = reinterpret_cast<uint8_t*>(ycbcr.cb); in lockNextBuffer()
185 nativeBuffer->dataCr = reinterpret_cast<uint8_t*>(ycbcr.cr); in lockNextBuffer()
186 nativeBuffer->chromaStride = ycbcr.cstride; in lockNextBuffer()
[all …]
/frameworks/native/libs/ui/
DGraphicBufferMapper.cpp90 int usage, const Rect& bounds, android_ycbcr *ycbcr) in lockYCbCr() argument
97 ycbcr); in lockYCbCr()
137 int usage, const Rect& bounds, android_ycbcr *ycbcr, int fenceFd) in lockAsyncYCbCr() argument
145 ycbcr, fenceFd); in lockAsyncYCbCr()
151 ycbcr); in lockAsyncYCbCr()
DGraphicBuffer.cpp185 status_t GraphicBuffer::lockYCbCr(uint32_t usage, android_ycbcr *ycbcr) in lockYCbCr() argument
188 status_t res = lockYCbCr(usage, lockBounds, ycbcr); in lockYCbCr()
193 android_ycbcr *ycbcr) in lockYCbCr() argument
202 status_t res = getBufferMapper().lockYCbCr(handle, usage, rect, ycbcr); in lockYCbCr()
232 status_t GraphicBuffer::lockAsyncYCbCr(uint32_t usage, android_ycbcr *ycbcr, int fenceFd) in lockAsyncYCbCr() argument
235 status_t res = lockAsyncYCbCr(usage, lockBounds, ycbcr, fenceFd); in lockAsyncYCbCr()
239 status_t GraphicBuffer::lockAsyncYCbCr(uint32_t usage, const Rect& rect, android_ycbcr *ycbcr, int … in lockAsyncYCbCr() argument
248 status_t res = getBufferMapper().lockAsyncYCbCr(handle, usage, rect, ycbcr, fenceFd); in lockAsyncYCbCr()
/frameworks/native/include/ui/
DGraphicBuffer.h100 status_t lockYCbCr(uint32_t usage, android_ycbcr *ycbcr);
101 status_t lockYCbCr(uint32_t usage, const Rect& rect, android_ycbcr *ycbcr);
105 status_t lockAsyncYCbCr(uint32_t usage, android_ycbcr *ycbcr, int fenceFd);
106 status_t lockAsyncYCbCr(uint32_t usage, const Rect& rect, android_ycbcr *ycbcr, int fenceFd);
DGraphicBufferMapper.h49 int usage, const Rect& bounds, android_ycbcr *ycbcr);
57 int usage, const Rect& bounds, android_ycbcr *ycbcr, int fenceFd);
/frameworks/base/core/jni/
Dandroid_hardware_camera2_legacy_LegacyCameraDevice.cpp86 static void rgbToYuv420(uint8_t* rgbBuf, size_t width, size_t height, android_ycbcr* ycbcr) { in rgbToYuv420() argument
87 size_t cStep = ycbcr->chroma_step; in rgbToYuv420()
88 size_t cStride = ycbcr->cstride; in rgbToYuv420()
89 size_t yStride = ycbcr->ystride; in rgbToYuv420()
90 rgbToYuv420(rgbBuf, width, height, reinterpret_cast<uint8_t*>(ycbcr->y), in rgbToYuv420()
91 reinterpret_cast<uint8_t*>(ycbcr->cb), reinterpret_cast<uint8_t*>(ycbcr->cr), in rgbToYuv420()
300 android_ycbcr ycbcr = android_ycbcr(); in produceFrame() local
303 err = buf->lockYCbCr(GRALLOC_USAGE_SW_WRITE_OFTEN, &ycbcr); in produceFrame()
309 rgbToYuv420(pixelBuffer, width, height, &ycbcr); in produceFrame()
/frameworks/av/media/libstagefright/include/
DSoftVideoEncoderOMXComponent.h38 struct android_ycbcr *ycbcr, int32_t width, int32_t height);