Lines Matching refs:mRotImgInfo
36 bool MdpRot::enabled() const { return mRotImgInfo.enable; } in enabled()
38 void MdpRot::setRotations(uint32_t r) { mRotImgInfo.rotations = (uint8_t)r; } in setRotations()
57 return mRotImgInfo.dst.format; in getDstFormat()
63 int halFormat = ovutils::getHALFormat(mRotImgInfo.dst.format); in getDstWhf()
64 getBufferSizeAndDimensions(mRotImgInfo.dst.width, mRotImgInfo.dst.height, in getDstWhf()
66 return utils::Whf(alW, alH, mRotImgInfo.dst.format); in getDstWhf()
72 int halFormat = ovutils::getHALFormat(mRotImgInfo.dst.format); in getDstDimensions()
73 getBufferSizeAndDimensions(mRotImgInfo.dst.width, mRotImgInfo.dst.height, in getDstDimensions()
78 uint32_t MdpRot::getSessId() const { return mRotImgInfo.session_id; } in getSessId()
81 if ((utils::ROT_DS_EIGHTH == ds) && (mRotImgInfo.src_rect.h & 0xF)) { in setDownscale()
84 mRotImgInfo.src_rect.h = utils::aligndown(mRotImgInfo.src_rect.h, 16); in setDownscale()
86 mRotImgInfo.downscale_ratio = ds; in setDownscale()
90 mLSRotImgInfo = mRotImgInfo; in save()
95 if(0 == ::memcmp(&mRotImgInfo, &mLSRotImgInfo, in rotConfChanged()
113 mRotImgInfo.src.format = whf.format; in setSource()
115 mRotImgInfo.src.width = whf.w; in setSource()
116 mRotImgInfo.src.height = whf.h; in setSource()
118 mRotImgInfo.src_rect.w = whf.w; in setSource()
119 mRotImgInfo.src_rect.h = whf.h; in setSource()
121 mRotImgInfo.dst.width = whf.w; in setSource()
122 mRotImgInfo.dst.height = whf.h; in setSource()
130 mRotImgInfo.secure = 0; in setFlags()
132 mRotImgInfo.secure = 1; in setFlags()
145 utils::swap(mRotImgInfo.dst.width, mRotImgInfo.dst.height); in doTransform()
151 mRotImgInfo.enable = 1; in commit()
152 if(!overlay::mdp_wrapper::startRotator(mFd.getFD(), mRotImgInfo)) { in commit()
155 mRotImgInfo.enable = 0; in commit()
158 mRotDataInfo.session_id = mRotImgInfo.session_id; in commit()
164 ovutils::Whf destWhf(mRotImgInfo.dst.width, in calcOutputBufSize()
165 mRotImgInfo.dst.height, mRotImgInfo.dst.format); in calcOutputBufSize()
175 if(!mem.open(numbufs, bufsz, mRotImgInfo.secure)){ in open_i()
239 ovutils::memset0(mRotImgInfo); in reset()
281 mdp_wrapper::dump("mRotImgInfo", mRotImgInfo); in dump()
287 ovutils::getDump(buf, len, "MdpRotCtrl", mRotImgInfo); in getDump()