Home
last modified time | relevance | path

Searched refs:C2PlanarLayout (Results 1 – 24 of 24) sorted by relevance

/frameworks/av/media/codec2/sfplugin/tests/
DCCodecBuffers_test.cpp185 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/vndk/
DC2AllocatorGralloc.cpp383 C2PlanarLayout *layout, uint8_t **addr) { in Gralloc4Mapper_lock()
402 layout->type = C2PlanarLayout::TYPE_YUV; in Gralloc4Mapper_lock()
419 C2PlanarLayout::plane_index_t planeId; in Gralloc4Mapper_lock()
424 planeId = C2PlanarLayout::PLANE_Y; in Gralloc4Mapper_lock()
428 planeId = C2PlanarLayout::PLANE_U; in Gralloc4Mapper_lock()
432 planeId = C2PlanarLayout::PLANE_V; in Gralloc4Mapper_lock()
468 C2PlanarLayout *layout /* nonnull */, uint8_t **addr /* nonnull */) { in PopulatePlaneLayout()
503 addr[C2PlanarLayout::PLANE_Y] = (uint8_t *)pointer; in PopulatePlaneLayout()
504 addr[C2PlanarLayout::PLANE_U] = (uint8_t *)pointer; in PopulatePlaneLayout()
505 addr[C2PlanarLayout::PLANE_V] = (uint8_t *)pointer; in PopulatePlaneLayout()
[all …]
DC2AllocatorBlob.cpp109 C2PlanarLayout layout; in map()
DC2Buffer.cpp1353 C2PlanarLayout layout() const { return mLayout; } in layout()
1362 uint8_t *mData[C2PlanarLayout::MAX_NUM_PLANES];
1363 uint8_t *mOffsetData[C2PlanarLayout::MAX_NUM_PLANES];
1364 C2PlanarLayout mLayout;
1457 const C2PlanarLayout C2GraphicView::layout() const { in layout()
/frameworks/av/media/codec2/tests/vndk/
DC2BufferTest.cpp302 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/
DCodec2BufferUtils.cpp71 const C2PlanarLayout &layout = view.layout(); in _ImageCopy()
293 const C2PlanarLayout &layout = view.layout(); in IsYUV420()
295 && layout.type == C2PlanarLayout::TYPE_YUV in IsYUV420()
317 const C2PlanarLayout &layout = view.layout(); in IsYUV420_10bit()
319 && layout.type == C2PlanarLayout::TYPE_YUV in IsYUV420_10bit()
342 const C2PlanarLayout &layout = view.layout(); in IsNV12()
356 const C2PlanarLayout &layout = view.layout(); in IsP010()
374 const C2PlanarLayout &layout = view.layout(); in IsNV21()
388 const C2PlanarLayout &layout = view.layout(); in IsI420()
605 const C2PlanarLayout &layout = src.layout(); in ConvertRGBToPlanarYUV()
[all …]
/frameworks/av/media/codec2/components/mpeg4_h263/
DC2SoftMpeg4Enc.cpp585 const C2PlanarLayout &layout = rView->layout(); in process()
586 uint8_t *yPlane = const_cast<uint8_t *>(rView->data()[C2PlanarLayout::PLANE_Y]); in process()
587 uint8_t *uPlane = const_cast<uint8_t *>(rView->data()[C2PlanarLayout::PLANE_U]); in process()
588 uint8_t *vPlane = const_cast<uint8_t *>(rView->data()[C2PlanarLayout::PLANE_V]); in process()
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()
599 case C2PlanarLayout::TYPE_RGB: in process()
601 case C2PlanarLayout::TYPE_RGBA: { in process()
612 case C2PlanarLayout::TYPE_YUV: { in process()
[all …]
DC2SoftMpeg4Dec.cpp602 uint8_t *outputBufferY = wView.data()[C2PlanarLayout::PLANE_Y]; in process()
603 uint8_t *outputBufferU = wView.data()[C2PlanarLayout::PLANE_U]; in process()
604 uint8_t *outputBufferV = wView.data()[C2PlanarLayout::PLANE_V]; in process()
606 C2PlanarLayout layout = wView.layout(); in process()
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/components/aom/
DC2SoftAomDec.cpp573 uint8_t* dstY = const_cast<uint8_t*>(wView.data()[C2PlanarLayout::PLANE_Y]); in outputBuffer()
574 uint8_t* dstU = const_cast<uint8_t*>(wView.data()[C2PlanarLayout::PLANE_U]); in outputBuffer()
575 uint8_t* dstV = const_cast<uint8_t*>(wView.data()[C2PlanarLayout::PLANE_V]); in outputBuffer()
579 C2PlanarLayout layout = wView.layout(); in outputBuffer()
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()
DC2SoftAomEnc.cpp825 const C2PlanarLayout& layout = rView->layout(); in process()
907 case C2PlanarLayout::TYPE_RGB: in process()
908 case C2PlanarLayout::TYPE_RGBA: { in process()
921 case C2PlanarLayout::TYPE_YUV: { in process()
989 case C2PlanarLayout::TYPE_YUVA: { in process()
/frameworks/av/media/tests/benchmark/src/native/encoder/
DC2Encoder.cpp213 uint8_t *pY = view.data()[C2PlanarLayout::PLANE_Y]; in encodeFrames()
214 uint8_t *pU = view.data()[C2PlanarLayout::PLANE_U]; in encodeFrames()
215 uint8_t *pV = view.data()[C2PlanarLayout::PLANE_V]; in encodeFrames()
/frameworks/av/media/codec2/hal/hidl/1.0/vts/functional/video/
DVtsHalMediaC2V1_0TargetVideoDecTest.cpp202 uint8_t* yPlane = const_cast<uint8_t*>(output.data()[C2PlanarLayout::PLANE_Y]); in compareMd5Chksm()
203 uint8_t* uPlane = const_cast<uint8_t*>(output.data()[C2PlanarLayout::PLANE_U]); in compareMd5Chksm()
204 uint8_t* vPlane = const_cast<uint8_t*>(output.data()[C2PlanarLayout::PLANE_V]); in compareMd5Chksm()
205 C2PlanarLayout layout = output.layout(); in compareMd5Chksm()
207 size_t yStride = layout.planes[C2PlanarLayout::PLANE_Y].rowInc; in compareMd5Chksm()
208 size_t uvStride = layout.planes[C2PlanarLayout::PLANE_U].rowInc; in compareMd5Chksm()
209 size_t colInc = layout.planes[C2PlanarLayout::PLANE_U].colInc; in compareMd5Chksm()
210 size_t bitDepth = layout.planes[C2PlanarLayout::PLANE_Y].bitDepth; in compareMd5Chksm()
215 if (bitDepth == 8 && layoutType == C2PlanarLayout::TYPE_YUV && colInc == 1) { in compareMd5Chksm()
219 } else if (bitDepth == 8 && layoutType == C2PlanarLayout::TYPE_YUV && colInc == 2) { in compareMd5Chksm()
DVtsHalMediaC2V1_0TargetVideoEncTest.cpp416 uint8_t* pY = view.data()[C2PlanarLayout::PLANE_Y]; in encodeNFrames()
417 uint8_t* pU = view.data()[C2PlanarLayout::PLANE_U]; in encodeNFrames()
418 uint8_t* pV = view.data()[C2PlanarLayout::PLANE_V]; in encodeNFrames()
/frameworks/av/media/codec2/components/hevc/
DC2SoftHevcEnc.cpp871 const C2PlanarLayout& layout = input->layout(); in setEncodeArgs()
873 const_cast<uint8_t *>(input->data()[C2PlanarLayout::PLANE_Y]); in setEncodeArgs()
875 const_cast<uint8_t *>(input->data()[C2PlanarLayout::PLANE_U]); in setEncodeArgs()
877 const_cast<uint8_t *>(input->data()[C2PlanarLayout::PLANE_V]); in setEncodeArgs()
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()
894 case C2PlanarLayout::TYPE_RGB: in setEncodeArgs()
896 case C2PlanarLayout::TYPE_RGBA: { in setEncodeArgs()
911 case C2PlanarLayout::TYPE_YUV: { in setEncodeArgs()
[all …]
DC2SoftHevcDec.cpp530 C2PlanarLayout layout; in setDecodeArgs()
532 displayStride = layout.planes[C2PlanarLayout::PLANE_Y].rowInc; in setDecodeArgs()
563 ps_decode_ip->s_out_buffer.pu1_bufs[0] = outBuffer->data()[C2PlanarLayout::PLANE_Y]; in setDecodeArgs()
564 ps_decode_ip->s_out_buffer.pu1_bufs[1] = outBuffer->data()[C2PlanarLayout::PLANE_U]; in setDecodeArgs()
565 ps_decode_ip->s_out_buffer.pu1_bufs[2] = outBuffer->data()[C2PlanarLayout::PLANE_V]; in setDecodeArgs()
/frameworks/av/media/codec2/components/vpx/
DC2SoftVpxDec.cpp796 uint8_t *dstY = const_cast<uint8_t *>(wView.data()[C2PlanarLayout::PLANE_Y]); in outputBuffer()
797 uint8_t *dstU = const_cast<uint8_t *>(wView.data()[C2PlanarLayout::PLANE_U]); in outputBuffer()
798 uint8_t *dstV = const_cast<uint8_t *>(wView.data()[C2PlanarLayout::PLANE_V]); in outputBuffer()
803 C2PlanarLayout layout = wView.layout(); in outputBuffer()
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()
DC2SoftVpxEnc.cpp913 const C2PlanarLayout &layout = rView->layout(); in process()
924 case C2PlanarLayout::TYPE_RGB: in process()
925 case C2PlanarLayout::TYPE_RGBA: { in process()
938 case C2PlanarLayout::TYPE_YUV: { in process()
/frameworks/av/media/codec2/sfplugin/
DCodec2Buffer.cpp253 const C2PlanarLayout &layout = view.layout(); in GraphicView2MediaImageConverter()
270 case C2PlanarLayout::TYPE_YUV: { 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()
479 case C2PlanarLayout::TYPE_YUVA: in GraphicView2MediaImageConverter()
485 case C2PlanarLayout::TYPE_RGB: in GraphicView2MediaImageConverter()
510 case C2PlanarLayout::TYPE_RGBA: in GraphicView2MediaImageConverter()
/frameworks/av/media/codec2/components/avc/
DC2SoftAvcEnc.cpp1526 const C2PlanarLayout &layout = input->layout(); in setEncodeArgs()
1527 uint8_t *yPlane = const_cast<uint8_t *>(input->data()[C2PlanarLayout::PLANE_Y]); in setEncodeArgs()
1528 uint8_t *uPlane = const_cast<uint8_t *>(input->data()[C2PlanarLayout::PLANE_U]); in setEncodeArgs()
1529 uint8_t *vPlane = const_cast<uint8_t *>(input->data()[C2PlanarLayout::PLANE_V]); in setEncodeArgs()
1530 int32_t yStride = layout.planes[C2PlanarLayout::PLANE_Y].rowInc; in setEncodeArgs()
1531 int32_t uStride = layout.planes[C2PlanarLayout::PLANE_U].rowInc; in setEncodeArgs()
1532 int32_t vStride = layout.planes[C2PlanarLayout::PLANE_V].rowInc; in setEncodeArgs()
1542 case C2PlanarLayout::TYPE_RGB: in setEncodeArgs()
1544 case C2PlanarLayout::TYPE_RGBA: { in setEncodeArgs()
1557 case C2PlanarLayout::TYPE_YUV: { in setEncodeArgs()
[all …]
DC2SoftAvcDec.cpp537 C2PlanarLayout layout; in setDecodeArgs()
539 displayStride = layout.planes[C2PlanarLayout::PLANE_Y].rowInc; in setDecodeArgs()
570 ps_decode_ip->s_out_buffer.pu1_bufs[0] = outBuffer->data()[C2PlanarLayout::PLANE_Y]; in setDecodeArgs()
571 ps_decode_ip->s_out_buffer.pu1_bufs[1] = outBuffer->data()[C2PlanarLayout::PLANE_U]; in setDecodeArgs()
572 ps_decode_ip->s_out_buffer.pu1_bufs[2] = outBuffer->data()[C2PlanarLayout::PLANE_V]; in setDecodeArgs()
/frameworks/av/media/codec2/components/dav1d/
DC2SoftDav1dDec.cpp1029 uint8_t* dstY = const_cast<uint8_t*>(wView.data()[C2PlanarLayout::PLANE_Y]); in outputBuffer()
1030 uint8_t* dstU = const_cast<uint8_t*>(wView.data()[C2PlanarLayout::PLANE_U]); in outputBuffer()
1031 uint8_t* dstV = const_cast<uint8_t*>(wView.data()[C2PlanarLayout::PLANE_V]); in outputBuffer()
1033 C2PlanarLayout layout = wView.layout(); in outputBuffer()
1034 size_t dstYStride = layout.planes[C2PlanarLayout::PLANE_Y].rowInc; in outputBuffer()
1035 size_t dstUStride = layout.planes[C2PlanarLayout::PLANE_U].rowInc; in outputBuffer()
1036 size_t dstVStride = layout.planes[C2PlanarLayout::PLANE_V].rowInc; in outputBuffer()
/frameworks/av/media/codec2/components/gav1/
DC2SoftGav1Dec.cpp928 uint8_t *dstY = const_cast<uint8_t *>(wView.data()[C2PlanarLayout::PLANE_Y]); in outputBuffer()
929 uint8_t *dstU = const_cast<uint8_t *>(wView.data()[C2PlanarLayout::PLANE_U]); in outputBuffer()
930 uint8_t *dstV = const_cast<uint8_t *>(wView.data()[C2PlanarLayout::PLANE_V]); in outputBuffer()
932 C2PlanarLayout layout = wView.layout(); in outputBuffer()
933 size_t dstYStride = layout.planes[C2PlanarLayout::PLANE_Y].rowInc; in outputBuffer()
934 size_t dstUStride = layout.planes[C2PlanarLayout::PLANE_U].rowInc; in outputBuffer()
935 size_t dstVStride = layout.planes[C2PlanarLayout::PLANE_V].rowInc; in outputBuffer()
/frameworks/av/media/codec2/components/mpeg2/
DC2SoftMpeg2Dec.cpp599 C2PlanarLayout layout; in setDecodeArgs()
601 displayStride = layout.planes[C2PlanarLayout::PLANE_Y].rowInc; in setDecodeArgs()
632 ps_decode_ip->s_out_buffer.pu1_bufs[0] = outBuffer->data()[C2PlanarLayout::PLANE_Y]; in setDecodeArgs()
633 ps_decode_ip->s_out_buffer.pu1_bufs[1] = outBuffer->data()[C2PlanarLayout::PLANE_U]; in setDecodeArgs()
634 ps_decode_ip->s_out_buffer.pu1_bufs[2] = outBuffer->data()[C2PlanarLayout::PLANE_V]; in setDecodeArgs()
/frameworks/av/media/codec2/core/include/
DC2Buffer.h1689 struct C2PlanarLayout { struct
1886 C2PlanarLayout *layout /* nonnull */, uint8_t **addr /* nonnull */) = 0;
1993 const C2PlanarLayout layout() const;