/frameworks/av/media/codec2/sfplugin/utils/ |
D | Codec2BufferUtils.cpp | 76 const C2PlaneInfo &plane = layout.planes[i]; in _ImageCopy() 129 int32_t src_stride_y = view.layout().planes[0].rowInc; in ImageCopy() 130 int32_t src_stride_u = view.layout().planes[1].rowInc; in ImageCopy() 131 int32_t src_stride_v = view.layout().planes[2].rowInc; in ImageCopy() 170 int32_t dst_stride_y = view.layout().planes[0].rowInc; in ImageCopy() 171 int32_t dst_stride_u = view.layout().planes[1].rowInc; in ImageCopy() 172 int32_t dst_stride_v = view.layout().planes[2].rowInc; in ImageCopy() 194 && layout.planes[layout.PLANE_Y].channel == C2PlaneInfo::CHANNEL_Y in IsYUV420() 195 && layout.planes[layout.PLANE_Y].allocatedDepth == 8 in IsYUV420() 196 && layout.planes[layout.PLANE_Y].bitDepth == 8 in IsYUV420() [all …]
|
/frameworks/base/core/jni/android/graphics/ |
D | YuvToJpegEncoder.cpp | 94 JSAMPARRAY planes[3]; in compress() local 95 planes[0] = y; in compress() 96 planes[1] = cb; in compress() 97 planes[2] = cr; in compress() 125 jpeg_write_raw_data(cinfo, planes, 16); in compress() 170 JSAMPARRAY planes[3]; in compress() local 171 planes[0] = y; in compress() 172 planes[1] = cb; in compress() 173 planes[2] = cr; in compress() 199 jpeg_write_raw_data(cinfo, planes, 16); in compress()
|
/frameworks/native/libs/nativewindow/ |
D | AHardwareBuffer.cpp | 203 memset(outPlanes->planes, 0, sizeof(outPlanes->planes)); in AHardwareBuffer_lockPlanes() 209 outPlanes->planes[0].data = yuvData.y; in AHardwareBuffer_lockPlanes() 210 outPlanes->planes[0].pixelStride = 1; in AHardwareBuffer_lockPlanes() 211 outPlanes->planes[0].rowStride = yuvData.ystride; in AHardwareBuffer_lockPlanes() 212 outPlanes->planes[1].data = yuvData.cb; in AHardwareBuffer_lockPlanes() 213 outPlanes->planes[1].pixelStride = yuvData.chroma_step; in AHardwareBuffer_lockPlanes() 214 outPlanes->planes[1].rowStride = yuvData.cstride; in AHardwareBuffer_lockPlanes() 215 outPlanes->planes[2].data = yuvData.cr; in AHardwareBuffer_lockPlanes() 216 outPlanes->planes[2].pixelStride = yuvData.chroma_step; in AHardwareBuffer_lockPlanes() 217 outPlanes->planes[2].rowStride = yuvData.cstride; in AHardwareBuffer_lockPlanes() [all …]
|
/frameworks/av/media/codec2/sfplugin/ |
D | Codec2Buffer.cpp | 230 mAllocatedDepth = layout.planes[0].allocatedDepth; in GraphicView2MediaImageConverter() 231 uint32_t bitDepth = layout.planes[0].bitDepth; in GraphicView2MediaImageConverter() 234 uint32_t stride = align(view.crop().width, 2) * divUp(layout.planes[0].allocatedDepth, 8u); in GraphicView2MediaImageConverter() 245 if (layout.planes[0].channel != C2PlaneInfo::CHANNEL_Y in GraphicView2MediaImageConverter() 246 || layout.planes[1].channel != C2PlaneInfo::CHANNEL_CB in GraphicView2MediaImageConverter() 247 || layout.planes[2].channel != C2PlaneInfo::CHANNEL_CR in GraphicView2MediaImageConverter() 248 || layout.planes[0].colSampling != 1 in GraphicView2MediaImageConverter() 249 || layout.planes[0].rowSampling != 1 in GraphicView2MediaImageConverter() 250 || layout.planes[1].colSampling != 2 in GraphicView2MediaImageConverter() 251 || layout.planes[1].rowSampling != 2 in GraphicView2MediaImageConverter() [all …]
|
/frameworks/native/headers/media_plugin/media/hardware/ |
D | VideoAPI.h | 258 const char *planes = asString(j, NULL); variable 260 if (j == MediaImage2::MEDIA_IMAGE_TYPE_UNKNOWN || planes == NULL || i >= strlen(planes)) { 263 return planes[i];
|
/frameworks/av/media/codec2/components/vpx/ |
D | C2SoftVpxEnc.cpp | 495 if (layout.planes[layout.PLANE_Y].colInc == 1 in process() 496 && layout.planes[layout.PLANE_U].colInc == 1 in process() 497 && layout.planes[layout.PLANE_V].colInc == 1) { in process() 501 raw_frame.planes[1] = (uint8_t*)rView->data()[1]; in process() 502 raw_frame.planes[2] = (uint8_t*)rView->data()[2]; in process() 503 raw_frame.stride[0] = layout.planes[layout.PLANE_Y].rowInc; in process() 504 raw_frame.stride[1] = layout.planes[layout.PLANE_U].rowInc; in process() 505 raw_frame.stride[2] = layout.planes[layout.PLANE_V].rowInc; in process()
|
D | C2SoftVpxDec.cpp | 830 size_t dstYStride = layout.planes[C2PlanarLayout::PLANE_Y].rowInc; in outputBuffer() 831 size_t dstUVStride = layout.planes[C2PlanarLayout::PLANE_U].rowInc; in outputBuffer() 834 const uint16_t *srcY = (const uint16_t *)img->planes[VPX_PLANE_Y]; in outputBuffer() 835 const uint16_t *srcU = (const uint16_t *)img->planes[VPX_PLANE_U]; in outputBuffer() 836 const uint16_t *srcV = (const uint16_t *)img->planes[VPX_PLANE_V]; in outputBuffer() 870 const uint8_t *srcY = (const uint8_t *)img->planes[VPX_PLANE_Y]; in outputBuffer() 871 const uint8_t *srcU = (const uint8_t *)img->planes[VPX_PLANE_U]; in outputBuffer() 872 const uint8_t *srcV = (const uint8_t *)img->planes[VPX_PLANE_V]; in outputBuffer()
|
/frameworks/av/media/codec2/vndk/ |
D | C2AllocatorGralloc.cpp | 539 layout->planes[C2PlanarLayout::PLANE_Y] = { in map() 552 layout->planes[C2PlanarLayout::PLANE_U] = { in map() 565 layout->planes[C2PlanarLayout::PLANE_V] = { in map() 578 layout->planes[C2PlanarLayout::PLANE_A] = { in map() 650 layout->planes[C2PlanarLayout::PLANE_R] = { in map() 663 layout->planes[C2PlanarLayout::PLANE_G] = { in map() 676 layout->planes[C2PlanarLayout::PLANE_B] = { in map() 761 layout->planes[C2PlanarLayout::PLANE_Y] = { in map() 774 layout->planes[C2PlanarLayout::PLANE_U] = { in map() 787 layout->planes[C2PlanarLayout::PLANE_V] = { in map() [all …]
|
/frameworks/base/core/java/android/hardware/camera2/ |
D | DngCreator.java | 439 Image.Plane[] planes = pixels.getPlanes(); in writeImage() local 440 if (planes == null || planes.length <= 0) { in writeImage() 444 ByteBuffer buf = planes[0].getBuffer(); in writeImage() 446 planes[0].getPixelStride(), planes[0].getRowStride(), 0); in writeImage()
|
/frameworks/native/opengl/libagl/ |
D | vertex.cpp | 119 int planes = c->clipPlanes.enable; in clipAllPerspective() local 120 while (planes) { in clipAllPerspective() 121 const int i = 31 - gglClz(planes); in clipAllPerspective() 122 planes &= ~(1<<i); in clipAllPerspective()
|
/frameworks/av/media/codec2/tests/vndk/ |
D | C2BufferTest.cpp | 467 C2PlaneInfo yInfo = layout.planes[C2PlanarLayout::PLANE_Y]; in TEST_F() 469 C2PlaneInfo uInfo = layout.planes[C2PlanarLayout::PLANE_U]; in TEST_F() 471 C2PlaneInfo vInfo = layout.planes[C2PlanarLayout::PLANE_V]; in TEST_F() 488 yInfo = layout.planes[C2PlanarLayout::PLANE_Y]; in TEST_F() 490 uInfo = layout.planes[C2PlanarLayout::PLANE_U]; in TEST_F() 492 vInfo = layout.planes[C2PlanarLayout::PLANE_V]; in TEST_F() 531 C2PlaneInfo yInfo = layout.planes[C2PlanarLayout::PLANE_Y]; in TEST_F() 533 C2PlaneInfo uInfo = layout.planes[C2PlanarLayout::PLANE_U]; in TEST_F() 535 C2PlaneInfo vInfo = layout.planes[C2PlanarLayout::PLANE_V]; in TEST_F() 559 yInfo = layout.planes[C2PlanarLayout::PLANE_Y]; in TEST_F() [all …]
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/ |
D | CameraTestUtils.java | 852 Plane[] planes = image.getPlanes(); in getDataFromImage() local 853 assertTrue("Fail to get image planes", planes != null && planes.length > 0); in getDataFromImage() 863 buffer = planes[0].getBuffer(); in getDataFromImage() 873 int maxRowSize = planes[0].getRowStride(); in getDataFromImage() 874 for (int i = 0; i < planes.length; i++) { in getDataFromImage() 875 if (maxRowSize < planes[i].getRowStride()) { in getDataFromImage() 876 maxRowSize = planes[i].getRowStride(); in getDataFromImage() 880 if(VERBOSE) Log.v(TAG, "get data from " + planes.length + " planes"); in getDataFromImage() 881 for (int i = 0; i < planes.length; i++) { in getDataFromImage() 882 buffer = planes[i].getBuffer(); in getDataFromImage() [all …]
|
/frameworks/av/media/codec2/components/mpeg4_h263/ |
D | C2SoftMpeg4Enc.cpp | 487 int32_t yStride = layout.planes[C2PlanarLayout::PLANE_Y].rowInc; in process() 488 int32_t uStride = layout.planes[C2PlanarLayout::PLANE_U].rowInc; in process() 489 int32_t vStride = layout.planes[C2PlanarLayout::PLANE_V].rowInc; in process() 517 if (layout.planes[layout.PLANE_Y].colInc == 1 in process() 518 && layout.planes[layout.PLANE_U].colInc == 1 in process() 519 && layout.planes[layout.PLANE_V].colInc == 1 in process()
|
/frameworks/av/media/codec2/components/aom/ |
D | C2SoftAomDec.cpp | 702 size_t dstYStride = layout.planes[C2PlanarLayout::PLANE_Y].rowInc; in outputBuffer() 703 size_t dstUVStride = layout.planes[C2PlanarLayout::PLANE_U].rowInc; in outputBuffer() 706 const uint16_t *srcY = (const uint16_t *)img->planes[AOM_PLANE_Y]; in outputBuffer() 707 const uint16_t *srcU = (const uint16_t *)img->planes[AOM_PLANE_U]; in outputBuffer() 708 const uint16_t *srcV = (const uint16_t *)img->planes[AOM_PLANE_V]; in outputBuffer() 722 const uint8_t *srcY = (const uint8_t *)img->planes[AOM_PLANE_Y]; in outputBuffer() 723 const uint8_t *srcU = (const uint8_t *)img->planes[AOM_PLANE_U]; in outputBuffer() 724 const uint8_t *srcV = (const uint8_t *)img->planes[AOM_PLANE_V]; in outputBuffer()
|
/frameworks/av/media/libstagefright/codecs/on2/dec/ |
D | SoftVPX.cpp | 183 const uint8_t *srcY = (const uint8_t *)mImg->planes[VPX_PLANE_Y]; in outputBuffers() 184 const uint8_t *srcU = (const uint8_t *)mImg->planes[VPX_PLANE_U]; in outputBuffers() 185 const uint8_t *srcV = (const uint8_t *)mImg->planes[VPX_PLANE_V]; in outputBuffers()
|
/frameworks/rs/script_api/ |
D | rs_matrix.spec | 58 summary: Compute frustum planes 60 Computes 6 frustum planes from the view projection matrix 133 summary: Checks if a sphere is within the frustum planes 135 Returns true if the sphere is within the 6 frustum planes. 265 the six clipping planes <code>left, right, bottom, top, near, far</code>. 315 six clipping planes <code>left, right, bottom, top, near, far</code> into a unit cube
|
/frameworks/native/libs/nativewindow/include/android/ |
D | hardware_buffer.h | 327 AHardwareBuffer_Plane planes[4]; ///< Array of image planes member
|
/frameworks/av/media/img_utils/include/img_utils/ |
D | DngUtils.h | 104 uint32_t planes,
|
/frameworks/av/media/codec2/components/hevc/ |
D | C2SoftHevcEnc.cpp | 678 int32_t yStride = layout.planes[C2PlanarLayout::PLANE_Y].rowInc; in setEncodeArgs() 679 int32_t uStride = layout.planes[C2PlanarLayout::PLANE_U].rowInc; in setEncodeArgs() 680 int32_t vStride = layout.planes[C2PlanarLayout::PLANE_V].rowInc; in setEncodeArgs() 716 if (layout.planes[layout.PLANE_Y].colInc == 1 && in setEncodeArgs() 717 layout.planes[layout.PLANE_U].colInc == 1 && in setEncodeArgs() 718 layout.planes[layout.PLANE_V].colInc == 1 && in setEncodeArgs()
|
/frameworks/rs/script_api/include/ |
D | rs_matrix.rsh | 54 * rsExtractFrustumPlanes: Compute frustum planes 56 * Computes 6 frustum planes from the view projection matrix 59 * viewProj: Matrix to extract planes from. 124 * rsIsSphereInFrustum: Checks if a sphere is within the frustum planes 126 * Returns true if the sphere is within the 6 frustum planes. 271 * the six clipping planes left, right, bottom, top, near, far. 332 * six clipping planes left, right, bottom, top, near, far into a unit cube
|
/frameworks/av/services/camera/libcameraservice/tests/ |
D | NV12Compressor.cpp | 141 const uint8_t** planes[3] = { y, cb, cr }; in compressData() local 184 jpeg_write_raw_data(&mCompressInfo, const_cast<JSAMPIMAGE>(planes), 16); in compressData()
|
/frameworks/av/media/img_utils/src/ |
D | DngUtils.cpp | 292 uint32_t planes, in addGainMap() argument 328 planes, in addGainMap()
|
/frameworks/base/media/jni/ |
D | android_media_ImageReader.cpp | 460 jobject planes = NULL; in Image_unlockIfLocked() local 462 planes = env->GetObjectField(image, gSurfaceImageClassInfo.mPlanes); in Image_unlockIfLocked() 464 wasBufferLocked = (planes != NULL); in Image_unlockIfLocked()
|
D | android_media_ImageWriter.cpp | 791 jobject planes = NULL; in Image_unlockIfLocked() local 793 planes = env->GetObjectField(thiz, gSurfaceImageClassInfo.mPlanes); in Image_unlockIfLocked() 795 isLocked = (planes != NULL); in Image_unlockIfLocked()
|
/frameworks/av/media/codec2/components/avc/ |
D | C2SoftAvcEnc.cpp | 1255 int32_t yStride = layout.planes[C2PlanarLayout::PLANE_Y].rowInc; in setEncodeArgs() 1256 int32_t uStride = layout.planes[C2PlanarLayout::PLANE_U].rowInc; in setEncodeArgs() 1257 int32_t vStride = layout.planes[C2PlanarLayout::PLANE_V].rowInc; in setEncodeArgs() 1287 if (layout.planes[layout.PLANE_Y].colInc == 1 in setEncodeArgs() 1288 && layout.planes[layout.PLANE_U].colInc == 1 in setEncodeArgs() 1289 && layout.planes[layout.PLANE_V].colInc == 1 in setEncodeArgs()
|