/frameworks/av/media/codec2/vndk/ |
D | C2AllocatorGralloc.cpp | 257 C2PlanarLayout *layout /* nonnull */, uint8_t **addr /* nonnull */) override; 318 uint8_t* addr[C2PlanarLayout::MAX_NUM_PLANES] = {}; in ~C2AllocationGralloc() 340 C2PlanarLayout *layout /* nonnull */, uint8_t **addr /* nonnull */) { in map() 398 addr[C2PlanarLayout::PLANE_Y] = (uint8_t *)pointer; in map() 399 addr[C2PlanarLayout::PLANE_U] = (uint8_t *)pointer; in map() 400 addr[C2PlanarLayout::PLANE_V] = (uint8_t *)pointer; in map() 401 addr[C2PlanarLayout::PLANE_A] = (uint8_t *)pointer; in map() 402 layout->type = C2PlanarLayout::TYPE_YUVA; in map() 405 layout->planes[C2PlanarLayout::PLANE_Y] = { in map() 415 C2PlanarLayout::PLANE_Y, // rootIx in map() [all …]
|
D | C2AllocatorBlob.cpp | 83 C2PlanarLayout layout; in map()
|
D | C2Buffer.cpp | 940 C2PlanarLayout layout() const { return mLayout; } in layout() 949 uint8_t *mData[C2PlanarLayout::MAX_NUM_PLANES]; 950 uint8_t *mOffsetData[C2PlanarLayout::MAX_NUM_PLANES]; 951 C2PlanarLayout mLayout; 1044 const C2PlanarLayout C2GraphicView::layout() const { in layout()
|
/frameworks/av/media/codec2/tests/vndk/ |
D | C2BufferTest.cpp | 301 void mapGraphic(C2Rect rect, C2PlanarLayout *layout, uint8_t **addr) { in mapGraphic() 311 addr[C2PlanarLayout::PLANE_Y] = nullptr; in mapGraphic() 312 addr[C2PlanarLayout::PLANE_U] = nullptr; in mapGraphic() 313 addr[C2PlanarLayout::PLANE_V] = nullptr; in mapGraphic() 317 memcpy(mAddrGraphic, addr, sizeof(uint8_t*) * C2PlanarLayout::MAX_NUM_PLANES); in mapGraphic() 338 uint8_t* mAddrGraphic[C2PlanarLayout::MAX_NUM_PLANES]; 458 uint8_t *addr[C2PlanarLayout::MAX_NUM_PLANES]; in TEST_F() 460 C2PlanarLayout layout; in TEST_F() 462 ASSERT_NE(nullptr, addr[C2PlanarLayout::PLANE_Y]); in TEST_F() 463 ASSERT_NE(nullptr, addr[C2PlanarLayout::PLANE_U]); in TEST_F() [all …]
|
/frameworks/av/media/codec2/sfplugin/utils/ |
D | Codec2BufferUtils.cpp | 68 const C2PlanarLayout &layout = view.layout(); in _ImageCopy() 191 const C2PlanarLayout &layout = view.layout(); in IsYUV420() 193 && layout.type == C2PlanarLayout::TYPE_YUV in IsYUV420() 218 const C2PlanarLayout &layout = view.layout(); in IsNV12() 232 const C2PlanarLayout &layout = view.layout(); in IsI420() 358 const C2PlanarLayout &layout = src.layout(); in ConvertRGBToPlanarYUV() 359 const uint8_t *pRed = src.data()[C2PlanarLayout::PLANE_R]; in ConvertRGBToPlanarYUV() 360 const uint8_t *pGreen = src.data()[C2PlanarLayout::PLANE_G]; in ConvertRGBToPlanarYUV() 361 const uint8_t *pBlue = src.data()[C2PlanarLayout::PLANE_B]; in ConvertRGBToPlanarYUV() 386 pRed += layout.planes[C2PlanarLayout::PLANE_R].colInc; in ConvertRGBToPlanarYUV() [all …]
|
/frameworks/av/media/codec2/components/mpeg4_h263/ |
D | C2SoftMpeg4Enc.cpp | 483 const C2PlanarLayout &layout = rView->layout(); in process() 484 uint8_t *yPlane = const_cast<uint8_t *>(rView->data()[C2PlanarLayout::PLANE_Y]); in process() 485 uint8_t *uPlane = const_cast<uint8_t *>(rView->data()[C2PlanarLayout::PLANE_U]); in process() 486 uint8_t *vPlane = const_cast<uint8_t *>(rView->data()[C2PlanarLayout::PLANE_V]); in process() 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() 497 case C2PlanarLayout::TYPE_RGB: in process() 499 case C2PlanarLayout::TYPE_RGBA: { in process() 510 case C2PlanarLayout::TYPE_YUV: { in process() [all …]
|
D | C2SoftMpeg4Dec.cpp | 674 uint8_t *outputBufferY = wView.data()[C2PlanarLayout::PLANE_Y]; in process() 675 C2PlanarLayout layout = wView.layout(); in process() 676 size_t dstYStride = layout.planes[C2PlanarLayout::PLANE_Y].rowInc; in process() 677 size_t dstUVStride = layout.planes[C2PlanarLayout::PLANE_U].rowInc; in process()
|
/frameworks/av/media/codec2/components/hevc/ |
D | C2SoftHevcEnc.cpp | 671 const C2PlanarLayout& layout = input->layout(); in setEncodeArgs() 673 const_cast<uint8_t *>(input->data()[C2PlanarLayout::PLANE_Y]); in setEncodeArgs() 675 const_cast<uint8_t *>(input->data()[C2PlanarLayout::PLANE_U]); in setEncodeArgs() 677 const_cast<uint8_t *>(input->data()[C2PlanarLayout::PLANE_V]); in setEncodeArgs() 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() 694 case C2PlanarLayout::TYPE_RGB: in setEncodeArgs() 696 case C2PlanarLayout::TYPE_RGBA: { in setEncodeArgs() 710 case C2PlanarLayout::TYPE_YUV: { in setEncodeArgs() [all …]
|
D | C2SoftHevcDec.cpp | 519 C2PlanarLayout layout; in setDecodeArgs() 521 displayStride = layout.planes[C2PlanarLayout::PLANE_Y].rowInc; in setDecodeArgs() 552 ps_decode_ip->s_out_buffer.pu1_bufs[0] = outBuffer->data()[C2PlanarLayout::PLANE_Y]; in setDecodeArgs() 553 ps_decode_ip->s_out_buffer.pu1_bufs[1] = outBuffer->data()[C2PlanarLayout::PLANE_U]; in setDecodeArgs() 554 ps_decode_ip->s_out_buffer.pu1_bufs[2] = outBuffer->data()[C2PlanarLayout::PLANE_V]; in setDecodeArgs()
|
/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/hidl/1.0/vts/functional/video/ |
D | VtsHalMediaC2V1_0TargetVideoDecTest.cpp | 164 uint8_t* yPlane = const_cast<uint8_t*>(output.data()[C2PlanarLayout::PLANE_Y]); in compareMd5Chksm() 165 uint8_t* uPlane = const_cast<uint8_t*>(output.data()[C2PlanarLayout::PLANE_U]); in compareMd5Chksm() 166 uint8_t* vPlane = const_cast<uint8_t*>(output.data()[C2PlanarLayout::PLANE_V]); in compareMd5Chksm() 167 C2PlanarLayout layout = output.layout(); in compareMd5Chksm() 169 size_t yStride = layout.planes[C2PlanarLayout::PLANE_Y].rowInc; in compareMd5Chksm() 170 size_t uvStride = layout.planes[C2PlanarLayout::PLANE_U].rowInc; in compareMd5Chksm() 171 size_t colInc = layout.planes[C2PlanarLayout::PLANE_U].colInc; in compareMd5Chksm() 172 size_t bitDepth = layout.planes[C2PlanarLayout::PLANE_Y].bitDepth; in compareMd5Chksm() 177 if (bitDepth == 8 && layoutType == C2PlanarLayout::TYPE_YUV && colInc == 1) { in compareMd5Chksm() 181 } else if (bitDepth == 8 && layoutType == C2PlanarLayout::TYPE_YUV && colInc == 2) { in compareMd5Chksm()
|
D | VtsHalMediaC2V1_0TargetVideoEncTest.cpp | 372 uint8_t* pY = view.data()[C2PlanarLayout::PLANE_Y]; in encodeNFrames() 373 uint8_t* pU = view.data()[C2PlanarLayout::PLANE_U]; in encodeNFrames() 374 uint8_t* pV = view.data()[C2PlanarLayout::PLANE_V]; in encodeNFrames()
|
/frameworks/av/media/codec2/components/avc/ |
D | C2SoftAvcEnc.cpp | 1251 const C2PlanarLayout &layout = input->layout(); in setEncodeArgs() 1252 uint8_t *yPlane = const_cast<uint8_t *>(input->data()[C2PlanarLayout::PLANE_Y]); in setEncodeArgs() 1253 uint8_t *uPlane = const_cast<uint8_t *>(input->data()[C2PlanarLayout::PLANE_U]); in setEncodeArgs() 1254 uint8_t *vPlane = const_cast<uint8_t *>(input->data()[C2PlanarLayout::PLANE_V]); in setEncodeArgs() 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() 1267 case C2PlanarLayout::TYPE_RGB: in setEncodeArgs() 1269 case C2PlanarLayout::TYPE_RGBA: { in setEncodeArgs() 1281 case C2PlanarLayout::TYPE_YUV: { in setEncodeArgs() [all …]
|
D | C2SoftAvcDec.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/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 | 826 uint8_t *dst = const_cast<uint8_t *>(wView.data()[C2PlanarLayout::PLANE_Y]); in outputBuffer() 830 C2PlanarLayout layout = wView.layout(); in outputBuffer() 831 size_t dstYStride = layout.planes[C2PlanarLayout::PLANE_Y].rowInc; in outputBuffer() 832 size_t dstUVStride = layout.planes[C2PlanarLayout::PLANE_U].rowInc; in outputBuffer()
|
/frameworks/av/media/codec2/sfplugin/ |
D | Codec2Buffer.cpp | 235 const C2PlanarLayout &layout = view.layout(); in GraphicView2MediaImageConverter() 250 case C2PlanarLayout::TYPE_YUV: in GraphicView2MediaImageConverter() 359 case C2PlanarLayout::TYPE_YUVA: in GraphicView2MediaImageConverter() 365 case C2PlanarLayout::TYPE_RGB: in GraphicView2MediaImageConverter() 384 case C2PlanarLayout::TYPE_RGBA: in GraphicView2MediaImageConverter()
|
/frameworks/av/media/codec2/components/aom/ |
D | C2SoftAomDec.cpp | 699 uint8_t* dst = const_cast<uint8_t*>(wView.data()[C2PlanarLayout::PLANE_Y]); in outputBuffer() 703 C2PlanarLayout layout = wView.layout(); in outputBuffer() 704 size_t dstYStride = layout.planes[C2PlanarLayout::PLANE_Y].rowInc; in outputBuffer() 705 size_t dstUVStride = layout.planes[C2PlanarLayout::PLANE_U].rowInc; in outputBuffer()
|
/frameworks/av/media/codec2/components/mpeg2/ |
D | C2SoftMpeg2Dec.cpp | 593 C2PlanarLayout layout; in setDecodeArgs() 595 displayStride = layout.planes[C2PlanarLayout::PLANE_Y].rowInc; in setDecodeArgs() 626 ps_decode_ip->s_out_buffer.pu1_bufs[0] = outBuffer->data()[C2PlanarLayout::PLANE_Y]; in setDecodeArgs() 627 ps_decode_ip->s_out_buffer.pu1_bufs[1] = outBuffer->data()[C2PlanarLayout::PLANE_U]; in setDecodeArgs() 628 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 | 1557 struct C2PlanarLayout { struct 1754 C2PlanarLayout *layout /* nonnull */, uint8_t **addr /* nonnull */) = 0; 1861 const C2PlanarLayout layout() const;
|
/frameworks/av/media/codec2/components/gav1/ |
D | C2SoftGav1Dec.cpp | 682 uint8_t *dst = const_cast<uint8_t *>(wView.data()[C2PlanarLayout::PLANE_Y]); in outputBuffer()
|