Home | History | Annotate | Download | only in liboverlay

Lines Matching refs:Dim

98 struct Dim;
152 bool getPositionS3D(const Whf& whf, Dim& out);
155 bool getCropS3D(const Dim& in, Dim& out, uint32_t fmt);
160 struct Dim {
161 Dim () : x(0), y(0),
164 Dim(uint32_t _x, uint32_t _y, uint32_t _w, uint32_t _h) :
167 Dim(uint32_t _x, uint32_t _y, uint32_t _w, uint32_t _h, uint32_t _o) :
176 bool operator==(const Dim& d) const {
182 bool operator!=(const Dim& d) const {
576 inline void Dim::dump() const {
577 ALOGE("== Dump Dim x=%d y=%d w=%d h=%d start/end ==", x, y, w, h);
582 inline Dim getPositionS3DImpl(const Whf& whf)
588 return Dim(0, 0, whf.w/2, whf.h);
590 return Dim(0, 0, whf.w, whf.h/2);
592 return Dim();
596 return Dim();
601 return Dim();
605 inline Dim getPositionS3DImpl<utils::OV_RIGHT_SPLIT>(const Whf& whf)
610 return Dim(whf.w/2, 0, whf.w/2, whf.h);
612 return Dim(0, whf.h/2, whf.w, whf.h/2);
614 return Dim(0, 0, whf.w, whf.h);
618 return Dim();
623 return Dim();
627 inline bool getPositionS3D(const Whf& whf, Dim& out) {
629 return (out != Dim());
633 inline Dim getCropS3DImpl(const Dim& in, uint32_t fmt) {
637 return Dim(0, 0, in.w/2, in.h);
639 return Dim(in.w/2, 0, in.w/2, in.h);
641 return Dim(0, 0, in.w, in.h/2);
649 return Dim();
653 inline Dim getCropS3DImpl<utils::OV_RIGHT_SPLIT>(const Dim& in, uint32_t fmt) {
657 return Dim(in.w/2, 0, in.w/2, in.h);
659 return Dim(0, 0, in.w/2, in.h);
661 return Dim(0, in.h/2, in.w, in.h/2);
669 return Dim();
673 inline bool getCropS3D(const Dim& in, Dim& out, uint32_t fmt)
676 return (out != Dim());
709 void preRotateSource(const eTransform& tr, Whf& whf, Dim& srcCrop);