Home | History | Annotate | Download | only in liboverlay

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 {
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 {
555 inline void Dim::dump() const {
556 ALOGE("== Dump Dim x=%d y=%d w=%d h=%d start/end ==", x, y, w, h);
584 inline Dim getPositionS3DImpl(const Whf& whf)
590 return Dim(0, 0, whf.w/2, whf.h);
592 return Dim(0, 0, whf.w, whf.h/2);
594 return Dim();
598 return Dim();
603 return Dim();
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) {
631 return (out != Dim());
635 inline Dim getCropS3DImpl(const Dim& in, uint32_t fmt) {
639 return Dim(0, 0, in.w/2, in.h);
641 return Dim(in.w/2, 0, in.w/2, in.h);
643 return Dim(0, 0, in.w, in.h/2);
651 return Dim();
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)
678 return (out != Dim());
711 void preRotateSource(const eTransform& tr, Whf& whf, Dim& srcCrop);