Lines Matching refs:mapper
356 TTMBufferMapper *mapper; in getTTMMapper() local
450 mapper = new TTMBufferMapper(*mWsbm, buf); in getTTMMapper()
451 if (!mapper) { in getTTMMapper()
456 ret = mapper->map(); in getTTMMapper()
460 ret = mapper->map(); in getTTMMapper()
472 index = mTTMBuffers.add(khandle, mapper); in getTTMMapper()
479 mapper->incRef(); in getTTMMapper()
485 if (mapper) { in getTTMMapper()
486 mapper->unmap(); in getTTMMapper()
487 delete mapper; in getTTMMapper()
488 mapper = NULL; in getTTMMapper()
494 mapper = reinterpret_cast<TTMBufferMapper *>(mTTMBuffers.valueAt(index)); in getTTMMapper()
495 if (mapper->getCrop().x != srcX || mapper->getCrop().y != srcY || in getTTMMapper()
496 mapper->getCrop().w != srcW || mapper->getCrop().h != srcH) { in getTTMMapper()
499 mapper->setCrop(srcX, srcY, srcW, srcH); in getTTMMapper()
504 return mapper; in getTTMMapper()
507 void OverlayPlaneBase::putTTMMapper(BufferMapper* mapper) in putTTMMapper() argument
509 if (!mapper) in putTTMMapper()
512 if (!mapper->decRef()) { in putTTMMapper()
514 mapper->unmap(); in putTTMMapper()
517 delete mapper; in putTTMMapper()
521 bool OverlayPlaneBase::isActiveTTMBuffer(BufferMapper *mapper) in isActiveTTMBuffer() argument
527 if (activeMapper->getKey() == mapper->getKey()) in isActiveTTMBuffer()
534 void OverlayPlaneBase::updateActiveTTMBuffers(BufferMapper *mapper) in updateActiveTTMBuffers() argument
544 if (!isActiveTTMBuffer(mapper)) { in updateActiveTTMBuffers()
545 mapper->incRef(); in updateActiveTTMBuffers()
546 mActiveTTMBuffers.push_back(mapper); in updateActiveTTMBuffers()
552 BufferMapper* mapper; in invalidateActiveTTMBuffers() local
557 mapper = mActiveTTMBuffers.itemAt(i); in invalidateActiveTTMBuffers()
559 putTTMMapper(mapper); in invalidateActiveTTMBuffers()
568 BufferMapper* mapper; in invalidateTTMBuffers() local
570 mapper = mTTMBuffers.valueAt(i); in invalidateTTMBuffers()
572 putTTMMapper(mapper); in invalidateTTMBuffers()
578 bool OverlayPlaneBase::rotatedBufferReady(BufferMapper& mapper, BufferMapper* &rotatedMapper) in rotatedBufferReady() argument
584 format = mapper.getFormat(); in rotatedBufferReady()
589 payload = (struct VideoPayloadBuffer *)mapper.getCpuAddress(SUB_BUFFER1); in rotatedBufferReady()
608 rotatedMapper = getTTMMapper(mapper, payload); in rotatedBufferReady()
613 bool OverlayPlaneBase::useOverlayRotation(BufferMapper& mapper) in useOverlayRotation() argument
619 bool OverlayPlaneBase::scaledBufferReady(BufferMapper& mapper, BufferMapper* &scaledMapper, VideoPa… in scaledBufferReady() argument
681 bool OverlayPlaneBase::bufferOffsetSetup(BufferMapper& mapper) in bufferOffsetSetup() argument
691 uint32_t format = mapper.getFormat(); in bufferOffsetSetup()
692 uint32_t gttOffsetInBytes = (mapper.getGttOffsetInPage(0) << 12); in bufferOffsetSetup()
693 uint32_t yStride = mapper.getStride().yuv.yStride; in bufferOffsetSetup()
694 uint32_t uvStride = mapper.getStride().yuv.uvStride; in bufferOffsetSetup()
695 uint32_t w = mapper.getWidth(); in bufferOffsetSetup()
696 uint32_t h = mapper.getHeight(); in bufferOffsetSetup()
697 uint32_t srcX= mapper.getCrop().x; in bufferOffsetSetup()
698 uint32_t srcY= mapper.getCrop().y; in bufferOffsetSetup()
809 bool OverlayPlaneBase::coordinateSetup(BufferMapper& mapper) in coordinateSetup() argument
821 uint32_t format = mapper.getFormat(); in coordinateSetup()
822 uint32_t width = mapper.getCrop().w; in coordinateSetup()
823 uint32_t height = mapper.getCrop().h; in coordinateSetup()
824 uint32_t yStride = mapper.getStride().yuv.yStride; in coordinateSetup()
825 uint32_t uvStride = mapper.getStride().yuv.uvStride; in coordinateSetup()
992 bool OverlayPlaneBase::scalingSetup(BufferMapper& mapper) in scalingSetup() argument
1031 uint32_t srcWidth = mapper.getCrop().w; in scalingSetup()
1032 uint32_t srcHeight = mapper.getCrop().h; in scalingSetup()
1146 bool OverlayPlaneBase::colorSetup(BufferMapper& mapper) in colorSetup() argument
1156 uint32_t format = mapper.getFormat(); in colorSetup()
1170 payload = (struct VideoPayloadBuffer *)mapper.getCpuAddress(SUB_BUFFER1); in colorSetup()
1198 BufferMapper *mapper; in setDataBuffer() local
1206 mapper = &grallocMapper; in setDataBuffer()
1242 mapper = videoBufferMapper; in setDataBuffer()
1257 mapper = videoBufferMapper; in setDataBuffer()
1266 ret = bufferOffsetSetup(*mapper); in setDataBuffer()
1272 ret = coordinateSetup(*mapper); in setDataBuffer()
1278 ret = scalingSetup(*mapper); in setDataBuffer()
1301 updateActiveTTMBuffers(mapper); in setDataBuffer()