[libbluray-devel] Cosmetics
hpi1
git at videolan.org
Fri May 22 11:20:20 CEST 2015
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Fri May 22 12:18:51 2015 +0300| [27aa645df4955654d2ffff6bb1e5777c4ab70ee8] | committer: hpi1
Cosmetics
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=27aa645df4955654d2ffff6bb1e5777c4ab70ee8
---
.../BackgroundVideoPresentationControlImpl.java | 56 ++++++++++----------
.../BackgroundVideoPresentationControlImpl.java | 30 +++++------
2 files changed, 43 insertions(+), 43 deletions(-)
diff --git a/src/libbluray/bdj/java/org/videolan/media/content/playlist/BackgroundVideoPresentationControlImpl.java b/src/libbluray/bdj/java/org/videolan/media/content/playlist/BackgroundVideoPresentationControlImpl.java
index 05ae554..6982eac 100644
--- a/src/libbluray/bdj/java/org/videolan/media/content/playlist/BackgroundVideoPresentationControlImpl.java
+++ b/src/libbluray/bdj/java/org/videolan/media/content/playlist/BackgroundVideoPresentationControlImpl.java
@@ -99,40 +99,40 @@ public class BackgroundVideoPresentationControlImpl extends VideoControl
return new AWTVideoSize(
new Rectangle(vd.width, vd.height),
new Rectangle(sd.width, sd.height));
- }
+ }
- public Dimension getSourceVideoSize() {
- return getVideoSize();
- }
+ public Dimension getSourceVideoSize() {
+ return getVideoSize();
+ }
- public boolean setSize(AWTVideoSize size) {
- setClipRegion(size.getSource());
- setVideoArea(getNormalizedRectangle(getScreenSize(), size.getDestination()));
- return true;
- }
+ public boolean setSize(AWTVideoSize size) {
+ setClipRegion(size.getSource());
+ setVideoArea(getNormalizedRectangle(getScreenSize(), size.getDestination()));
+ return true;
+ }
- public AWTVideoSize checkSize(AWTVideoSize size) {
- Dimension vd = getInputVideoSize();
- Rectangle sr = size.getSource();
- if (sr.x < 0)
+ public AWTVideoSize checkSize(AWTVideoSize size) {
+ Dimension vd = getInputVideoSize();
+ Rectangle sr = size.getSource();
+ if (sr.x < 0)
+ sr.x = 0;
+ if ((sr.x + sr.width) > vd.width) {
+ sr.width = vd.width - sr.x;
+ if (sr.width <= 0) {
sr.x = 0;
- if ((sr.x + sr.width) > vd.width) {
- sr.width = vd.width - sr.x;
- if (sr.width <= 0) {
- sr.x = 0;
- sr.width = 0;
- }
+ sr.width = 0;
}
- if (sr.y < 0)
+ }
+ if (sr.y < 0)
+ sr.y = 0;
+ if ((sr.y + sr.height) > vd.height) {
+ sr.height = vd.height - sr.y;
+ if (sr.height <= 0) {
sr.y = 0;
- if ((sr.y + sr.height) > vd.height) {
- sr.height = vd.height - sr.y;
- if (sr.height <= 0) {
- sr.y = 0;
- sr.height = 0;
- }
+ sr.height = 0;
}
- Rectangle dr = size.getDestination();
- return new AWTVideoSize(sr, dr);
}
+ Rectangle dr = size.getDestination();
+ return new AWTVideoSize(sr, dr);
+ }
}
diff --git a/src/libbluray/bdj/java/org/videolan/media/content/video/dvb/mpeg/drip/BackgroundVideoPresentationControlImpl.java b/src/libbluray/bdj/java/org/videolan/media/content/video/dvb/mpeg/drip/BackgroundVideoPresentationControlImpl.java
index 3596def..377aacc 100644
--- a/src/libbluray/bdj/java/org/videolan/media/content/video/dvb/mpeg/drip/BackgroundVideoPresentationControlImpl.java
+++ b/src/libbluray/bdj/java/org/videolan/media/content/video/dvb/mpeg/drip/BackgroundVideoPresentationControlImpl.java
@@ -100,23 +100,23 @@ public class BackgroundVideoPresentationControlImpl extends VideoControl
Rectangle sr = size.getSource();
if (sr.x < 0)
sr.x = 0;
- if ((sr.x + sr.width) > vd.width) {
- sr.width = vd.width - sr.x;
- if (sr.width <= 0) {
- sr.x = 0;
- sr.width = 0;
- }
+ if ((sr.x + sr.width) > vd.width) {
+ sr.width = vd.width - sr.x;
+ if (sr.width <= 0) {
+ sr.x = 0;
+ sr.width = 0;
}
- if (sr.y < 0)
+ }
+ if (sr.y < 0)
+ sr.y = 0;
+ if ((sr.y + sr.height) > vd.height) {
+ sr.height = vd.height - sr.y;
+ if (sr.height <= 0) {
sr.y = 0;
- if ((sr.y + sr.height) > vd.height) {
- sr.height = vd.height - sr.y;
- if (sr.height <= 0) {
- sr.y = 0;
- sr.height = 0;
- }
+ sr.height = 0;
}
- Rectangle dr = size.getDestination();
- return new AWTVideoSize(sr, dr);
+ }
+ Rectangle dr = size.getDestination();
+ return new AWTVideoSize(sr, dr);
}
}
More information about the libbluray-devel
mailing list