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 { struct
161 Dim () : x(0), y(0), in Dim() argument
164 Dim(uint32_t _x, uint32_t _y, uint32_t _w, uint32_t _h) : in Dim() argument
167 Dim(uint32_t _x, uint32_t _y, uint32_t _w, uint32_t _h, uint32_t _o) : in Dim() argument
176 bool operator==(const Dim& d) const { argument
182 bool operator!=(const Dim& d) const {
576 inline void Dim::dump() const { in dump()
582 inline Dim getPositionS3DImpl(const Whf& whf) in getPositionS3DImpl()
588 return Dim(0, 0, whf.w/2, whf.h); in getPositionS3DImpl()
590 return Dim(0, 0, whf.w, whf.h/2); in getPositionS3DImpl()
592 return Dim(); in getPositionS3DImpl()
596 return Dim(); in getPositionS3DImpl()
601 return Dim(); in getPositionS3DImpl()
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) { in getPositionS3D()
629 return (out != Dim()); in getPositionS3D()
633 inline Dim getCropS3DImpl(const Dim& in, uint32_t fmt) { in getCropS3DImpl()
637 return Dim(0, 0, in.w/2, in.h); in getCropS3DImpl()
639 return Dim(in.w/2, 0, in.w/2, in.h); in getCropS3DImpl()
641 return Dim(0, 0, in.w, in.h/2); in getCropS3DImpl()
649 return Dim(); in getCropS3DImpl()
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) in getCropS3D()
676 return (out != Dim()); in getCropS3D()
709 void preRotateSource(const eTransform& tr, Whf& whf, Dim& srcCrop);