Searched refs:ycbcr (Results 1 - 11 of 11) sorted by relevance

/frameworks/native/libs/ui/
H A DGraphicBufferMapper.cpp93 const Rect& bounds, android_ycbcr *ycbcr)
95 return lockAsyncYCbCr(handle, usage, bounds, ycbcr, -1);
156 uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr, int fenceFd)
164 ycbcr->y = layout.y;
165 ycbcr->cb = layout.cb;
166 ycbcr->cr = layout.cr;
167 ycbcr->ystride = static_cast<size_t>(layout.yStride);
168 ycbcr->cstride = static_cast<size_t>(layout.cStride);
169 ycbcr->chroma_step = static_cast<size_t>(layout.chromaStep);
92 lockYCbCr(buffer_handle_t handle, uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr) argument
155 lockAsyncYCbCr(buffer_handle_t handle, uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr, int fenceFd) argument
H A DGraphicBuffer.cpp242 status_t GraphicBuffer::lockYCbCr(uint32_t inUsage, android_ycbcr* ycbcr) argument
245 status_t res = lockYCbCr(inUsage, lockBounds, ycbcr);
250 android_ycbcr* ycbcr)
259 status_t res = getBufferMapper().lockYCbCr(handle, inUsage, rect, ycbcr);
297 status_t GraphicBuffer::lockAsyncYCbCr(uint32_t inUsage, android_ycbcr* ycbcr, argument
301 status_t res = lockAsyncYCbCr(inUsage, lockBounds, ycbcr, fenceFd);
306 android_ycbcr* ycbcr, int fenceFd)
315 status_t res = getBufferMapper().lockAsyncYCbCr(handle, inUsage, rect, ycbcr, fenceFd);
249 lockYCbCr(uint32_t inUsage, const Rect& rect, android_ycbcr* ycbcr) argument
305 lockAsyncYCbCr(uint32_t inUsage, const Rect& rect, android_ycbcr* ycbcr, int fenceFd) argument
/frameworks/av/media/libstagefright/omx/
H A DSoftVideoEncoderOMXComponent.cpp389 struct android_ycbcr *ycbcr, int32_t width, int32_t height) {
390 const uint8_t *src = (const uint8_t *)ycbcr->y;
391 const uint8_t *srcU = (const uint8_t *)ycbcr->cb;
392 const uint8_t *srcV = (const uint8_t *)ycbcr->cr;
399 src += ycbcr->ystride;
401 if (ycbcr->cstride == ycbcr->ystride >> 1 && ycbcr->chroma_step == 1) {
406 srcU += ycbcr->cstride;
409 srcV += ycbcr
387 ConvertFlexYUVToPlanar( uint8_t *dst, size_t dstStride, size_t dstVStride, struct android_ycbcr *ycbcr, int32_t width, int32_t height) argument
596 struct android_ycbcr ycbcr; local
[all...]
/frameworks/native/libs/gui/
H A DCpuConsumer.cpp118 android_ycbcr ycbcr = android_ycbcr(); local
127 &ycbcr,
133 &ycbcr);
136 bufferPointer = ycbcr.y;
188 nativeBuffer->stride = (ycbcr.y != NULL) ?
189 static_cast<uint32_t>(ycbcr.ystride) :
199 nativeBuffer->dataCb = reinterpret_cast<uint8_t*>(ycbcr.cb);
200 nativeBuffer->dataCr = reinterpret_cast<uint8_t*>(ycbcr.cr);
201 nativeBuffer->chromaStride = static_cast<uint32_t>(ycbcr.cstride);
202 nativeBuffer->chromaStep = static_cast<uint32_t>(ycbcr
[all...]
/frameworks/native/include/ui/
H A DGraphicBufferMapper.h60 uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr);
72 uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr,
H A DGraphicBuffer.h167 status_t lockYCbCr(uint32_t inUsage, android_ycbcr *ycbcr);
169 android_ycbcr *ycbcr);
176 status_t lockAsyncYCbCr(uint32_t inUsage, android_ycbcr *ycbcr,
179 android_ycbcr *ycbcr, int fenceFd);
/frameworks/native/libs/ui/include/ui/
H A DGraphicBufferMapper.h60 uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr);
72 uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr,
H A DGraphicBuffer.h167 status_t lockYCbCr(uint32_t inUsage, android_ycbcr *ycbcr);
169 android_ycbcr *ycbcr);
176 status_t lockAsyncYCbCr(uint32_t inUsage, android_ycbcr *ycbcr,
179 android_ycbcr *ycbcr, int fenceFd);
/frameworks/av/media/libstagefright/omx/include/media/stagefright/omx/
H A DSoftVideoEncoderOMXComponent.h54 struct android_ycbcr *ycbcr, int32_t width, int32_t height);
/frameworks/base/core/jni/
H A Dandroid_hardware_camera2_legacy_LegacyCameraDevice.cpp86 static void rgbToYuv420(uint8_t* rgbBuf, size_t width, size_t height, android_ycbcr* ycbcr) { argument
87 size_t cStep = ycbcr->chroma_step;
88 size_t cStride = ycbcr->cstride;
89 size_t yStride = ycbcr->ystride;
92 rgbToYuv420(rgbBuf, width, height, reinterpret_cast<uint8_t*>(ycbcr->y),
93 reinterpret_cast<uint8_t*>(ycbcr->cr), reinterpret_cast<uint8_t*>(ycbcr->cb),
292 android_ycbcr ycbcr = android_ycbcr(); local
295 err = buf->lockYCbCr(GRALLOC_USAGE_SW_WRITE_OFTEN, &ycbcr);
297 ALOGE("%s: Failed to lock ycbcr buffe
[all...]
/frameworks/base/media/jni/
H A Dandroid_media_Utils.cpp870 android_ycbcr ycbcr = android_ycbcr(); local
875 res = buffer->lockAsyncYCbCr(inUsage, rect, &ycbcr, fenceFd);
876 pData = ycbcr.y;
895 (ycbcr.y != NULL) ? static_cast<uint32_t>(ycbcr.ystride) : buffer->getStride();
897 outputImage->dataCb = reinterpret_cast<uint8_t*>(ycbcr.cb);
898 outputImage->dataCr = reinterpret_cast<uint8_t*>(ycbcr.cr);
899 outputImage->chromaStride = static_cast<uint32_t>(ycbcr.cstride);
900 outputImage->chromaStep = static_cast<uint32_t>(ycbcr.chroma_step);

Completed in 418 milliseconds