|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.umd.cfar.lamp.mpeg1.video.GroupOfPicturesIndex
Indexes within a Group of Pictures.
Constructor Summary | |
GroupOfPicturesIndex()
|
Method Summary | |
void |
addPicture(long startPosition,
long dataSize,
byte type,
int displayOrder)
Adds a GroupOfPicturesIndexElement , which
represents one picture (frame) in the Group of Pictures, to
the index. |
java.util.Vector |
getElementsInCodingOrder()
|
java.util.Vector |
getElementsInDisplayOrder()
|
int |
getLastIOrPPicture()
|
int |
getLastIOrPPicture(int n)
|
long |
getPositionOfPicture(int n)
|
long |
getPositionOfPictureInCodingOrder(int n)
|
byte |
getTypeOfPicture(int n)
|
byte |
getTypeOfPictureInCodingOrder(int n)
Returns the type of the (0-based) frame in coding order. |
int |
mapCodingOrderToDisplayOrder(int codingOrder)
Maps a (0-based) frame in coding order to a (0-based) frame in display order. |
int |
mapDisplayOrderToCodingOrder(int displayOrder)
Maps a (0-based) frame in dislay order to a (0-based) frame in coding order. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public GroupOfPicturesIndex()
Method Detail |
public void addPicture(long startPosition, long dataSize, byte type, int displayOrder)
GroupOfPicturesIndexElement
, which
represents one picture (frame) in the Group of Pictures, to
the index.
startPosition
- the start positiondataSize
- the data lengthtype
- displayOrder
- public long getPositionOfPicture(int n) throws FrameNotFoundException
n
- the frame
n
th picture (frame) in this Group
Of Pictures (in display order).
FrameNotFoundException
public int getLastIOrPPicture(int n) throws FrameNotFoundException
FrameNotFoundException
public int getLastIOrPPicture() throws FrameNotFoundException
FrameNotFoundException
public long getPositionOfPictureInCodingOrder(int n) throws FrameNotFoundException
FrameNotFoundException
public java.util.Vector getElementsInDisplayOrder()
Vector of GroupOfPicturesIndexElement
s in display order.
public java.util.Vector getElementsInCodingOrder()
Vector of GroupOfPicturesIndexElement
s in coding order.
public int mapDisplayOrderToCodingOrder(int displayOrder) throws FrameNotFoundException
displayOrder
-
FrameNotFoundException
public int mapCodingOrderToDisplayOrder(int codingOrder) throws FrameNotFoundException
codingOrder
-
FrameNotFoundException
public byte getTypeOfPictureInCodingOrder(int n) throws FrameNotFoundException
n
-
FrameNotFoundException
public byte getTypeOfPicture(int n) throws FrameNotFoundException
FrameNotFoundException
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |