|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.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.
getElementsInCodingOrder
public java.util.Vector getElementsInCodingOrder()
- Returns:
- a
Vector of GroupOfPicturesIndexElement
s in coding order.
mapDisplayOrderToCodingOrder
public int mapDisplayOrderToCodingOrder(int displayOrder)
throws FrameNotFoundException
- Maps a (0-based) frame in dislay order to a (0-based) frame in coding order.
- Parameters:
displayOrder
-
- Returns:
-
- Throws:
FrameNotFoundException
mapCodingOrderToDisplayOrder
public int mapCodingOrderToDisplayOrder(int codingOrder)
throws FrameNotFoundException
- Maps a (0-based) frame in coding order to a (0-based) frame in display order.
- Parameters:
codingOrder
-
- Returns:
-
- Throws:
FrameNotFoundException
getTypeOfPictureInCodingOrder
public byte getTypeOfPictureInCodingOrder(int n)
throws FrameNotFoundException
- Returns the type of the (0-based) frame in coding order.
- Parameters:
n
-
- Returns:
-
- Throws:
FrameNotFoundException
getTypeOfPicture
public byte getTypeOfPicture(int n)
throws FrameNotFoundException
- Throws:
FrameNotFoundException
toString
public java.lang.String toString()
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD