Skip to content

Instantly share code, notes, and snippets.

D [sip-1] | Wicca_Voip_SIPLogger | 12:44:04.466 pjsua_core.c ....TX 1277 bytes Request msg INVITE/cseq=1868 (tdta0x9e35e000) to TCP 54.165.36.21:5080:
D INVITE sip:[email protected];transport=TCP SIP/2.0
D Via: SIP/2.0/TCP 172.16.44.68:33531;rport;branch=z9hG4bKPjw.NE0UFfEb8ABYTI2jtobiFl.BE2EWsL;alias
D Max-Forwards: 70
D From: sip:[email protected];tag=0UjIpKCBR1O5sZjaIq6gu1KbV-twoqD3
D To: sip:[email protected]
D Contact: <sip:[email protected]:33531;transport=TCP;ob>
D Call-ID: JAg622inL-PTX5Kc.LEEiCV1vQvxqJOQ
D CSeq: 1868 INVITE
D Route: <sip:clotho-staging.talk.to:5080;transport=TCP;lr>
public float[] transformCoordinates(float x, float y) {
float [] coordinates = new float [] {x, y};
Matrix matrix = new Matrix();
this.getImageMatrix().invert(matrix); // Inside a class that extends ImageView. Hence this->ImageView
matrix.postTranslate(this.getScrollX(), this.getScrollY());
matrix.mapPoints(coordinates);
return coordinates;
}