mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
Added convenient methods isPortrait(), createInverted()
This commit is contained in:
parent
684c6fa545
commit
e76588265b
1 changed files with 10 additions and 0 deletions
|
|
@ -83,5 +83,15 @@ public final class VideoSize {
|
|||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "width = "+width + " height = " + height;
|
||||
}
|
||||
public boolean isPortrait() {
|
||||
return height >= width;
|
||||
}
|
||||
public VideoSize createInverted() {
|
||||
return new VideoSize(height, width);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue