Home | History | Annotate | Download | only in liboverlay

Lines Matching refs:Dim

94 struct Dim;
148 bool getPositionS3D(const Whf& whf, Dim& out);
151 bool getCropS3D(const Dim& in, Dim& out, uint32_t fmt);
156 struct Dim {
157 Dim () : x(0), y(0),
160 Dim(uint32_t _x, uint32_t _y, uint32_t _w, uint32_t _h) :
163 Dim(uint32_t _x, uint32_t _y, uint32_t _w, uint32_t _h, uint32_t _o) :
172 bool operator==(const Dim& d) const {
178 bool operator!=(const Dim& d) const {
556 inline void Dim::dump() const {
557 ALOGE("== Dump Dim x=%d y=%d w=%d h=%d start/end ==", x, y, w, h);
562 inline Dim getPositionS3DImpl(const Whf& whf)
568 return Dim(0, 0, whf.w/2, whf.h);
570 return Dim(0, 0, whf.w, whf.h/2);
572 return Dim();
576 return Dim();
581 return Dim();
585 inline Dim getPositionS3DImpl<utils::OV_RIGHT_SPLIT>(const Whf& whf)
590 return Dim(whf.w/2, 0, whf.w/2, whf.h);
592 return Dim(0, whf.h/2, whf.w, whf.h/2);
594 return Dim(0, 0, whf.w, whf.h);
598 return Dim();
603 return Dim();
607 inline bool getPositionS3D(const Whf& whf, Dim& out) {
609 return (out != Dim());
613 inline Dim getCropS3DImpl(const Dim& in, uint32_t fmt) {
617 return Dim(0, 0, in.w/2, in.h);
619 return Dim(in.w/2, 0, in.w/2, in.h);
621 return Dim(0, 0, in.w, in.h/2);
629 return Dim();
633 inline Dim getCropS3DImpl<utils::OV_RIGHT_SPLIT>(const Dim& in, uint32_t fmt) {
637 return Dim(in.w/2, 0, in.w/2, in.h);
639 return Dim(0, 0, in.w/2, in.h);
641 return Dim(0, in.h/2, in.w, in.h/2);
649 return Dim();
653 inline bool getCropS3D(const Dim& in, Dim& out, uint32_t fmt)
656 return (out != Dim());
689 void preRotateSource(const eTransform& tr, Whf& whf, Dim& srcCrop);