Home
last modified time | relevance | path

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

/frameworks/av/media/libstagefright/omx/
DSoftVideoEncoderOMXComponent.cpp389 struct android_ycbcr *ycbcr, int32_t width, int32_t height) { in ConvertFlexYUVToPlanar() argument
390 const uint8_t *src = (const uint8_t *)ycbcr->y; in ConvertFlexYUVToPlanar()
391 const uint8_t *srcU = (const uint8_t *)ycbcr->cb; in ConvertFlexYUVToPlanar()
392 const uint8_t *srcV = (const uint8_t *)ycbcr->cr; in ConvertFlexYUVToPlanar()
399 src += ycbcr->ystride; in ConvertFlexYUVToPlanar()
401 if (ycbcr->cstride == ycbcr->ystride >> 1 && ycbcr->chroma_step == 1) { in ConvertFlexYUVToPlanar()
406 srcU += ycbcr->cstride; in ConvertFlexYUVToPlanar()
409 srcV += ycbcr->cstride; in ConvertFlexYUVToPlanar()
417 srcU += ycbcr->chroma_step; in ConvertFlexYUVToPlanar()
418 srcV += ycbcr->chroma_step; in ConvertFlexYUVToPlanar()
[all …]
/frameworks/av/media/libstagefright/colorconversion/
DSoftwareRenderer.cpp35 const android_ycbcr &ycbcr, int32_t cropTop, int32_t cropLeft, in initDstYUV() argument
37 *dst_y = (uint8_t *)ycbcr.y + cropTop * ycbcr.ystride + cropLeft; in initDstYUV()
39 int32_t c_offset = (cropTop / 2) * ycbcr.cstride + cropLeft / 2; in initDstYUV()
40 *dst_v = (uint8_t *)ycbcr.cr + c_offset; in initDstYUV()
41 *dst_u = (uint8_t *)ycbcr.cb + c_offset; in initDstYUV()
278 struct android_ycbcr ycbcr; in render() local
286 bounds, &ycbcr)); in render()
309 initDstYUV(ycbcr, mCropTop, mCropLeft, &dst_y, &dst_u, &dst_v); in render()
315 dst_y += ycbcr.ystride; in render()
324 dst_u += ycbcr.cstride; in render()
[all …]
/frameworks/native/libs/gui/
DCpuConsumer.cpp91 android_ycbcr ycbcr = android_ycbcr(); in lockBufferItem() local
98 item.mCrop, &ycbcr, fenceFd); in lockBufferItem()
110 if (ycbcr.y != nullptr) { in lockBufferItem()
111 outBuffer->data = reinterpret_cast<uint8_t*>(ycbcr.y); in lockBufferItem()
112 outBuffer->stride = static_cast<uint32_t>(ycbcr.ystride); in lockBufferItem()
113 outBuffer->dataCb = reinterpret_cast<uint8_t*>(ycbcr.cb); in lockBufferItem()
114 outBuffer->dataCr = reinterpret_cast<uint8_t*>(ycbcr.cr); in lockBufferItem()
115 outBuffer->chromaStride = static_cast<uint32_t>(ycbcr.cstride); in lockBufferItem()
116 outBuffer->chromaStep = static_cast<uint32_t>(ycbcr.chroma_step); in lockBufferItem()
/frameworks/base/media/jni/
Dandroid_media_Utils.cpp341 android_ycbcr ycbcr = android_ycbcr(); in lockImageFromBuffer() local
346 res = buffer->lockAsyncYCbCr(inUsage, rect, &ycbcr, fenceFd); in lockImageFromBuffer()
347 pData = ycbcr.y; in lockImageFromBuffer()
366 (ycbcr.y != NULL) ? static_cast<uint32_t>(ycbcr.ystride) : buffer->getStride(); in lockImageFromBuffer()
368 outputImage->dataCb = reinterpret_cast<uint8_t*>(ycbcr.cb); in lockImageFromBuffer()
369 outputImage->dataCr = reinterpret_cast<uint8_t*>(ycbcr.cr); in lockImageFromBuffer()
370 outputImage->chromaStride = static_cast<uint32_t>(ycbcr.cstride); in lockImageFromBuffer()
371 outputImage->chromaStep = static_cast<uint32_t>(ycbcr.chroma_step); in lockImageFromBuffer()
/frameworks/native/libs/ui/
DGraphicBufferMapper.cpp115 const Rect& bounds, android_ycbcr *ycbcr) in lockYCbCr() argument
117 return lockAsyncYCbCr(handle, usage, bounds, ycbcr, -1); in lockYCbCr()
151 uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr, int fenceFd) in lockAsyncYCbCr() argument
155 return mMapper->lock(handle, usage, bounds, fenceFd, ycbcr); in lockAsyncYCbCr()
DGralloc2.cpp276 int acquireFence, android_ycbcr* ycbcr) const { in lock()
305 ycbcr->y = layout.y; in lock()
306 ycbcr->cb = layout.cb; in lock()
307 ycbcr->cr = layout.cr; in lock()
308 ycbcr->ystride = static_cast<size_t>(layout.yStride); in lock()
309 ycbcr->cstride = static_cast<size_t>(layout.cStride); in lock()
310 ycbcr->chroma_step = static_cast<size_t>(layout.chromaStep); in lock()
DGralloc3.cpp236 int acquireFence, android_ycbcr* ycbcr) const { in lock()
263 ycbcr->y = layout.y; in lock()
264 ycbcr->cb = layout.cb; in lock()
265 ycbcr->cr = layout.cr; in lock()
266 ycbcr->ystride = static_cast<size_t>(layout.yStride); in lock()
267 ycbcr->cstride = static_cast<size_t>(layout.cStride); in lock()
268 ycbcr->chroma_step = static_cast<size_t>(layout.chromaStep); in lock()
DGraphicBuffer.cpp285 status_t GraphicBuffer::lockYCbCr(uint32_t inUsage, android_ycbcr* ycbcr) in lockYCbCr() argument
288 status_t res = lockYCbCr(inUsage, lockBounds, ycbcr); in lockYCbCr()
293 android_ycbcr* ycbcr) in lockYCbCr() argument
302 status_t res = getBufferMapper().lockYCbCr(handle, inUsage, rect, ycbcr); in lockYCbCr()
342 status_t GraphicBuffer::lockAsyncYCbCr(uint32_t inUsage, android_ycbcr* ycbcr, in lockAsyncYCbCr() argument
346 status_t res = lockAsyncYCbCr(inUsage, lockBounds, ycbcr, fenceFd); in lockAsyncYCbCr()
351 android_ycbcr* ycbcr, int fenceFd) in lockAsyncYCbCr() argument
360 status_t res = getBufferMapper().lockAsyncYCbCr(handle, inUsage, rect, ycbcr, fenceFd); in lockAsyncYCbCr()
/frameworks/base/core/jni/
Dandroid_hardware_camera2_legacy_LegacyCameraDevice.cpp102 static void rgbToYuv420(uint8_t* rgbBuf, size_t width, size_t height, android_ycbcr* ycbcr) { in rgbToYuv420() argument
103 size_t cStep = ycbcr->chroma_step; in rgbToYuv420()
104 size_t cStride = ycbcr->cstride; in rgbToYuv420()
105 size_t yStride = ycbcr->ystride; in rgbToYuv420()
108 rgbToYuv420(rgbBuf, width, height, reinterpret_cast<uint8_t*>(ycbcr->y), in rgbToYuv420()
109 reinterpret_cast<uint8_t*>(ycbcr->cr), reinterpret_cast<uint8_t*>(ycbcr->cb), in rgbToYuv420()
317 android_ycbcr ycbcr = android_ycbcr(); in produceFrame() local
320 err = buf->lockYCbCr(GRALLOC_USAGE_SW_WRITE_OFTEN, &ycbcr); in produceFrame()
326 rgbToYuv420(pixelBuffer, width, height, &ycbcr); in produceFrame()
/frameworks/native/libs/ui/include_vndk/ui/
DGraphicBuffer.h189 status_t lockYCbCr(uint32_t inUsage, android_ycbcr *ycbcr);
191 android_ycbcr *ycbcr);
202 status_t lockAsyncYCbCr(uint32_t inUsage, android_ycbcr *ycbcr,
205 android_ycbcr *ycbcr, int fenceFd);
DGraphicBufferMapper.h67 uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr);
80 uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr,
DGralloc2.h60 int acquireFence, android_ycbcr* ycbcr) const override;
/frameworks/native/libs/ui/include/ui/
DGraphicBuffer.h189 status_t lockYCbCr(uint32_t inUsage, android_ycbcr *ycbcr);
191 android_ycbcr *ycbcr);
202 status_t lockAsyncYCbCr(uint32_t inUsage, android_ycbcr *ycbcr,
205 android_ycbcr *ycbcr, int fenceFd);
DGraphicBufferMapper.h67 uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr);
80 uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr,
DGralloc.h65 int acquireFence, android_ycbcr* ycbcr) const = 0;
DGralloc3.h59 int acquireFence, android_ycbcr* ycbcr) const override;
DGralloc2.h60 int acquireFence, android_ycbcr* ycbcr) const override;
/frameworks/av/media/libstagefright/omx/include/media/stagefright/omx/
DSoftVideoEncoderOMXComponent.h56 struct android_ycbcr *ycbcr, int32_t width, int32_t height);