/frameworks/av/media/codec2/vndk/ |
D | C2AllocatorGralloc.cpp | 303 C2PlanarLayout *layout /* nonnull */, uint8_t **addr /* nonnull */) override; 378 uint8_t* addr[C2PlanarLayout::MAX_NUM_PLANES] = {}; in ~C2AllocationGralloc() 407 C2PlanarLayout *layout /* nonnull */, uint8_t **addr /* nonnull */) { in map() 529 addr[C2PlanarLayout::PLANE_Y] = (uint8_t *)pointer; in map() 530 addr[C2PlanarLayout::PLANE_U] = (uint8_t *)pointer; in map() 531 addr[C2PlanarLayout::PLANE_V] = (uint8_t *)pointer; in map() 532 addr[C2PlanarLayout::PLANE_A] = (uint8_t *)pointer; in map() 533 layout->type = C2PlanarLayout::TYPE_YUVA; in map() 539 layout->planes[C2PlanarLayout::PLANE_Y] = { in map() 549 C2PlanarLayout::PLANE_Y, // rootIx in map() [all …]
|
D | C2Buffer.cpp | 899 C2PlanarLayout layout() const { return mLayout; } in layout() 908 uint8_t *mData[C2PlanarLayout::MAX_NUM_PLANES]; 909 uint8_t *mOffsetData[C2PlanarLayout::MAX_NUM_PLANES]; 910 C2PlanarLayout mLayout; 1003 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 | 677 uint8_t *outputBufferY = wView.data()[C2PlanarLayout::PLANE_Y]; in process() 678 C2PlanarLayout layout = wView.layout(); in process() 679 size_t dstYStride = layout.planes[C2PlanarLayout::PLANE_Y].rowInc; in process() 680 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/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 | 523 C2PlanarLayout layout; in setDecodeArgs() 525 displayStride = layout.planes[C2PlanarLayout::PLANE_Y].rowInc; in setDecodeArgs() 556 ps_decode_ip->s_out_buffer.pu1_bufs[0] = outBuffer->data()[C2PlanarLayout::PLANE_Y]; in setDecodeArgs() 557 ps_decode_ip->s_out_buffer.pu1_bufs[1] = outBuffer->data()[C2PlanarLayout::PLANE_U]; in setDecodeArgs() 558 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 | 469 const C2PlanarLayout &layout = rView->layout(); in process() 480 case C2PlanarLayout::TYPE_RGB: in process() 481 case C2PlanarLayout::TYPE_RGBA: { in process() 488 case C2PlanarLayout::TYPE_YUV: { in process()
|
D | C2SoftVpxDec.cpp | 825 uint8_t *dst = const_cast<uint8_t *>(wView.data()[C2PlanarLayout::PLANE_Y]); in outputBuffer() 829 C2PlanarLayout layout = wView.layout(); in outputBuffer() 830 size_t dstYStride = layout.planes[C2PlanarLayout::PLANE_Y].rowInc; in outputBuffer() 831 size_t dstUVStride = layout.planes[C2PlanarLayout::PLANE_U].rowInc; in outputBuffer()
|
/frameworks/av/media/codec2/sfplugin/ |
D | Codec2Buffer.cpp | 223 const C2PlanarLayout &layout = view.layout(); in GraphicView2MediaImageConverter() 238 case C2PlanarLayout::TYPE_YUV: in GraphicView2MediaImageConverter() 347 case C2PlanarLayout::TYPE_YUVA: in GraphicView2MediaImageConverter() 353 case C2PlanarLayout::TYPE_RGB: in GraphicView2MediaImageConverter() 372 case C2PlanarLayout::TYPE_RGBA: in GraphicView2MediaImageConverter()
|
/frameworks/av/media/codec2/components/aom/ |
D | C2SoftAomDec.cpp | 697 uint8_t* dst = const_cast<uint8_t*>(wView.data()[C2PlanarLayout::PLANE_Y]); in outputBuffer() 701 C2PlanarLayout layout = wView.layout(); in outputBuffer() 702 size_t dstYStride = layout.planes[C2PlanarLayout::PLANE_Y].rowInc; in outputBuffer() 703 size_t dstUVStride = layout.planes[C2PlanarLayout::PLANE_U].rowInc; in outputBuffer()
|
/frameworks/av/media/codec2/hidl/1.0/vts/functional/video/ |
D | VtsHalMediaC2V1_0TargetVideoEncTest.cpp | 355 uint8_t* pY = view.data()[C2PlanarLayout::PLANE_Y]; in encodeNFrames() 356 uint8_t* pU = view.data()[C2PlanarLayout::PLANE_U]; in encodeNFrames() 357 uint8_t* pV = view.data()[C2PlanarLayout::PLANE_V]; in encodeNFrames()
|
/frameworks/av/media/codec2/components/mpeg2/ |
D | C2SoftMpeg2Dec.cpp | 586 C2PlanarLayout layout; in setDecodeArgs() 588 displayStride = layout.planes[C2PlanarLayout::PLANE_Y].rowInc; in setDecodeArgs() 619 ps_decode_ip->s_out_buffer.pu1_bufs[0] = outBuffer->data()[C2PlanarLayout::PLANE_Y]; in setDecodeArgs() 620 ps_decode_ip->s_out_buffer.pu1_bufs[1] = outBuffer->data()[C2PlanarLayout::PLANE_U]; in setDecodeArgs() 621 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()
|