Home
last modified time | relevance | path

Searched refs:mapper (Results 1 – 25 of 51) sorted by relevance

123

/hardware/intel/img/hwcomposer/merrifield/common/buffers/
DBufferManager.cpp87 BufferMapper *mapper = mBufferPool->getMapper(i); in deinitialize() local
88 mapper->unmap(); in deinitialize()
89 delete mapper; in deinitialize()
97 BufferMapper *mapper = mFrameBuffers.valueAt(j); in deinitialize() local
98 mapper->unmap(); in deinitialize()
99 delete mapper; in deinitialize()
119 BufferMapper *mapper = mBufferPool->getMapper(i); in dump() local
122 mapper->getHandle(), in dump()
123 mapper->getWidth(), in dump()
124 mapper->getHeight(), in dump()
[all …]
DBufferCache.cpp35 bool BufferCache::addMapper(uint64_t handle, BufferMapper* mapper) in addMapper() argument
44 index = mBufferPool.add(handle, mapper); in addMapper()
53 bool BufferCache::removeMapper(BufferMapper* mapper) in removeMapper() argument
57 if (!mapper) { in removeMapper()
62 index = mBufferPool.removeItem(mapper->getKey()); in removeMapper()
92 BufferMapper* mapper = mBufferPool.valueAt(index); in getMapper() local
93 return mapper; in getMapper()
DBufferCache.h31 virtual bool addMapper(uint64_t handle, BufferMapper* mapper);
33 virtual bool removeMapper(BufferMapper* mapper);
/hardware/intel/img/hwcomposer/moorefield_hdmi/common/buffers/
DBufferManager.cpp87 BufferMapper *mapper = mBufferPool->getMapper(i); in deinitialize() local
88 mapper->unmap(); in deinitialize()
89 delete mapper; in deinitialize()
97 BufferMapper *mapper = mFrameBuffers.valueAt(j); in deinitialize() local
98 mapper->unmap(); in deinitialize()
99 delete mapper; in deinitialize()
119 BufferMapper *mapper = mBufferPool->getMapper(i); in dump() local
122 mapper->getHandle(), in dump()
123 mapper->getWidth(), in dump()
124 mapper->getHeight(), in dump()
[all …]
DBufferCache.cpp35 bool BufferCache::addMapper(uint64_t handle, BufferMapper* mapper) in addMapper() argument
44 index = mBufferPool.add(handle, mapper); in addMapper()
53 bool BufferCache::removeMapper(BufferMapper* mapper) in removeMapper() argument
57 if (!mapper) { in removeMapper()
62 index = mBufferPool.removeItem(mapper->getKey()); in removeMapper()
92 BufferMapper* mapper = mBufferPool.valueAt(index); in getMapper() local
93 return mapper; in getMapper()
DBufferCache.h31 virtual bool addMapper(uint64_t handle, BufferMapper* mapper);
33 virtual bool removeMapper(BufferMapper* mapper);
/hardware/intel/img/hwcomposer/merrifield/common/planes/
DDisplayPlane.cpp168 BufferMapper *mapper; in setDataBuffer() local
203 mapper = mapBuffer(buffer); in setDataBuffer()
204 if (!mapper) { in setDataBuffer()
211 mapper = mDataBuffers.valueAt(index); in setDataBuffer()
215 mapper->setCrop(mSrcCrop.x, mSrcCrop.y, mSrcCrop.w, mSrcCrop.h); in setDataBuffer()
217 mapper->setIsCompression(isCompression); in setDataBuffer()
223 ret = setDataBuffer(*mapper); in setDataBuffer()
227 updateActiveBuffers(mapper); in setDataBuffer()
241 BufferMapper *mapper = bm->map(*buffer); in mapBuffer() local
242 if (!mapper) { in mapBuffer()
[all …]
/hardware/intel/img/hwcomposer/moorefield_hdmi/common/planes/
DDisplayPlane.cpp184 BufferMapper *mapper; in setDataBuffer() local
219 mapper = mapBuffer(buffer); in setDataBuffer()
220 if (!mapper) { in setDataBuffer()
227 mapper = mDataBuffers.valueAt(index); in setDataBuffer()
231 mapper->setCrop(mSrcCrop.x, mSrcCrop.y, mSrcCrop.w, mSrcCrop.h); in setDataBuffer()
233 mapper->setIsCompression(isCompression); in setDataBuffer()
239 ret = setDataBuffer(*mapper); in setDataBuffer()
243 updateActiveBuffers(mapper); in setDataBuffer()
257 BufferMapper *mapper = bm->map(*buffer); in mapBuffer() local
258 if (!mapper) { in mapBuffer()
[all …]
/hardware/intel/img/hwcomposer/moorefield_hdmi/ips/common/
DOverlayPlaneBase.cpp350 TTMBufferMapper *mapper; in getTTMMapper() local
429 mapper = new TTMBufferMapper(*mWsbm, buf); in getTTMMapper()
430 if (!mapper) { in getTTMMapper()
435 ret = mapper->map(); in getTTMMapper()
439 ret = mapper->map(); in getTTMMapper()
451 index = mTTMBuffers.add(khandle, mapper); in getTTMMapper()
458 mapper->incRef(); in getTTMMapper()
464 if (mapper) { in getTTMMapper()
465 mapper->unmap(); in getTTMMapper()
466 delete mapper; in getTTMMapper()
[all …]
DOverlayPlaneBase.h60 virtual bool setDataBuffer(BufferMapper& mapper);
61 virtual bool bufferOffsetSetup(BufferMapper& mapper);
63 virtual bool coordinateSetup(BufferMapper& mapper);
69 virtual bool scalingSetup(BufferMapper& mapper);
70 virtual bool colorSetup(BufferMapper& mapper);
82 virtual void putTTMMapper(BufferMapper* mapper);
83 virtual bool rotatedBufferReady(BufferMapper& mapper, BufferMapper* &rotatedMapper);
84 virtual bool useOverlayRotation(BufferMapper& mapper);
87 inline bool isActiveTTMBuffer(BufferMapper *mapper);
88 void updateActiveTTMBuffers(BufferMapper *mapper);
/hardware/intel/img/hwcomposer/merrifield/ips/common/
DOverlayPlaneBase.cpp356 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()
[all …]
DOverlayPlaneBase.h61 virtual bool setDataBuffer(BufferMapper& mapper);
62 virtual bool bufferOffsetSetup(BufferMapper& mapper);
64 virtual bool coordinateSetup(BufferMapper& mapper);
70 virtual bool scalingSetup(BufferMapper& mapper);
71 virtual bool colorSetup(BufferMapper& mapper);
83 virtual void putTTMMapper(BufferMapper* mapper);
84 virtual bool rotatedBufferReady(BufferMapper& mapper, BufferMapper* &rotatedMapper);
85 virtual bool useOverlayRotation(BufferMapper& mapper);
86 …virtual bool scaledBufferReady(BufferMapper& mapper, BufferMapper* &scaledMapper, VideoPayloadBuff…
89 inline bool isActiveTTMBuffer(BufferMapper *mapper);
[all …]
DVideoPayloadManager.cpp35 bool VideoPayloadManager::getMetaData(BufferMapper *mapper, MetaData *metadata) in getMetaData() argument
37 if (!mapper || !metadata) { in getMetaData()
42 VideoPayloadBuffer *p = (VideoPayloadBuffer*) mapper->getCpuAddress(SUB_BUFFER1); in getMetaData()
105 bool VideoPayloadManager::setRenderStatus(BufferMapper *mapper, bool renderStatus) in setRenderStatus() argument
107 if (!mapper) { in setRenderStatus()
112 VideoPayloadBuffer* p = (VideoPayloadBuffer*) mapper->getCpuAddress(SUB_BUFFER1); in setRenderStatus()
DVideoPayloadManager.h34 virtual bool getMetaData(BufferMapper *mapper, MetaData *metadata);
35 virtual bool setRenderStatus(BufferMapper *mapper, bool renderStatus);
/hardware/intel/img/hwcomposer/moorefield_hdmi/ips/anniedale/
DAnnOverlayPlane.h49 virtual bool rotatedBufferReady(BufferMapper& mapper, BufferMapper* &rotatedMapper);
50 virtual bool useOverlayRotation(BufferMapper& mapper);
53 void signalVideoRotation(BufferMapper& mapper);
56 virtual bool setDataBuffer(BufferMapper& mapper);
58 virtual bool bufferOffsetSetup(BufferMapper& mapper);
59 virtual bool coordinateSetup(BufferMapper& mapper);
60 virtual bool scalingSetup(BufferMapper& mapper);
DAnnOverlayPlane.cpp166 bool AnnOverlayPlane::bufferOffsetSetup(BufferMapper& mapper) in bufferOffsetSetup() argument
176 uint32_t format = mapper.getFormat(); in bufferOffsetSetup()
177 uint32_t gttOffsetInBytes = (mapper.getGttOffsetInPage(0) << 12); in bufferOffsetSetup()
191 uint32_t yStride = mapper.getStride().yuv.yStride; in bufferOffsetSetup()
192 uint32_t uvStride = mapper.getStride().yuv.uvStride; in bufferOffsetSetup()
193 uint32_t h = mapper.getHeight(); in bufferOffsetSetup()
194 uint32_t srcX= mapper.getCrop().x; in bufferOffsetSetup()
195 uint32_t srcY= mapper.getCrop().y; in bufferOffsetSetup()
324 bool AnnOverlayPlane::coordinateSetup(BufferMapper& mapper) in coordinateSetup() argument
328 uint32_t format = mapper.getFormat(); in coordinateSetup()
[all …]
DAnnCursorPlane.cpp89 bool AnnCursorPlane::setDataBuffer(BufferMapper& mapper) in setDataBuffer() argument
91 int w = mapper.getWidth(); in setDataBuffer()
92 int h = mapper.getHeight(); in setDataBuffer()
119 if (mapper.getFormat() == HAL_PIXEL_FORMAT_RGBA_8888) { in setDataBuffer()
121 } else if (mapper.getFormat() == HAL_PIXEL_FORMAT_BGRA_8888) { in setDataBuffer()
123 uint8_t *p = (uint8_t *)(mapper.getCpuAddress(0)); in setDataBuffer()
125 uint32_t stride = mapper.getStride().rgb.stride; in setDataBuffer()
146 uint8_t *p = (uint8_t *)(mapper.getCpuAddress(0)); in setDataBuffer()
148 uint32_t stride = mapper.getStride().rgb.stride; in setDataBuffer()
172 mContext.ctx.cs_ctx.surf = mapper.getGttOffsetInPage(0) << 12; in setDataBuffer()
DAnnRGBPlane.cpp147 bool AnnRGBPlane::setDataBuffer(BufferMapper& mapper) in setDataBuffer() argument
169 if (!PixelFormat::convertFormat(mapper.getFormat(), spriteFormat, bpp)) { in setDataBuffer()
170 ELOGTRACE("unsupported format %#x", mapper.getFormat()); in setDataBuffer()
175 srcX = mapper.getCrop().x; in setDataBuffer()
176 srcY = mapper.getCrop().y; in setDataBuffer()
177 srcW = mapper.getWidth(); in setDataBuffer()
178 srcH = mapper.getHeight(); in setDataBuffer()
179 stride = mapper.getStride().rgb.stride; in setDataBuffer()
182 …linoff = srcY * stride + srcX * bpp + (mapper.getCrop().h - 1) * stride + (mapper.getCrop().w - 1… in setDataBuffer()
187 if (linoff > (stride * mapper.getHeight())) { in setDataBuffer()
[all …]
/hardware/intel/img/hwcomposer/merrifield/ips/anniedale/
DAnnOverlayPlane.h47 virtual bool rotatedBufferReady(BufferMapper& mapper, BufferMapper* &rotatedMapper);
48 virtual bool useOverlayRotation(BufferMapper& mapper);
49 …virtual bool scaledBufferReady(BufferMapper& mapper, BufferMapper* &scaledMapper, VideoPayloadBuff…
52 void signalVideoRotation(BufferMapper& mapper);
56 virtual bool setDataBuffer(BufferMapper& mapper);
58 virtual bool bufferOffsetSetup(BufferMapper& mapper);
59 virtual bool scalingSetup(BufferMapper& mapper);
DAnnOverlayPlane.cpp158 bool AnnOverlayPlane::bufferOffsetSetup(BufferMapper& mapper) in bufferOffsetSetup() argument
168 uint32_t format = mapper.getFormat(); in bufferOffsetSetup()
169 uint32_t gttOffsetInBytes = (mapper.getGttOffsetInPage(0) << 12); in bufferOffsetSetup()
170 uint32_t yStride = mapper.getStride().yuv.yStride; in bufferOffsetSetup()
171 uint32_t uvStride = mapper.getStride().yuv.uvStride; in bufferOffsetSetup()
172 uint32_t w = mapper.getWidth(); in bufferOffsetSetup()
173 uint32_t h = mapper.getHeight(); in bufferOffsetSetup()
174 uint32_t srcX= mapper.getCrop().x; in bufferOffsetSetup()
175 uint32_t srcY= mapper.getCrop().y; in bufferOffsetSetup()
304 bool AnnOverlayPlane::scalingSetup(BufferMapper& mapper) in scalingSetup() argument
[all …]
DAnnRGBPlane.cpp88 bool AnnRGBPlane::setDataBuffer(BufferMapper& mapper) in setDataBuffer() argument
110 if (!PixelFormat::convertFormat(mapper.getFormat(), spriteFormat, bpp)) { in setDataBuffer()
111 ETRACE("unsupported format %#x", mapper.getFormat()); in setDataBuffer()
116 srcX = mapper.getCrop().x; in setDataBuffer()
117 srcY = mapper.getCrop().y; in setDataBuffer()
118 srcW = mapper.getWidth(); in setDataBuffer()
119 srcH = mapper.getHeight(); in setDataBuffer()
120 stride = mapper.getStride().rgb.stride; in setDataBuffer()
123 …linoff = srcY * stride + srcX * bpp + (mapper.getCrop().h - 1) * stride + (mapper.getCrop().w - 1… in setDataBuffer()
128 if (linoff > (stride * mapper.getHeight())) { in setDataBuffer()
[all …]
DAnnCursorPlane.cpp90 bool AnnCursorPlane::setDataBuffer(BufferMapper& mapper) in setDataBuffer() argument
92 int w = mapper.getWidth(); in setDataBuffer()
93 int h = mapper.getHeight(); in setDataBuffer()
120 if (mapper.getFormat() == HAL_PIXEL_FORMAT_RGBA_8888) { in setDataBuffer()
122 } else if (mapper.getFormat() == HAL_PIXEL_FORMAT_BGRA_8888) { in setDataBuffer()
124 uint8_t *p = (uint8_t *)(mapper.getCpuAddress(0)); in setDataBuffer()
126 uint32_t stride = mapper.getStride().rgb.stride; in setDataBuffer()
151 mContext.ctx.cs_ctx.surf = mapper.getGttOffsetInPage(0) << 12; in setDataBuffer()
/hardware/intel/img/hwcomposer/merrifield/ips/tangier/
DTngOverlayPlane.cpp80 bool TngOverlayPlane::setDataBuffer(BufferMapper& mapper) in setDataBuffer() argument
82 if (OverlayPlaneBase::setDataBuffer(mapper) == false) { in setDataBuffer()
93 mContext.gtt_key = (uint64_t)mapper.getCpuAddress(0); in setDataBuffer()
118 bool TngOverlayPlane::rotatedBufferReady(BufferMapper& mapper, BufferMapper* &rotatedMapper) in rotatedBufferReady() argument
124 format = mapper.getFormat(); in rotatedBufferReady()
133 payload = (struct VideoPayloadBuffer *)mapper.getCpuAddress(SUB_BUFFER1); in rotatedBufferReady()
137 void *p = mapper.getCpuAddress(SUB_BUFFER0); in rotatedBufferReady()
143 bool ret = mRotationBufProvider->prepareBufferInfo(mapper.getWidth(), in rotatedBufferReady()
144 mapper.getHeight(), in rotatedBufferReady()
145 mapper.getStride().yuv.yStride, in rotatedBufferReady()
[all …]
DTngCursorPlane.cpp84 bool TngCursorPlane::setDataBuffer(BufferMapper& mapper) in setDataBuffer() argument
86 int w = mapper.getWidth(); in setDataBuffer()
87 int h = mapper.getHeight(); in setDataBuffer()
114 if (mapper.getFormat() == HAL_PIXEL_FORMAT_RGBA_8888) { in setDataBuffer()
116 } else if (mapper.getFormat() == HAL_PIXEL_FORMAT_BGRA_8888) { in setDataBuffer()
118 uint8_t *p = (uint8_t *)(mapper.getCpuAddress(0)); in setDataBuffer()
120 uint32_t stride = mapper.getStride().rgb.stride; in setDataBuffer()
141 uint8_t *p = (uint8_t *)(mapper.getCpuAddress(0)); in setDataBuffer()
143 uint32_t stride = mapper.getStride().rgb.stride; in setDataBuffer()
169 mContext.ctx.cs_ctx.surf = mapper.getGttOffsetInPage(0) << 12; in setDataBuffer()
DTngSpritePlane.cpp37 bool TngSpritePlane::setDataBuffer(BufferMapper& mapper) in setDataBuffer() argument
58 if (!PixelFormat::convertFormat(mapper.getFormat(), spriteFormat, bpp)) { in setDataBuffer()
59 ETRACE("unsupported format %#x", mapper.getFormat()); in setDataBuffer()
64 srcX = mapper.getCrop().x; in setDataBuffer()
65 srcY = mapper.getCrop().y; in setDataBuffer()
66 stride = mapper.getStride().rgb.stride; in setDataBuffer()
78 if (linoff > (stride * mapper.getHeight())) { in setDataBuffer()
95 mContext.ctx.sp_ctx.surf = mapper.getGttOffsetInPage(0) << 12; in setDataBuffer()
101 mContext.gtt_key = (uint64_t)mapper.getCpuAddress(0); in setDataBuffer()

123