/frameworks/av/media/codec2/vndk/ |
D | C2AllocatorGralloc.cpp | 260 C2PlanarLayout *layout /* nonnull */, uint8_t **addr /* nonnull */) override; 321 uint8_t* addr[C2PlanarLayout::MAX_NUM_PLANES] = {}; in ~C2AllocationGralloc() 343 C2PlanarLayout *layout /* nonnull */, uint8_t **addr /* nonnull */) { in map() 402 addr[C2PlanarLayout::PLANE_Y] = (uint8_t *)pointer; in map() 403 addr[C2PlanarLayout::PLANE_U] = (uint8_t *)pointer; in map() 404 addr[C2PlanarLayout::PLANE_V] = (uint8_t *)pointer; in map() 405 addr[C2PlanarLayout::PLANE_A] = (uint8_t *)pointer; in map() 406 layout->type = C2PlanarLayout::TYPE_YUVA; in map() 409 layout->planes[C2PlanarLayout::PLANE_Y] = { in map() 419 C2PlanarLayout::PLANE_Y, // rootIx in map() [all …]
|
D | C2Buffer.cpp | 925 C2PlanarLayout layout() const { return mLayout; } in layout() 934 uint8_t *mData[C2PlanarLayout::MAX_NUM_PLANES]; 935 uint8_t *mOffsetData[C2PlanarLayout::MAX_NUM_PLANES]; 936 C2PlanarLayout mLayout; 1029 const C2PlanarLayout C2GraphicView::layout() const { in layout()
|
D | C2AllocatorBlob.cpp | 109 C2PlanarLayout layout; in map()
|
/frameworks/av/media/codec2/sfplugin/tests/ |
D | CCodecBuffers_test.cpp | 185 C2PlanarLayout layout = view.layout(); in TEST() 188 ASSERT_EQ(C2PlanarLayout::TYPE_YUV, layout.type); in TEST() 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() 215 uint8_t *yRowPtr = view.data()[C2PlanarLayout::PLANE_Y]; in TEST() 216 uint8_t *uRowPtr = view.data()[C2PlanarLayout::PLANE_U]; in TEST() 217 uint8_t *vRowPtr = view.data()[C2PlanarLayout::PLANE_V]; in TEST() 322 C2PlanarLayout layout = view.layout(); in TEST() 325 ASSERT_EQ(C2PlanarLayout::TYPE_YUV, layout.type); in TEST() [all …]
|
/frameworks/av/media/codec2/tests/vndk/ |
D | C2BufferTest.cpp | 302 void mapGraphic(C2Rect rect, C2PlanarLayout *layout, uint8_t **addr) { in mapGraphic() 312 addr[C2PlanarLayout::PLANE_Y] = nullptr; in mapGraphic() 313 addr[C2PlanarLayout::PLANE_U] = nullptr; in mapGraphic() 314 addr[C2PlanarLayout::PLANE_V] = nullptr; in mapGraphic() 318 memcpy(mAddrGraphic, addr, sizeof(uint8_t*) * C2PlanarLayout::MAX_NUM_PLANES); in mapGraphic() 344 uint8_t* mAddrGraphic[C2PlanarLayout::MAX_NUM_PLANES]; 464 uint8_t *addr[C2PlanarLayout::MAX_NUM_PLANES]; in TEST_F() 466 C2PlanarLayout layout; in TEST_F() 468 ASSERT_NE(nullptr, addr[C2PlanarLayout::PLANE_Y]); in TEST_F() 469 ASSERT_NE(nullptr, addr[C2PlanarLayout::PLANE_U]); in TEST_F() [all …]
|
/frameworks/av/media/codec2/sfplugin/utils/ |
D | Codec2BufferUtils.cpp | 69 const C2PlanarLayout &layout = view.layout(); in _ImageCopy() 265 const C2PlanarLayout &layout = view.layout(); in IsYUV420() 267 && layout.type == C2PlanarLayout::TYPE_YUV in IsYUV420() 292 const C2PlanarLayout &layout = view.layout(); in IsNV12() 306 const C2PlanarLayout &layout = view.layout(); in IsNV21() 320 const C2PlanarLayout &layout = view.layout(); in IsI420() 537 const C2PlanarLayout &layout = src.layout(); in ConvertRGBToPlanarYUV() 538 const uint8_t *pRed = src.data()[C2PlanarLayout::PLANE_R]; in ConvertRGBToPlanarYUV() 539 const uint8_t *pGreen = src.data()[C2PlanarLayout::PLANE_G]; in ConvertRGBToPlanarYUV() 540 const uint8_t *pBlue = src.data()[C2PlanarLayout::PLANE_B]; in ConvertRGBToPlanarYUV() [all …]
|
/frameworks/av/media/codec2/components/mpeg4_h263/ |
D | C2SoftMpeg4Enc.cpp | 497 const C2PlanarLayout &layout = rView->layout(); in process() 498 uint8_t *yPlane = const_cast<uint8_t *>(rView->data()[C2PlanarLayout::PLANE_Y]); in process() 499 uint8_t *uPlane = const_cast<uint8_t *>(rView->data()[C2PlanarLayout::PLANE_U]); in process() 500 uint8_t *vPlane = const_cast<uint8_t *>(rView->data()[C2PlanarLayout::PLANE_V]); in process() 501 int32_t yStride = layout.planes[C2PlanarLayout::PLANE_Y].rowInc; in process() 502 int32_t uStride = layout.planes[C2PlanarLayout::PLANE_U].rowInc; in process() 503 int32_t vStride = layout.planes[C2PlanarLayout::PLANE_V].rowInc; in process() 511 case C2PlanarLayout::TYPE_RGB: in process() 513 case C2PlanarLayout::TYPE_RGBA: { in process() 524 case C2PlanarLayout::TYPE_YUV: { in process() [all …]
|
D | C2SoftMpeg4Dec.cpp | 657 uint8_t *outputBufferY = wView.data()[C2PlanarLayout::PLANE_Y]; in process() 658 uint8_t *outputBufferU = wView.data()[C2PlanarLayout::PLANE_U]; in process() 659 uint8_t *outputBufferV = wView.data()[C2PlanarLayout::PLANE_V]; in process() 661 C2PlanarLayout layout = wView.layout(); in process() 662 size_t dstYStride = layout.planes[C2PlanarLayout::PLANE_Y].rowInc; in process() 663 size_t dstUVStride = layout.planes[C2PlanarLayout::PLANE_U].rowInc; in process()
|
/frameworks/av/media/tests/benchmark/src/native/encoder/ |
D | C2Encoder.cpp | 211 uint8_t *pY = view.data()[C2PlanarLayout::PLANE_Y]; in encodeFrames() 212 uint8_t *pU = view.data()[C2PlanarLayout::PLANE_U]; in encodeFrames() 213 uint8_t *pV = view.data()[C2PlanarLayout::PLANE_V]; in encodeFrames()
|
/frameworks/av/media/codec2/components/hevc/ |
D | C2SoftHevcEnc.cpp | 765 const C2PlanarLayout& layout = input->layout(); in setEncodeArgs() 767 const_cast<uint8_t *>(input->data()[C2PlanarLayout::PLANE_Y]); in setEncodeArgs() 769 const_cast<uint8_t *>(input->data()[C2PlanarLayout::PLANE_U]); in setEncodeArgs() 771 const_cast<uint8_t *>(input->data()[C2PlanarLayout::PLANE_V]); in setEncodeArgs() 772 int32_t yStride = layout.planes[C2PlanarLayout::PLANE_Y].rowInc; in setEncodeArgs() 773 int32_t uStride = layout.planes[C2PlanarLayout::PLANE_U].rowInc; in setEncodeArgs() 774 int32_t vStride = layout.planes[C2PlanarLayout::PLANE_V].rowInc; in setEncodeArgs() 788 case C2PlanarLayout::TYPE_RGB: in setEncodeArgs() 790 case C2PlanarLayout::TYPE_RGBA: { in setEncodeArgs() 804 case C2PlanarLayout::TYPE_YUV: { in setEncodeArgs() [all …]
|
D | C2SoftHevcDec.cpp | 524 C2PlanarLayout layout; in setDecodeArgs() 526 displayStride = layout.planes[C2PlanarLayout::PLANE_Y].rowInc; in setDecodeArgs() 557 ps_decode_ip->s_out_buffer.pu1_bufs[0] = outBuffer->data()[C2PlanarLayout::PLANE_Y]; in setDecodeArgs() 558 ps_decode_ip->s_out_buffer.pu1_bufs[1] = outBuffer->data()[C2PlanarLayout::PLANE_U]; in setDecodeArgs() 559 ps_decode_ip->s_out_buffer.pu1_bufs[2] = outBuffer->data()[C2PlanarLayout::PLANE_V]; in setDecodeArgs()
|
/frameworks/av/media/codec2/hidl/1.0/vts/functional/video/ |
D | VtsHalMediaC2V1_0TargetVideoDecTest.cpp | 197 uint8_t* yPlane = const_cast<uint8_t*>(output.data()[C2PlanarLayout::PLANE_Y]); in compareMd5Chksm() 198 uint8_t* uPlane = const_cast<uint8_t*>(output.data()[C2PlanarLayout::PLANE_U]); in compareMd5Chksm() 199 uint8_t* vPlane = const_cast<uint8_t*>(output.data()[C2PlanarLayout::PLANE_V]); in compareMd5Chksm() 200 C2PlanarLayout layout = output.layout(); in compareMd5Chksm() 202 size_t yStride = layout.planes[C2PlanarLayout::PLANE_Y].rowInc; in compareMd5Chksm() 203 size_t uvStride = layout.planes[C2PlanarLayout::PLANE_U].rowInc; in compareMd5Chksm() 204 size_t colInc = layout.planes[C2PlanarLayout::PLANE_U].colInc; in compareMd5Chksm() 205 size_t bitDepth = layout.planes[C2PlanarLayout::PLANE_Y].bitDepth; in compareMd5Chksm() 210 if (bitDepth == 8 && layoutType == C2PlanarLayout::TYPE_YUV && colInc == 1) { in compareMd5Chksm() 214 } else if (bitDepth == 8 && layoutType == C2PlanarLayout::TYPE_YUV && colInc == 2) { in compareMd5Chksm()
|
D | VtsHalMediaC2V1_0TargetVideoEncTest.cpp | 411 uint8_t* pY = view.data()[C2PlanarLayout::PLANE_Y]; in encodeNFrames() 412 uint8_t* pU = view.data()[C2PlanarLayout::PLANE_U]; in encodeNFrames() 413 uint8_t* pV = view.data()[C2PlanarLayout::PLANE_V]; in encodeNFrames()
|
/frameworks/av/media/codec2/sfplugin/ |
D | Codec2Buffer.cpp | 239 const C2PlanarLayout &layout = view.layout(); in GraphicView2MediaImageConverter() 256 case C2PlanarLayout::TYPE_YUV: { in GraphicView2MediaImageConverter() 263 C2PlaneInfo yPlane = layout.planes[C2PlanarLayout::PLANE_Y]; in GraphicView2MediaImageConverter() 264 C2PlaneInfo uPlane = layout.planes[C2PlanarLayout::PLANE_U]; in GraphicView2MediaImageConverter() 265 C2PlaneInfo vPlane = layout.planes[C2PlanarLayout::PLANE_V]; in GraphicView2MediaImageConverter() 431 case C2PlanarLayout::TYPE_YUVA: in GraphicView2MediaImageConverter() 437 case C2PlanarLayout::TYPE_RGB: in GraphicView2MediaImageConverter() 444 case C2PlanarLayout::TYPE_RGBA: in GraphicView2MediaImageConverter()
|
/frameworks/av/media/codec2/components/vpx/ |
D | C2SoftVpxEnc.cpp | 474 const C2PlanarLayout &layout = rView->layout(); in process() 485 case C2PlanarLayout::TYPE_RGB: in process() 486 case C2PlanarLayout::TYPE_RGBA: { in process() 493 case C2PlanarLayout::TYPE_YUV: { in process()
|
D | C2SoftVpxDec.cpp | 821 uint8_t *dstY = const_cast<uint8_t *>(wView.data()[C2PlanarLayout::PLANE_Y]); in outputBuffer() 822 uint8_t *dstU = const_cast<uint8_t *>(wView.data()[C2PlanarLayout::PLANE_U]); in outputBuffer() 823 uint8_t *dstV = const_cast<uint8_t *>(wView.data()[C2PlanarLayout::PLANE_V]); in outputBuffer() 828 C2PlanarLayout layout = wView.layout(); in outputBuffer() 829 size_t dstYStride = layout.planes[C2PlanarLayout::PLANE_Y].rowInc; in outputBuffer() 830 size_t dstUVStride = layout.planes[C2PlanarLayout::PLANE_U].rowInc; in outputBuffer()
|
/frameworks/av/media/codec2/components/aom/ |
D | C2SoftAomDec.cpp | 693 uint8_t* dstY = const_cast<uint8_t*>(wView.data()[C2PlanarLayout::PLANE_Y]); in outputBuffer() 694 uint8_t* dstU = const_cast<uint8_t*>(wView.data()[C2PlanarLayout::PLANE_U]); in outputBuffer() 695 uint8_t* dstV = const_cast<uint8_t*>(wView.data()[C2PlanarLayout::PLANE_V]); in outputBuffer() 699 C2PlanarLayout layout = wView.layout(); in outputBuffer() 700 size_t dstYStride = layout.planes[C2PlanarLayout::PLANE_Y].rowInc; in outputBuffer() 701 size_t dstUVStride = layout.planes[C2PlanarLayout::PLANE_U].rowInc; in outputBuffer()
|
/frameworks/av/media/codec2/components/gav1/ |
D | C2SoftGav1Dec.cpp | 707 uint8_t *dstY = const_cast<uint8_t *>(wView.data()[C2PlanarLayout::PLANE_Y]); in outputBuffer() 708 uint8_t *dstU = const_cast<uint8_t *>(wView.data()[C2PlanarLayout::PLANE_U]); in outputBuffer() 709 uint8_t *dstV = const_cast<uint8_t *>(wView.data()[C2PlanarLayout::PLANE_V]); in outputBuffer() 714 C2PlanarLayout layout = wView.layout(); in outputBuffer() 715 size_t dstYStride = layout.planes[C2PlanarLayout::PLANE_Y].rowInc; in outputBuffer() 716 size_t dstUVStride = layout.planes[C2PlanarLayout::PLANE_U].rowInc; in outputBuffer()
|
/frameworks/av/media/codec2/components/avc/ |
D | C2SoftAvcEnc.cpp | 1491 const C2PlanarLayout &layout = input->layout(); in setEncodeArgs() 1492 uint8_t *yPlane = const_cast<uint8_t *>(input->data()[C2PlanarLayout::PLANE_Y]); in setEncodeArgs() 1493 uint8_t *uPlane = const_cast<uint8_t *>(input->data()[C2PlanarLayout::PLANE_U]); in setEncodeArgs() 1494 uint8_t *vPlane = const_cast<uint8_t *>(input->data()[C2PlanarLayout::PLANE_V]); in setEncodeArgs() 1495 int32_t yStride = layout.planes[C2PlanarLayout::PLANE_Y].rowInc; in setEncodeArgs() 1496 int32_t uStride = layout.planes[C2PlanarLayout::PLANE_U].rowInc; in setEncodeArgs() 1497 int32_t vStride = layout.planes[C2PlanarLayout::PLANE_V].rowInc; in setEncodeArgs() 1507 case C2PlanarLayout::TYPE_RGB: in setEncodeArgs() 1509 case C2PlanarLayout::TYPE_RGBA: { in setEncodeArgs() 1521 case C2PlanarLayout::TYPE_YUV: { in setEncodeArgs() [all …]
|
D | C2SoftAvcDec.cpp | 533 C2PlanarLayout layout; in setDecodeArgs() 535 displayStride = layout.planes[C2PlanarLayout::PLANE_Y].rowInc; in setDecodeArgs() 566 ps_decode_ip->s_out_buffer.pu1_bufs[0] = outBuffer->data()[C2PlanarLayout::PLANE_Y]; in setDecodeArgs() 567 ps_decode_ip->s_out_buffer.pu1_bufs[1] = outBuffer->data()[C2PlanarLayout::PLANE_U]; in setDecodeArgs() 568 ps_decode_ip->s_out_buffer.pu1_bufs[2] = outBuffer->data()[C2PlanarLayout::PLANE_V]; in setDecodeArgs()
|
/frameworks/av/media/codec2/components/mpeg2/ |
D | C2SoftMpeg2Dec.cpp | 594 C2PlanarLayout layout; in setDecodeArgs() 596 displayStride = layout.planes[C2PlanarLayout::PLANE_Y].rowInc; in setDecodeArgs() 627 ps_decode_ip->s_out_buffer.pu1_bufs[0] = outBuffer->data()[C2PlanarLayout::PLANE_Y]; in setDecodeArgs() 628 ps_decode_ip->s_out_buffer.pu1_bufs[1] = outBuffer->data()[C2PlanarLayout::PLANE_U]; in setDecodeArgs() 629 ps_decode_ip->s_out_buffer.pu1_bufs[2] = outBuffer->data()[C2PlanarLayout::PLANE_V]; in setDecodeArgs()
|
/frameworks/av/media/codec2/core/include/ |
D | C2Buffer.h | 1694 struct C2PlanarLayout { struct 1891 C2PlanarLayout *layout /* nonnull */, uint8_t **addr /* nonnull */) = 0; 1998 const C2PlanarLayout layout() const;
|