Lines Matching refs:Dim

95 struct Dim;
148 bool getPositionS3D(const Whf& whf, Dim& out);
151 bool getCropS3D(const Dim& in, Dim& out, uint32_t fmt);
156 struct Dim { struct
157 Dim () : x(0), y(0), in Dim() argument
160 Dim(uint32_t _x, uint32_t _y, uint32_t _w, uint32_t _h) : in Dim() function
163 Dim(uint32_t _x, uint32_t _y, uint32_t _w, uint32_t _h, uint32_t _o) : in Dim() argument
172 bool operator==(const Dim& d) const { argument
178 bool operator!=(const Dim& d) const {
555 inline void Dim::dump() const { in dump()
584 inline Dim getPositionS3DImpl(const Whf& whf) in getPositionS3DImpl()
590 return Dim(0, 0, whf.w/2, whf.h); in getPositionS3DImpl()
592 return Dim(0, 0, whf.w, whf.h/2); in getPositionS3DImpl()
594 return Dim(); in getPositionS3DImpl()
598 return Dim(); in getPositionS3DImpl()
603 return Dim(); in getPositionS3DImpl()
607 inline Dim getPositionS3DImpl<utils::OV_RIGHT_SPLIT>(const Whf& whf)
612 return Dim(whf.w/2, 0, whf.w/2, whf.h);
614 return Dim(0, whf.h/2, whf.w, whf.h/2);
616 return Dim(0, 0, whf.w, whf.h);
620 return Dim();
625 return Dim();
629 inline bool getPositionS3D(const Whf& whf, Dim& out) { in getPositionS3D()
631 return (out != Dim()); in getPositionS3D()
635 inline Dim getCropS3DImpl(const Dim& in, uint32_t fmt) { in getCropS3DImpl()
639 return Dim(0, 0, in.w/2, in.h); in getCropS3DImpl()
641 return Dim(in.w/2, 0, in.w/2, in.h); in getCropS3DImpl()
643 return Dim(0, 0, in.w, in.h/2); in getCropS3DImpl()
651 return Dim(); in getCropS3DImpl()
655 inline Dim getCropS3DImpl<utils::OV_RIGHT_SPLIT>(const Dim& in, uint32_t fmt) {
659 return Dim(in.w/2, 0, in.w/2, in.h);
661 return Dim(0, 0, in.w/2, in.h);
663 return Dim(0, in.h/2, in.w, in.h/2);
671 return Dim();
675 inline bool getCropS3D(const Dim& in, Dim& out, uint32_t fmt) in getCropS3D()
678 return (out != Dim()); in getCropS3D()
711 void preRotateSource(const eTransform& tr, Whf& whf, Dim& srcCrop);