2012-06-14 07:56:20 +00:00
|
|
|
/*
|
2012-07-10 20:07:52 +00:00
|
|
|
* Copyright (c) 2011, Code Aurora Forum. All rights reserved.
|
2012-06-14 07:56:20 +00:00
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted provided that the following conditions are
|
|
|
|
* met:
|
|
|
|
* * Redistributions of source code must retain the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer.
|
|
|
|
* * Redistributions in binary form must reproduce the above
|
|
|
|
* copyright notice, this list of conditions and the following
|
|
|
|
* disclaimer in the documentation and/or other materials provided
|
|
|
|
* with the distribution.
|
|
|
|
* * Neither the name of Code Aurora Forum, Inc. nor the names of its
|
|
|
|
* contributors may be used to endorse or promote products derived
|
|
|
|
* from this software without specific prior written permission.
|
|
|
|
*
|
|
|
|
* THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
|
|
|
|
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
|
|
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
|
|
|
|
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
|
|
|
|
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
|
|
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
|
|
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
|
|
|
* BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
|
|
|
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
|
|
|
* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
|
|
|
|
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
*/
|
|
|
|
|
2012-07-10 20:07:52 +00:00
|
|
|
#ifndef OVERlAY_ROTATOR_H
|
|
|
|
#define OVERlAY_ROTATOR_H
|
2012-06-14 07:56:20 +00:00
|
|
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
#include "mdpWrapper.h"
|
|
|
|
#include "overlayUtils.h"
|
|
|
|
#include "overlayMem.h"
|
|
|
|
|
|
|
|
namespace overlay {
|
2012-07-10 20:07:52 +00:00
|
|
|
|
|
|
|
class IRotatorHw;
|
2012-06-14 07:56:20 +00:00
|
|
|
/*
|
2012-07-10 20:07:52 +00:00
|
|
|
* RotatorBase. No members, just interface.
|
|
|
|
* can also be =0 with empty impl in cpp.
|
2012-06-14 07:56:20 +00:00
|
|
|
* */
|
2012-07-10 20:07:52 +00:00
|
|
|
class RotatorBase {
|
2012-06-14 07:56:20 +00:00
|
|
|
public:
|
2012-07-10 20:07:52 +00:00
|
|
|
/* Most of the below are No op funcs for RotatorBase */
|
|
|
|
virtual ~RotatorBase() {}
|
|
|
|
virtual bool init() = 0;
|
|
|
|
virtual bool close() = 0;
|
|
|
|
virtual void setSource(const utils::Whf& wfh) = 0;
|
2012-07-16 21:51:28 +00:00
|
|
|
virtual void setFlags(const utils::eMdpFlags& flags) = 0;
|
2012-07-10 20:07:52 +00:00
|
|
|
virtual void setTransform(const utils::eTransform& rot,
|
|
|
|
const bool& rotUsed) = 0;
|
|
|
|
virtual bool commit() = 0;
|
|
|
|
virtual bool queueBuffer(int fd, uint32_t offset) = 0;
|
2012-06-14 07:56:20 +00:00
|
|
|
|
2012-07-10 20:07:52 +00:00
|
|
|
virtual void setEnable() = 0;
|
|
|
|
virtual void setDisable() = 0;
|
|
|
|
virtual void setRotations(uint32_t r) = 0;
|
2012-07-16 21:51:28 +00:00
|
|
|
virtual void setSrcFB() = 0;
|
2012-06-14 07:56:20 +00:00
|
|
|
|
2012-07-10 20:07:52 +00:00
|
|
|
virtual bool enabled() const = 0;
|
|
|
|
virtual int getSessId() const = 0;
|
|
|
|
virtual int getDstMemId() const = 0;
|
|
|
|
virtual uint32_t getDstOffset() const = 0;
|
|
|
|
virtual void dump() const = 0;
|
2012-06-14 07:56:20 +00:00
|
|
|
|
2012-07-10 20:07:52 +00:00
|
|
|
protected:
|
|
|
|
//Hardware specific rotator impl.
|
|
|
|
IRotatorHw *mRot;
|
|
|
|
};
|
2012-06-14 07:56:20 +00:00
|
|
|
|
2012-07-10 20:07:52 +00:00
|
|
|
/*
|
|
|
|
* Rotator Hw Interface. Any hardware specific implementation should inherit
|
|
|
|
* from this.
|
|
|
|
*/
|
|
|
|
class IRotatorHw {
|
|
|
|
public:
|
|
|
|
/* Most of the below are No op funcs for RotatorBase */
|
|
|
|
virtual ~IRotatorHw() {}
|
|
|
|
/* init fd for rotator. map bufs is defered */
|
|
|
|
virtual bool init() = 0;
|
2012-06-14 07:56:20 +00:00
|
|
|
/* close fd, mem */
|
2012-07-10 20:07:52 +00:00
|
|
|
virtual bool close() = 0;
|
|
|
|
/* set src */
|
|
|
|
virtual void setSource(const utils::Whf& wfh) = 0;
|
2012-07-16 21:51:28 +00:00
|
|
|
/* set mdp flags, will use only stuff necessary for rotator */
|
|
|
|
virtual void setFlags(const utils::eMdpFlags& flags) = 0;
|
2012-07-10 20:07:52 +00:00
|
|
|
/* Set rotation and calculate */
|
|
|
|
virtual void setTransform(const utils::eTransform& rot,
|
|
|
|
const bool& rotUsed) = 0;
|
2012-06-14 07:56:20 +00:00
|
|
|
/* calls underlying wrappers to start rotator */
|
2012-07-10 20:07:52 +00:00
|
|
|
virtual bool commit() = 0;
|
|
|
|
/* Lazy buffer allocation. queue buffer */
|
|
|
|
virtual bool queueBuffer(int fd, uint32_t offset) = 0;
|
2012-06-14 07:56:20 +00:00
|
|
|
/* set enable/disable flag */
|
2012-07-10 20:07:52 +00:00
|
|
|
virtual void setEnable() = 0;
|
|
|
|
virtual void setDisable() = 0;
|
2012-06-14 07:56:20 +00:00
|
|
|
/* set rotator flag*/
|
2012-07-10 20:07:52 +00:00
|
|
|
virtual void setRotations(uint32_t r) = 0;
|
|
|
|
/* Mark src as FB (non-ION) */
|
2012-07-16 21:51:28 +00:00
|
|
|
virtual void setSrcFB() = 0;
|
2012-07-10 20:07:52 +00:00
|
|
|
/* Retusn true if rotator enabled */
|
|
|
|
virtual bool enabled() const = 0;
|
2012-06-14 07:56:20 +00:00
|
|
|
/* returns rotator session id */
|
2012-07-10 20:07:52 +00:00
|
|
|
virtual int getSessId() const = 0;
|
|
|
|
/* get dst (for offset and memory id) non-virt */
|
|
|
|
virtual int getDstMemId() const = 0;
|
|
|
|
virtual uint32_t getDstOffset() const = 0;
|
2012-06-14 07:56:20 +00:00
|
|
|
/* dump the state of the object */
|
2012-07-10 20:07:52 +00:00
|
|
|
virtual void dump() const = 0;
|
2012-06-14 07:56:20 +00:00
|
|
|
|
2012-07-10 20:07:52 +00:00
|
|
|
enum { TYPE_MDP, TYPE_MDSS };
|
|
|
|
/*Returns rotator h/w type */
|
|
|
|
static int getRotatorHwType();
|
2012-06-14 07:56:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
2012-07-10 20:07:52 +00:00
|
|
|
* Actual Rotator impl.
|
2012-06-14 07:56:20 +00:00
|
|
|
* */
|
2012-07-10 20:07:52 +00:00
|
|
|
class Rotator : public RotatorBase
|
|
|
|
{
|
2012-06-14 07:56:20 +00:00
|
|
|
public:
|
2012-07-10 20:07:52 +00:00
|
|
|
explicit Rotator();
|
|
|
|
virtual ~Rotator();
|
|
|
|
virtual bool init();
|
|
|
|
virtual bool close();
|
|
|
|
virtual void setSource(const utils::Whf& wfh);
|
2012-07-16 21:51:28 +00:00
|
|
|
virtual void setFlags(const utils::eMdpFlags& flags);
|
2012-07-10 20:07:52 +00:00
|
|
|
virtual void setTransform(const utils::eTransform& rot,
|
|
|
|
const bool& rotUsed);
|
|
|
|
virtual bool commit();
|
|
|
|
virtual void setRotations(uint32_t r);
|
2012-07-16 21:51:28 +00:00
|
|
|
virtual void setSrcFB();
|
2012-07-10 20:07:52 +00:00
|
|
|
virtual int getDstMemId() const;
|
|
|
|
virtual uint32_t getDstOffset() const;
|
|
|
|
virtual void setEnable();
|
|
|
|
virtual void setDisable();
|
|
|
|
virtual bool enabled () const;
|
|
|
|
virtual int getSessId() const;
|
|
|
|
virtual bool queueBuffer(int fd, uint32_t offset);
|
|
|
|
virtual void dump() const;
|
2012-06-14 07:56:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Null/Empty impl of RotatorBase
|
|
|
|
* */
|
|
|
|
class NullRotator : public RotatorBase {
|
|
|
|
public:
|
|
|
|
/* Most of the below are No op funcs for RotatorBase */
|
|
|
|
virtual ~NullRotator();
|
2012-07-10 20:07:52 +00:00
|
|
|
virtual bool init();
|
2012-06-14 07:56:20 +00:00
|
|
|
virtual bool close();
|
2012-07-10 20:07:52 +00:00
|
|
|
virtual void setSource(const utils::Whf& wfh);
|
2012-07-16 21:51:28 +00:00
|
|
|
virtual void setFlags(const utils::eMdpFlags& flags);
|
2012-07-10 20:07:52 +00:00
|
|
|
virtual void setTransform(const utils::eTransform& rot,
|
|
|
|
const bool& rotUsed);
|
|
|
|
virtual bool commit();
|
2012-06-14 07:56:20 +00:00
|
|
|
virtual void setRotations(uint32_t r);
|
2012-07-10 20:07:52 +00:00
|
|
|
virtual bool queueBuffer(int fd, uint32_t offset);
|
2012-06-14 07:56:20 +00:00
|
|
|
virtual void setEnable();
|
|
|
|
virtual void setDisable();
|
|
|
|
virtual bool enabled () const;
|
2012-07-16 21:51:28 +00:00
|
|
|
virtual void setSrcFB();
|
2012-06-14 07:56:20 +00:00
|
|
|
virtual int getSessId() const;
|
2012-07-10 20:07:52 +00:00
|
|
|
virtual int getDstMemId() const;
|
|
|
|
virtual uint32_t getDstOffset() const;
|
2012-06-14 07:56:20 +00:00
|
|
|
virtual void dump() const;
|
|
|
|
};
|
|
|
|
|
2012-07-10 20:07:52 +00:00
|
|
|
/*
|
|
|
|
Manages the case where new rotator memory needs to be
|
|
|
|
allocated, before previous is freed, due to resolution change etc. If we make
|
|
|
|
rotator memory to be always max size, irrespctive of source resolution then
|
|
|
|
we don't need this RotMem wrapper. The inner class is sufficient.
|
|
|
|
*/
|
|
|
|
struct RotMem {
|
|
|
|
// Max rotator memory allocations
|
|
|
|
enum { MAX_ROT_MEM = 2};
|
|
|
|
|
|
|
|
//Manages the rotator buffer offsets.
|
|
|
|
struct Mem {
|
|
|
|
Mem() : mCurrOffset(0) {utils::memset0(mRotOffset); }
|
|
|
|
bool valid() { return m.valid(); }
|
|
|
|
bool close() { return m.close(); }
|
|
|
|
uint32_t size() const { return m.bufSz(); }
|
|
|
|
// Max rotator buffers
|
|
|
|
enum { ROT_NUM_BUFS = 2 };
|
|
|
|
// rotator data info dst offset
|
|
|
|
uint32_t mRotOffset[ROT_NUM_BUFS];
|
|
|
|
// current offset slot from mRotOffset
|
|
|
|
uint32_t mCurrOffset;
|
|
|
|
OvMem m;
|
|
|
|
};
|
|
|
|
|
|
|
|
RotMem() : _curr(0) {}
|
|
|
|
Mem& curr() { return m[_curr % MAX_ROT_MEM]; }
|
|
|
|
const Mem& curr() const { return m[_curr % MAX_ROT_MEM]; }
|
|
|
|
Mem& prev() { return m[(_curr+1) % MAX_ROT_MEM]; }
|
|
|
|
RotMem& operator++() { ++_curr; return *this; }
|
|
|
|
bool close();
|
|
|
|
uint32_t _curr;
|
|
|
|
Mem m[MAX_ROT_MEM];
|
|
|
|
};
|
2012-06-14 07:56:20 +00:00
|
|
|
|
|
|
|
/*
|
2012-07-10 20:07:52 +00:00
|
|
|
* MDP rot holds MDP's rotation related structures.
|
|
|
|
*
|
2012-06-14 07:56:20 +00:00
|
|
|
* */
|
2012-07-10 20:07:52 +00:00
|
|
|
class MdpRot : public IRotatorHw {
|
2012-06-14 07:56:20 +00:00
|
|
|
public:
|
2012-07-10 20:07:52 +00:00
|
|
|
explicit MdpRot();
|
|
|
|
~MdpRot();
|
|
|
|
bool init();
|
|
|
|
bool close();
|
|
|
|
void setSource(const utils::Whf& whf);
|
2012-07-16 21:51:28 +00:00
|
|
|
virtual void setFlags(const utils::eMdpFlags& flags);
|
2012-07-10 20:07:52 +00:00
|
|
|
void setTransform(const utils::eTransform& rot,
|
|
|
|
const bool& rotUsed);
|
|
|
|
bool commit();
|
|
|
|
bool queueBuffer(int fd, uint32_t offset);
|
|
|
|
void setEnable();
|
|
|
|
void setDisable();
|
|
|
|
void setRotations(uint32_t r);
|
2012-07-16 21:51:28 +00:00
|
|
|
void setSrcFB();
|
2012-07-10 20:07:52 +00:00
|
|
|
bool enabled() const;
|
|
|
|
int getSessId() const;
|
2012-06-14 07:56:20 +00:00
|
|
|
int getDstMemId() const;
|
|
|
|
uint32_t getDstOffset() const;
|
2012-07-10 20:07:52 +00:00
|
|
|
void dump() const;
|
2012-06-14 07:56:20 +00:00
|
|
|
|
|
|
|
private:
|
2012-07-10 20:07:52 +00:00
|
|
|
/* remap rot buffers */
|
|
|
|
bool remap(uint32_t numbufs);
|
|
|
|
bool open_i(uint32_t numbufs, uint32_t bufsz);
|
2012-07-16 21:51:28 +00:00
|
|
|
/* Deferred transform calculations */
|
|
|
|
void doTransform();
|
2012-07-10 20:07:52 +00:00
|
|
|
/* reset underlying data, basically memset 0 */
|
|
|
|
void reset();
|
2012-06-14 07:56:20 +00:00
|
|
|
|
2012-07-10 20:07:52 +00:00
|
|
|
/* rot info*/
|
|
|
|
msm_rotator_img_info mRotImgInfo;
|
|
|
|
/* rot data */
|
|
|
|
msm_rotator_data_info mRotDataInfo;
|
2012-07-16 21:51:28 +00:00
|
|
|
/* Orientation */
|
|
|
|
utils::eTransform mOrientation;
|
2012-07-10 20:07:52 +00:00
|
|
|
/* rotator fd */
|
|
|
|
OvFD mFd;
|
|
|
|
/* Rotator memory manager */
|
|
|
|
RotMem mMem;
|
|
|
|
/* Single Rotator buffer size */
|
|
|
|
uint32_t mBufSize;
|
2012-06-14 07:56:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
//--------------inlines------------------------------------
|
|
|
|
|
|
|
|
///// Rotator /////
|
2012-07-10 20:07:52 +00:00
|
|
|
inline Rotator::Rotator() {
|
|
|
|
int type = IRotatorHw::getRotatorHwType();
|
|
|
|
if(type == IRotatorHw::TYPE_MDP) {
|
|
|
|
mRot = new MdpRot(); //will do reset
|
|
|
|
} else if(type == IRotatorHw::TYPE_MDSS) {
|
|
|
|
//TODO create mdss specific rotator
|
|
|
|
} else {
|
|
|
|
ALOGE("%s Unknown h/w type %d", __FUNCTION__, type);
|
2012-06-14 07:56:20 +00:00
|
|
|
}
|
|
|
|
}
|
2012-07-10 20:07:52 +00:00
|
|
|
inline Rotator::~Rotator() {
|
|
|
|
delete mRot; //will do close
|
2012-06-14 07:56:20 +00:00
|
|
|
}
|
2012-07-10 20:07:52 +00:00
|
|
|
inline bool Rotator::init() {
|
|
|
|
if(!mRot->init()) {
|
|
|
|
ALOGE("Rotator::init failed");
|
2012-06-14 07:56:20 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
inline bool Rotator::close() {
|
2012-07-10 20:07:52 +00:00
|
|
|
return mRot->close();
|
2012-06-14 07:56:20 +00:00
|
|
|
}
|
2012-07-10 20:07:52 +00:00
|
|
|
inline void Rotator::setSource(const utils::Whf& whf) {
|
|
|
|
mRot->setSource(whf);
|
2012-06-14 07:56:20 +00:00
|
|
|
}
|
2012-07-16 21:51:28 +00:00
|
|
|
inline void Rotator::setFlags(const utils::eMdpFlags& flags) {
|
|
|
|
mRot->setFlags(flags);
|
|
|
|
}
|
2012-07-10 20:07:52 +00:00
|
|
|
inline void Rotator::setTransform(const utils::eTransform& rot,
|
|
|
|
const bool& rotUsed)
|
|
|
|
{
|
|
|
|
mRot->setTransform(rot, rotUsed);
|
2012-06-14 07:56:20 +00:00
|
|
|
}
|
2012-07-10 20:07:52 +00:00
|
|
|
inline bool Rotator::commit() {
|
|
|
|
return mRot->commit();
|
2012-06-14 07:56:20 +00:00
|
|
|
}
|
2012-07-10 20:07:52 +00:00
|
|
|
inline void Rotator::setEnable(){ mRot->setEnable(); }
|
|
|
|
inline void Rotator::setDisable(){ mRot->setDisable(); }
|
|
|
|
inline bool Rotator::enabled() const { return mRot->enabled(); }
|
2012-07-16 21:51:28 +00:00
|
|
|
inline void Rotator::setSrcFB() { mRot->setSrcFB(); }
|
2012-06-14 07:56:20 +00:00
|
|
|
inline int Rotator::getDstMemId() const {
|
2012-07-10 20:07:52 +00:00
|
|
|
return mRot->getDstMemId();
|
2012-06-14 07:56:20 +00:00
|
|
|
}
|
|
|
|
inline uint32_t Rotator::getDstOffset() const {
|
2012-07-10 20:07:52 +00:00
|
|
|
return mRot->getDstOffset();
|
2012-06-14 07:56:20 +00:00
|
|
|
}
|
|
|
|
inline void Rotator::setRotations(uint32_t rot) {
|
2012-07-10 20:07:52 +00:00
|
|
|
mRot->setRotations (rot);
|
2012-06-14 07:56:20 +00:00
|
|
|
}
|
|
|
|
inline int Rotator::getSessId() const {
|
2012-07-10 20:07:52 +00:00
|
|
|
return mRot->getSessId();
|
|
|
|
}
|
2012-06-14 07:56:20 +00:00
|
|
|
inline void Rotator::dump() const {
|
|
|
|
ALOGE("== Dump Rotator start ==");
|
2012-07-10 20:07:52 +00:00
|
|
|
mRot->dump();
|
2012-06-14 07:56:20 +00:00
|
|
|
ALOGE("== Dump Rotator end ==");
|
|
|
|
}
|
2012-07-10 20:07:52 +00:00
|
|
|
inline bool Rotator::queueBuffer(int fd, uint32_t offset) {
|
|
|
|
return mRot->queueBuffer(fd, offset);
|
2012-06-14 07:56:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2012-07-10 20:07:52 +00:00
|
|
|
///// Null Rotator /////
|
|
|
|
inline NullRotator::~NullRotator() {}
|
|
|
|
inline bool NullRotator::init() { return true; }
|
|
|
|
inline bool NullRotator::close() { return true; }
|
|
|
|
inline bool NullRotator::commit() { return true; }
|
|
|
|
inline void NullRotator::setSource(const utils::Whf& wfh) {}
|
2012-07-16 21:51:28 +00:00
|
|
|
inline void NullRotator::setFlags(const utils::eMdpFlags& flags) {}
|
2012-07-10 20:07:52 +00:00
|
|
|
inline void NullRotator::setTransform(const utils::eTransform& rot, const bool&)
|
|
|
|
{}
|
|
|
|
inline void NullRotator::setRotations(uint32_t) {}
|
|
|
|
inline void NullRotator::setEnable() {}
|
|
|
|
inline void NullRotator::setDisable() {}
|
|
|
|
inline bool NullRotator::enabled() const { return false; }
|
|
|
|
inline int NullRotator::getSessId() const { return -1; }
|
|
|
|
inline bool NullRotator::queueBuffer(int fd, uint32_t offset) { return true; }
|
2012-07-16 21:51:28 +00:00
|
|
|
inline void NullRotator::setSrcFB() {}
|
2012-07-10 20:07:52 +00:00
|
|
|
inline int NullRotator::getDstMemId() const { return -1; }
|
|
|
|
inline uint32_t NullRotator::getDstOffset() const { return 0;}
|
|
|
|
inline void NullRotator::dump() const {
|
|
|
|
ALOGE("== Dump NullRotator dump (null) start/end ==");
|
2012-06-14 07:56:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2012-07-10 20:07:52 +00:00
|
|
|
//// MdpRot ////
|
|
|
|
inline MdpRot::MdpRot() { reset(); }
|
|
|
|
inline MdpRot::~MdpRot() { close(); }
|
|
|
|
inline void MdpRot::setEnable() { mRotImgInfo.enable = 1; }
|
|
|
|
inline void MdpRot::setDisable() { mRotImgInfo.enable = 0; }
|
|
|
|
inline bool MdpRot::enabled() const { return mRotImgInfo.enable; }
|
|
|
|
inline void MdpRot::setRotations(uint32_t r) { mRotImgInfo.rotations = r; }
|
|
|
|
inline int MdpRot::getDstMemId() const {
|
|
|
|
return mRotDataInfo.dst.memory_id;
|
2012-06-14 07:56:20 +00:00
|
|
|
}
|
2012-07-10 20:07:52 +00:00
|
|
|
inline uint32_t MdpRot::getDstOffset() const {
|
|
|
|
return mRotDataInfo.dst.offset;
|
|
|
|
}
|
|
|
|
inline int MdpRot::getSessId() const { return mRotImgInfo.session_id; }
|
2012-07-16 21:51:28 +00:00
|
|
|
inline void MdpRot::setSrcFB() {
|
|
|
|
mRotDataInfo.src.flags |= MDP_MEMORY_ID_TYPE_FB;
|
2012-06-14 07:56:20 +00:00
|
|
|
}
|
|
|
|
|
2012-07-10 20:07:52 +00:00
|
|
|
} // overlay
|
|
|
|
|
|
|
|
#endif // OVERlAY_ROTATOR_H
|