Home
last modified time | relevance | path

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

/hardware/google/av/codec2/vndk/
DC2AllocatorGralloc.cpp279 C2PlanarLayout *layout /* nonnull */, uint8_t **addr /* nonnull */) override;
329 uint8_t* addr[C2PlanarLayout::MAX_NUM_PLANES] = {}; in ~C2AllocationGralloc()
348 C2PlanarLayout *layout /* nonnull */, uint8_t **addr /* nonnull */) { in map()
421 addr[C2PlanarLayout::PLANE_Y] = (uint8_t *)ycbcrLayout.y; in map()
422 addr[C2PlanarLayout::PLANE_U] = (uint8_t *)ycbcrLayout.cb; in map()
423 addr[C2PlanarLayout::PLANE_V] = (uint8_t *)ycbcrLayout.cr; in map()
424 layout->type = C2PlanarLayout::TYPE_YUV; in map()
427 layout->planes[C2PlanarLayout::PLANE_Y] = { in map()
437 C2PlanarLayout::PLANE_Y, // rootIx in map()
440 layout->planes[C2PlanarLayout::PLANE_U] = { in map()
[all …]
DC2Buffer.cpp908 C2PlanarLayout layout() const { return mLayout; } in layout()
917 uint8_t *mData[C2PlanarLayout::MAX_NUM_PLANES];
918 uint8_t *mOffsetData[C2PlanarLayout::MAX_NUM_PLANES];
919 C2PlanarLayout mLayout;
1012 const C2PlanarLayout C2GraphicView::layout() const { in layout()
/hardware/google/av/codec2/tests/vndk/
DC2BufferTest.cpp301 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 …]
/hardware/google/av/media/sfplugin/utils/
DCodec2BufferUtils.cpp68 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 …]
/hardware/google/av/media/codecs/mpeg4_h263/
DC2SoftMpeg4Enc.cpp493 const C2PlanarLayout &layout = rView->layout(); in process()
494 uint8_t *yPlane = const_cast<uint8_t *>(rView->data()[C2PlanarLayout::PLANE_Y]); in process()
495 uint8_t *uPlane = const_cast<uint8_t *>(rView->data()[C2PlanarLayout::PLANE_U]); in process()
496 uint8_t *vPlane = const_cast<uint8_t *>(rView->data()[C2PlanarLayout::PLANE_V]); in process()
497 int32_t yStride = layout.planes[C2PlanarLayout::PLANE_Y].rowInc; in process()
498 int32_t uStride = layout.planes[C2PlanarLayout::PLANE_U].rowInc; in process()
499 int32_t vStride = layout.planes[C2PlanarLayout::PLANE_V].rowInc; in process()
507 case C2PlanarLayout::TYPE_RGB: in process()
509 case C2PlanarLayout::TYPE_RGBA: { in process()
520 case C2PlanarLayout::TYPE_YUV: { in process()
[all …]
DC2SoftMpeg4Dec.cpp671 uint8_t *outputBufferY = wView.data()[C2PlanarLayout::PLANE_Y]; in process()
/hardware/google/av/media/codecs/avc/
DC2SoftAvcEnc.cpp1152 const C2PlanarLayout &layout = input->layout(); in setEncodeArgs()
1153 uint8_t *yPlane = const_cast<uint8_t *>(input->data()[C2PlanarLayout::PLANE_Y]); in setEncodeArgs()
1154 uint8_t *uPlane = const_cast<uint8_t *>(input->data()[C2PlanarLayout::PLANE_U]); in setEncodeArgs()
1155 uint8_t *vPlane = const_cast<uint8_t *>(input->data()[C2PlanarLayout::PLANE_V]); in setEncodeArgs()
1156 int32_t yStride = layout.planes[C2PlanarLayout::PLANE_Y].rowInc; in setEncodeArgs()
1157 int32_t uStride = layout.planes[C2PlanarLayout::PLANE_U].rowInc; in setEncodeArgs()
1158 int32_t vStride = layout.planes[C2PlanarLayout::PLANE_V].rowInc; in setEncodeArgs()
1168 case C2PlanarLayout::TYPE_RGB: in setEncodeArgs()
1170 case C2PlanarLayout::TYPE_RGBA: { in setEncodeArgs()
1182 case C2PlanarLayout::TYPE_YUV: { in setEncodeArgs()
[all …]
DC2SoftAvcDec.cpp535 ps_decode_ip->s_out_buffer.pu1_bufs[0] = outBuffer->data()[C2PlanarLayout::PLANE_Y]; in setDecodeArgs()
536 ps_decode_ip->s_out_buffer.pu1_bufs[1] = outBuffer->data()[C2PlanarLayout::PLANE_U]; in setDecodeArgs()
537 ps_decode_ip->s_out_buffer.pu1_bufs[2] = outBuffer->data()[C2PlanarLayout::PLANE_V]; in setDecodeArgs()
/hardware/google/av/media/codecs/vpx/
DC2SoftVpxEnc.cpp469 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()
DC2SoftVpxDec.cpp609 uint8_t *dst = const_cast<uint8_t *>(wView.data()[C2PlanarLayout::PLANE_Y]); in outputBuffer()
/hardware/google/av/media/sfplugin/
DCodec2Buffer.cpp231 const C2PlanarLayout &layout = view.layout(); in GraphicView2MediaImageConverter()
245 case C2PlanarLayout::TYPE_YUV: in GraphicView2MediaImageConverter()
351 case C2PlanarLayout::TYPE_YUVA: in GraphicView2MediaImageConverter()
357 case C2PlanarLayout::TYPE_RGB: in GraphicView2MediaImageConverter()
376 case C2PlanarLayout::TYPE_RGBA: in GraphicView2MediaImageConverter()
/hardware/google/av/codec2/hidl/1.0/mts/video/
DMtsHidlC2V1_0TargetVideoEncTest.cpp313 uint8_t* pY = view.data()[C2PlanarLayout::PLANE_Y]; in encodeNFrames()
314 uint8_t* pU = view.data()[C2PlanarLayout::PLANE_U]; in encodeNFrames()
315 uint8_t* pV = view.data()[C2PlanarLayout::PLANE_V]; in encodeNFrames()
/hardware/google/av/media/codecs/mpeg2/
DC2SoftMpeg2Dec.cpp608 ps_decode_ip->s_out_buffer.pu1_bufs[0] = outBuffer->data()[C2PlanarLayout::PLANE_Y]; in setDecodeArgs()
609 ps_decode_ip->s_out_buffer.pu1_bufs[1] = outBuffer->data()[C2PlanarLayout::PLANE_U]; in setDecodeArgs()
610 ps_decode_ip->s_out_buffer.pu1_bufs[2] = outBuffer->data()[C2PlanarLayout::PLANE_V]; in setDecodeArgs()
/hardware/google/av/codec2/include/
DC2Buffer.h1554 struct C2PlanarLayout { struct
1751 C2PlanarLayout *layout /* nonnull */, uint8_t **addr /* nonnull */) = 0;
1858 const C2PlanarLayout layout() const;
/hardware/google/av/media/codecs/hevc/
DC2SoftHevcDec.cpp533 ps_decode_ip->s_out_buffer.pu1_bufs[0] = outBuffer->data()[C2PlanarLayout::PLANE_Y]; in setDecodeArgs()
534 ps_decode_ip->s_out_buffer.pu1_bufs[1] = outBuffer->data()[C2PlanarLayout::PLANE_U]; in setDecodeArgs()
535 ps_decode_ip->s_out_buffer.pu1_bufs[2] = outBuffer->data()[C2PlanarLayout::PLANE_V]; in setDecodeArgs()