/frameworks/av/media/codec2/sfplugin/utils/ |
D | Codec2BufferUtils.cpp | 79 const C2PlaneInfo &plane = layout.planes[i]; in _ImageCopy() 133 int32_t src_stride_y = view.layout().planes[0].rowInc; in ImageCopy() 134 int32_t src_stride_u = view.layout().planes[1].rowInc; in ImageCopy() 135 int32_t src_stride_v = view.layout().planes[2].rowInc; in ImageCopy() 224 int32_t dst_stride_y = view.layout().planes[0].rowInc; in ImageCopy() 225 int32_t dst_stride_u = view.layout().planes[1].rowInc; in ImageCopy() 226 int32_t dst_stride_v = view.layout().planes[2].rowInc; in ImageCopy() 296 && layout.planes[layout.PLANE_Y].channel == C2PlaneInfo::CHANNEL_Y in IsYUV420() 297 && layout.planes[layout.PLANE_Y].allocatedDepth == 8 in IsYUV420() 298 && layout.planes[layout.PLANE_Y].bitDepth == 8 in IsYUV420() [all …]
|
/frameworks/av/media/codec2/vndk/ |
D | C2AllocatorGralloc.cpp | 386 std::vector<ui::PlaneLayout> planes; in Gralloc4Mapper_lock() local 388 status_t err = mapper.getPlaneLayouts(handle, &planes); in Gralloc4Mapper_lock() 389 if (err != NO_ERROR || planes.empty()) { in Gralloc4Mapper_lock() 406 for (const ui::PlaneLayout &plane : planes) { in Gralloc4Mapper_lock() 441 layout->planes[planeId] = { in Gralloc4Mapper_lock() 510 layout->planes[C2PlanarLayout::PLANE_Y] = { in PopulatePlaneLayout() 523 layout->planes[C2PlanarLayout::PLANE_U] = { in PopulatePlaneLayout() 536 layout->planes[C2PlanarLayout::PLANE_V] = { in PopulatePlaneLayout() 549 layout->planes[C2PlanarLayout::PLANE_A] = { in PopulatePlaneLayout() 583 layout->planes[C2PlanarLayout::PLANE_R] = { in PopulatePlaneLayout() [all …]
|
/frameworks/native/libs/nativewindow/ |
D | AHardwareBuffer.cpp | 296 memset(outPlanes->planes, 0, sizeof(outPlanes->planes)); in AHardwareBuffer_lockPlanes() 302 outPlanes->planes[0].data = yuvData.y; in AHardwareBuffer_lockPlanes() 306 outPlanes->planes[0].pixelStride = 2; in AHardwareBuffer_lockPlanes() 308 outPlanes->planes[0].pixelStride = 1; in AHardwareBuffer_lockPlanes() 310 outPlanes->planes[0].rowStride = yuvData.ystride; in AHardwareBuffer_lockPlanes() 311 outPlanes->planes[1].data = yuvData.cb; in AHardwareBuffer_lockPlanes() 312 outPlanes->planes[1].pixelStride = yuvData.chroma_step; in AHardwareBuffer_lockPlanes() 313 outPlanes->planes[1].rowStride = yuvData.cstride; in AHardwareBuffer_lockPlanes() 314 outPlanes->planes[2].data = yuvData.cr; in AHardwareBuffer_lockPlanes() 315 outPlanes->planes[2].pixelStride = yuvData.chroma_step; in AHardwareBuffer_lockPlanes() [all …]
|
/frameworks/base/libs/hwui/jni/ |
D | YuvToJpegEncoder.cpp | 157 JSAMPARRAY planes[3]; in compress() local 158 planes[0] = y; in compress() 159 planes[1] = cb; in compress() 160 planes[2] = cr; in compress() 188 jpeg_write_raw_data(cinfo, planes, 16); in compress() 233 JSAMPARRAY planes[3]; in compress() local 234 planes[0] = y; in compress() 235 planes[1] = cb; in compress() 236 planes[2] = cr; in compress() 262 jpeg_write_raw_data(cinfo, planes, 16); in compress()
|
/frameworks/av/media/codec2/sfplugin/tests/ |
D | CCodecBuffers_test.cpp | 190 const C2PlaneInfo& yPlane = layout.planes[C2PlanarLayout::PLANE_Y]; in TEST() 191 const C2PlaneInfo& uPlane = layout.planes[C2PlanarLayout::PLANE_U]; in TEST() 192 const C2PlaneInfo& vPlane = layout.planes[C2PlanarLayout::PLANE_V]; in TEST() 327 const C2PlaneInfo& yPlane = layout.planes[C2PlanarLayout::PLANE_Y]; in TEST() 328 const C2PlaneInfo& uPlane = layout.planes[C2PlanarLayout::PLANE_U]; in TEST() 329 const C2PlaneInfo& vPlane = layout.planes[C2PlanarLayout::PLANE_V]; in TEST() 487 layout.planes[C2PlanarLayout::PLANE_Y] = { in YUVPlanarLayout() 500 layout.planes[C2PlanarLayout::PLANE_U] = { in YUVPlanarLayout() 513 layout.planes[C2PlanarLayout::PLANE_V] = { in YUVPlanarLayout() 536 layout.planes[C2PlanarLayout::PLANE_Y] = { in YUVSemiPlanarLayout() [all …]
|
/frameworks/native/headers/media_plugin/media/hardware/ |
D | VideoAPI.h | 262 const char *planes = asString(j, NULL); variable 264 if (j == MediaImage2::MEDIA_IMAGE_TYPE_UNKNOWN || planes == NULL || i >= strlen(planes)) { 267 return planes[i];
|
/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/av/media/codec2/components/aom/ |
D | C2SoftAomDec.cpp | 580 size_t dstYStride = layout.planes[C2PlanarLayout::PLANE_Y].rowInc; in outputBuffer() 581 size_t dstUStride = layout.planes[C2PlanarLayout::PLANE_U].rowInc; in outputBuffer() 582 size_t dstVStride = layout.planes[C2PlanarLayout::PLANE_V].rowInc; in outputBuffer() 585 const uint16_t *srcY = (const uint16_t *)img->planes[AOM_PLANE_Y]; in outputBuffer() 586 const uint16_t *srcU = (const uint16_t *)img->planes[AOM_PLANE_U]; in outputBuffer() 587 const uint16_t *srcV = (const uint16_t *)img->planes[AOM_PLANE_V]; in outputBuffer() 600 const uint8_t *srcY = (const uint8_t *)img->planes[AOM_PLANE_Y]; in outputBuffer() 601 const uint8_t *srcU = (const uint8_t *)img->planes[AOM_PLANE_U]; in outputBuffer() 602 const uint8_t *srcV = (const uint8_t *)img->planes[AOM_PLANE_V]; in outputBuffer()
|
D | C2SoftAomEnc.cpp | 827 mIs10Bit = (layout.planes[layout.PLANE_Y].bitDepth == 10); in process() 933 raw_frame.planes[1] = (uint8_t*)rView->data()[1]; in process() 934 raw_frame.planes[2] = (uint8_t*)rView->data()[2]; in process() 935 raw_frame.stride[0] = layout.planes[layout.PLANE_Y].rowInc; in process() 936 raw_frame.stride[1] = layout.planes[layout.PLANE_U].rowInc; in process() 937 raw_frame.stride[2] = layout.planes[layout.PLANE_V].rowInc; in process() 968 layout.planes[layout.PLANE_Y].rowInc / 2, in process() 969 layout.planes[layout.PLANE_U].rowInc / 2, in process() 996 layout.planes[layout.PLANE_Y].rowInc / 4, stride, in process()
|
/frameworks/av/media/codec2/tests/vndk/ |
D | C2BufferTest.cpp | 473 C2PlaneInfo yInfo = layout.planes[C2PlanarLayout::PLANE_Y]; in TEST_F() 475 C2PlaneInfo uInfo = layout.planes[C2PlanarLayout::PLANE_U]; in TEST_F() 477 C2PlaneInfo vInfo = layout.planes[C2PlanarLayout::PLANE_V]; in TEST_F() 494 yInfo = layout.planes[C2PlanarLayout::PLANE_Y]; in TEST_F() 496 uInfo = layout.planes[C2PlanarLayout::PLANE_U]; in TEST_F() 498 vInfo = layout.planes[C2PlanarLayout::PLANE_V]; in TEST_F() 537 C2PlaneInfo yInfo = layout.planes[C2PlanarLayout::PLANE_Y]; in TEST_F() 539 C2PlaneInfo uInfo = layout.planes[C2PlanarLayout::PLANE_U]; in TEST_F() 541 C2PlaneInfo vInfo = layout.planes[C2PlanarLayout::PLANE_V]; in TEST_F() 565 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/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/av/media/codec2/components/vpx/ |
D | C2SoftVpxDec.cpp | 804 size_t dstYStride = layout.planes[C2PlanarLayout::PLANE_Y].rowInc; in outputBuffer() 805 size_t dstUStride = layout.planes[C2PlanarLayout::PLANE_U].rowInc; in outputBuffer() 806 size_t dstVStride = layout.planes[C2PlanarLayout::PLANE_V].rowInc; in outputBuffer() 809 const uint16_t *srcY = (const uint16_t *)img->planes[VPX_PLANE_Y]; in outputBuffer() 810 const uint16_t *srcU = (const uint16_t *)img->planes[VPX_PLANE_U]; in outputBuffer() 811 const uint16_t *srcV = (const uint16_t *)img->planes[VPX_PLANE_V]; in outputBuffer() 851 const uint8_t *srcY = (const uint8_t *)img->planes[VPX_PLANE_Y]; in outputBuffer() 852 const uint8_t *srcU = (const uint8_t *)img->planes[VPX_PLANE_U]; in outputBuffer() 853 const uint8_t *srcV = (const uint8_t *)img->planes[VPX_PLANE_V]; in outputBuffer()
|
D | C2SoftVpxEnc.cpp | 945 if (layout.planes[layout.PLANE_Y].colInc == 1 in process() 946 && layout.planes[layout.PLANE_U].colInc == 1 in process() 947 && layout.planes[layout.PLANE_V].colInc == 1) { in process() 951 raw_frame.planes[1] = (uint8_t*)rView->data()[1]; in process() 952 raw_frame.planes[2] = (uint8_t*)rView->data()[2]; in process() 953 raw_frame.stride[0] = layout.planes[layout.PLANE_Y].rowInc; in process() 954 raw_frame.stride[1] = layout.planes[layout.PLANE_U].rowInc; in process() 955 raw_frame.stride[2] = layout.planes[layout.PLANE_V].rowInc; in process()
|
/frameworks/av/media/codec2/components/mpeg4_h263/ |
D | C2SoftMpeg4Enc.cpp | 589 int32_t yStride = layout.planes[C2PlanarLayout::PLANE_Y].rowInc; in process() 590 int32_t uStride = layout.planes[C2PlanarLayout::PLANE_U].rowInc; in process() 591 int32_t vStride = layout.planes[C2PlanarLayout::PLANE_V].rowInc; in process() 619 if (layout.planes[layout.PLANE_Y].colInc == 1 in process() 620 && layout.planes[layout.PLANE_U].colInc == 1 in process() 621 && layout.planes[layout.PLANE_V].colInc == 1 in process()
|
D | C2SoftMpeg4Dec.cpp | 607 size_t dstYStride = layout.planes[C2PlanarLayout::PLANE_Y].rowInc; in process() 608 size_t dstUStride = layout.planes[C2PlanarLayout::PLANE_U].rowInc; in process() 609 size_t dstVStride = layout.planes[C2PlanarLayout::PLANE_V].rowInc; in process()
|
/frameworks/av/media/codec2/sfplugin/ |
D | Codec2Buffer.cpp | 260 mAllocatedDepth = layout.planes[0].allocatedDepth; in GraphicView2MediaImageConverter() 261 uint32_t bitDepth = layout.planes[0].bitDepth; in GraphicView2MediaImageConverter() 264 uint32_t stride = align(view.crop().width, 2) * divUp(layout.planes[0].allocatedDepth, 8u); in GraphicView2MediaImageConverter() 310 C2PlaneInfo yPlane = layout.planes[C2PlanarLayout::PLANE_Y]; in GraphicView2MediaImageConverter() 311 C2PlaneInfo uPlane = layout.planes[C2PlanarLayout::PLANE_U]; in GraphicView2MediaImageConverter() 312 C2PlaneInfo vPlane = layout.planes[C2PlanarLayout::PLANE_V]; in GraphicView2MediaImageConverter() 325 const C2PlaneInfo &plane = layout.planes[i]; in GraphicView2MediaImageConverter() 539 const C2PlaneInfo &plane = layout.planes[0]; in GraphicView2MediaImageConverter() 563 const C2PlaneInfo &plane = layout.planes[i]; in GraphicView2MediaImageConverter() 584 const C2PlaneInfo &plane = layout.planes[i]; in GraphicView2MediaImageConverter() [all …]
|
/frameworks/av/media/img_utils/include/img_utils/ |
D | DngUtils.h | 104 uint32_t planes,
|
/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/av/services/camera/virtualcamera/util/ |
D | JpegUtil.cc | 228 JSAMPARRAY planes[3]{&yLines[nl], &cbLines[nl / 2], &crLines[nl / 2]}; in compress() local 230 uint32_t done = jpeg_write_raw_data(&mCompressStruct, planes, batchSize); in compress()
|
/frameworks/native/libs/nativewindow/include/android/ |
D | hardware_buffer.h | 391 AHardwareBuffer_Plane planes[4]; ///< Array of image planes member
|
/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/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/media/img_utils/src/ |
D | DngUtils.cpp | 292 uint32_t planes, in addGainMap() argument 328 planes, in addGainMap()
|
/frameworks/av/media/codec2/components/hevc/ |
D | C2SoftHevcEnc.cpp | 878 int32_t yStride = layout.planes[C2PlanarLayout::PLANE_Y].rowInc; in setEncodeArgs() 879 int32_t uStride = layout.planes[C2PlanarLayout::PLANE_U].rowInc; in setEncodeArgs() 880 int32_t vStride = layout.planes[C2PlanarLayout::PLANE_V].rowInc; in setEncodeArgs() 917 if (layout.planes[layout.PLANE_Y].colInc == 1 && in setEncodeArgs() 918 layout.planes[layout.PLANE_U].colInc == 1 && in setEncodeArgs() 919 layout.planes[layout.PLANE_V].colInc == 1 && in setEncodeArgs()
|