Home
last modified time | relevance | path

Searched refs:ycbcr (Results 1 – 21 of 21) 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.cpp92 android_ycbcr ycbcr = android_ycbcr(); in lockBufferItem() local
99 item.mCrop, &ycbcr, fenceFd); in lockBufferItem()
111 if (ycbcr.y != nullptr) { in lockBufferItem()
112 outBuffer->data = reinterpret_cast<uint8_t*>(ycbcr.y); in lockBufferItem()
113 outBuffer->stride = static_cast<uint32_t>(ycbcr.ystride); in lockBufferItem()
114 outBuffer->dataCb = reinterpret_cast<uint8_t*>(ycbcr.cb); in lockBufferItem()
115 outBuffer->dataCr = reinterpret_cast<uint8_t*>(ycbcr.cr); in lockBufferItem()
116 outBuffer->chromaStride = static_cast<uint32_t>(ycbcr.cstride); in lockBufferItem()
117 outBuffer->chromaStep = static_cast<uint32_t>(ycbcr.chroma_step); in lockBufferItem()
/frameworks/native/libs/ui/
DGralloc5.cpp636 android_ycbcr ycbcr; in lock() local
638 ycbcr.y = nullptr; in lock()
639 ycbcr.cb = nullptr; in lock()
640 ycbcr.cr = nullptr; in lock()
641 ycbcr.ystride = 0; in lock()
642 ycbcr.cstride = 0; in lock()
643 ycbcr.chroma_step = 0; in lock()
662 if ((ycbcr.y != nullptr) || (planeLayout.sampleIncrementInBits % 8 != 0)) { in lock()
666 ycbcr.y = tmpData; in lock()
667 ycbcr.ystride = planeLayout.strideInBytes; in lock()
[all …]
DGralloc4.cpp321 android_ycbcr ycbcr; in lock() local
323 ycbcr.y = nullptr; in lock()
324 ycbcr.cb = nullptr; in lock()
325 ycbcr.cr = nullptr; in lock()
326 ycbcr.ystride = 0; in lock()
327 ycbcr.cstride = 0; in lock()
328 ycbcr.chroma_step = 0; in lock()
347 if ((ycbcr.y != nullptr) || (planeLayout.sampleIncrementInBits % 8 != 0)) { in lock()
351 ycbcr.y = tmpData; in lock()
352 ycbcr.ystride = planeLayout.strideInBytes; in lock()
[all …]
DGralloc2.cpp285 int acquireFence, android_ycbcr* ycbcr) const { in lock()
314 ycbcr->y = layout.y; in lock()
315 ycbcr->cb = layout.cb; in lock()
316 ycbcr->cr = layout.cr; in lock()
317 ycbcr->ystride = static_cast<size_t>(layout.yStride); in lock()
318 ycbcr->cstride = static_cast<size_t>(layout.cStride); in lock()
319 ycbcr->chroma_step = static_cast<size_t>(layout.chromaStep); in lock()
DGralloc3.cpp245 int acquireFence, android_ycbcr* ycbcr) const { in lock()
272 ycbcr->y = layout.y; in lock()
273 ycbcr->cb = layout.cb; in lock()
274 ycbcr->cr = layout.cr; in lock()
275 ycbcr->ystride = static_cast<size_t>(layout.yStride); in lock()
276 ycbcr->cstride = static_cast<size_t>(layout.cStride); in lock()
277 ycbcr->chroma_step = static_cast<size_t>(layout.chromaStep); in lock()
DGraphicBuffer.cpp317 status_t GraphicBuffer::lockYCbCr(uint32_t inUsage, android_ycbcr* ycbcr) in lockYCbCr() argument
320 status_t res = lockYCbCr(inUsage, lockBounds, ycbcr); in lockYCbCr()
325 android_ycbcr* ycbcr) in lockYCbCr() argument
334 return lockAsyncYCbCr(inUsage, rect, ycbcr, -1); in lockYCbCr()
411 status_t GraphicBuffer::lockAsyncYCbCr(uint32_t inUsage, android_ycbcr* ycbcr, in lockAsyncYCbCr() argument
415 status_t res = lockAsyncYCbCr(inUsage, lockBounds, ycbcr, fenceFd); in lockAsyncYCbCr()
420 android_ycbcr* ycbcr, int fenceFd) in lockAsyncYCbCr() argument
434 *ycbcr = result.value(); in lockAsyncYCbCr()
DGraphicBufferMapper.cpp192 android_ycbcr* ycbcr) { in lockYCbCr() argument
195 *ycbcr = result.value(); in lockYCbCr()
216 const Rect& bounds, android_ycbcr* ycbcr, in lockAsyncYCbCr() argument
220 *ycbcr = result.value(); in lockAsyncYCbCr()
/frameworks/base/media/jni/
Dandroid_media_Utils.cpp561 android_ycbcr ycbcr = android_ycbcr(); in lockImageFromBuffer() local
567 res = buffer->lockAsyncYCbCr(inUsage, rect, &ycbcr, fenceFd); in lockImageFromBuffer()
573 pData = ycbcr.y; in lockImageFromBuffer()
597 (ycbcr.y != NULL) ? static_cast<uint32_t>(ycbcr.ystride) : buffer->getStride(); in lockImageFromBuffer()
599 outputImage->dataCb = reinterpret_cast<uint8_t*>(ycbcr.cb); in lockImageFromBuffer()
600 outputImage->dataCr = reinterpret_cast<uint8_t*>(ycbcr.cr); in lockImageFromBuffer()
601 outputImage->chromaStride = static_cast<uint32_t>(ycbcr.cstride); in lockImageFromBuffer()
602 outputImage->chromaStep = static_cast<uint32_t>(ycbcr.chroma_step); in lockImageFromBuffer()
/frameworks/native/libs/ui/include/ui/
DGraphicBuffer.h193 status_t lockYCbCr(uint32_t inUsage, android_ycbcr *ycbcr);
195 android_ycbcr *ycbcr);
206 status_t lockAsyncYCbCr(uint32_t inUsage, android_ycbcr *ycbcr,
209 android_ycbcr *ycbcr, int fenceFd);
DGraphicBufferMapper.h100 uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr);
109 uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr,
DGralloc3.h59 int acquireFence, android_ycbcr* ycbcr) const override;
DGralloc2.h60 int acquireFence, android_ycbcr* ycbcr) const override;
DGralloc.h69 int acquireFence, android_ycbcr* ycbcr) const = 0;
DGralloc5.h56 int acquireFence, android_ycbcr *ycbcr) const override;
DGralloc4.h64 int acquireFence, android_ycbcr* ycbcr) const override;
/frameworks/native/libs/ui/include_vndk/ui/
DGraphicBuffer.h193 status_t lockYCbCr(uint32_t inUsage, android_ycbcr *ycbcr);
195 android_ycbcr *ycbcr);
206 status_t lockAsyncYCbCr(uint32_t inUsage, android_ycbcr *ycbcr,
209 android_ycbcr *ycbcr, int fenceFd);
DGraphicBufferMapper.h100 uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr);
109 uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr,
/frameworks/base/libs/hostgraphics/ui/
DGraphicBuffer.h64 status_t lockAsyncYCbCr(uint32_t inUsage, const Rect& rect, android_ycbcr* ycbcr, int fenceFd) { in lockAsyncYCbCr() argument
/frameworks/av/media/libstagefright/omx/include/media/stagefright/omx/
DSoftVideoEncoderOMXComponent.h56 struct android_ycbcr *ycbcr, int32_t width, int32_t height);