|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdeadbeef.SupTools.SubPicture
public class SubPicture
Stores information about one subpicture frame.
Note: image related members are private and need getters to allow more complex access functions
for BD-SUPs. Indeed the class SubPictureBD doesn't access the image width/height and offsets of the
parent class at all. Only when the copy function is used to create a SubPicture copy from a
SubPictureBD instance, these members are filled correctly.
This also means that the setter functions for these members are pretty much useless as they
only change the members of the parent class, but don't influence the values returned by the getters.
This is a little unclean but by design to not allow write access to the internal structures.
Field Summary | |
---|---|
long |
endTime
end time in milliseconds |
java.util.ArrayList<ErasePatch> |
erasePatch
list of erase patches |
boolean |
exclude
exclude from export? |
int |
height
screen height |
boolean |
isforced
if true, this is a forced subtitle |
long |
startTime
start time in milliseconds |
int |
width
screen width |
Constructor Summary | |
---|---|
SubPicture()
|
Method Summary | |
---|---|
SubPicture |
clone()
|
SubPicture |
copy()
Allows to get a clone of the parent object even for SubPictureBD objects. |
int |
getImageHeight()
get image height |
int |
getImageWidth()
get image width |
int |
getOfsX()
get image x offset |
int |
getOfsY()
get image y offset |
void |
setImageHeight(int h)
Set image height |
void |
setImageWidth(int w)
Set image width |
void |
setOfsX(int ofs)
Set image x offset |
void |
setOfsY(int ofs)
Set image y offset |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int width
public int height
public long startTime
public long endTime
public boolean isforced
public boolean exclude
public java.util.ArrayList<ErasePatch> erasePatch
Constructor Detail |
---|
public SubPicture()
Method Detail |
---|
public SubPicture copy()
public int getImageWidth()
public int getImageHeight()
public int getOfsX()
public int getOfsY()
public void setImageWidth(int w)
w
- width in pixelspublic void setImageHeight(int h)
h
- height in pixelspublic void setOfsX(int ofs)
ofs
- offset in pixelspublic void setOfsY(int ofs)
ofs
- offset in pixelspublic SubPicture clone()
clone
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |