Package com.avpkit.mediatool.event
Class VideoPictureEvent
- java.lang.Object
-
- com.avpkit.mediatool.event.AEventMixin
-
- com.avpkit.mediatool.event.AStreamMixin
-
- com.avpkit.mediatool.event.ARawMediaMixin
-
- com.avpkit.mediatool.event.VideoPictureEvent
-
- All Implemented Interfaces:
IEvent,IRawMediaEvent,IStreamEvent,IVideoPictureEvent
public class VideoPictureEvent extends ARawMediaMixin implements IVideoPictureEvent
An implementation ofIVideoPictureEvent.- Author:
- aclarke
-
-
Constructor Summary
Constructors Constructor Description VideoPictureEvent(IMediaGenerator source, IVideoPicture picture, java.awt.image.BufferedImage image, long timeStamp, java.util.concurrent.TimeUnit timeUnit, java.lang.Integer streamIndex)Creates aVideoPictureEvent.VideoPictureEvent(IMediaGenerator source, IVideoPicture picture, java.lang.Integer streamIndex)Creates aVideoPictureEvent.VideoPictureEvent(IMediaGenerator source, java.awt.image.BufferedImage image, long timeStamp, java.util.concurrent.TimeUnit timeUnit, java.lang.Integer streamIndex)Creates aVideoPictureEvent.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.image.BufferedImagegetImage()An implementation ofIVideoPictureEvent.getImage().java.awt.image.BufferedImagegetJavaData()An implementation ofIVideoPictureEvent.getJavaData().IVideoPicturegetMediaData()An implementation ofIVideoPictureEvent.getMediaData().IVideoPicturegetPicture()An implementation ofIVideoPictureEvent.getPicture().-
Methods inherited from class com.avpkit.mediatool.event.ARawMediaMixin
getTimeStamp, getTimeStamp, getTimeUnit
-
Methods inherited from class com.avpkit.mediatool.event.AStreamMixin
getStreamIndex
-
Methods inherited from class com.avpkit.mediatool.event.AEventMixin
getSource
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.avpkit.mediatool.event.IRawMediaEvent
getTimeStamp, getTimeStamp, getTimeUnit
-
Methods inherited from interface com.avpkit.mediatool.event.IStreamEvent
getStreamIndex
-
-
-
-
Constructor Detail
-
VideoPictureEvent
public VideoPictureEvent(IMediaGenerator source, IVideoPicture picture, java.awt.image.BufferedImage image, long timeStamp, java.util.concurrent.TimeUnit timeUnit, java.lang.Integer streamIndex)
- Parameters:
source- the source of this event.picture- the rawIVideoPicturefor this event. Can be null ifimageis not null.image- the rawBufferedImagefor this event. Can be null ifpictureis not null.timeStamp- ifimageis not null, this is the timeStamp ofimagetimeUnit- ifimageis not null, this is the timeUnit oftimeStampstreamIndex- the stream this event occurred on, or null if unknown.- Throws:
java.lang.IllegalArgumentException- if bothpictureandimageare null.
-
VideoPictureEvent
public VideoPictureEvent(IMediaGenerator source, IVideoPicture picture, java.lang.Integer streamIndex)
Creates aVideoPictureEvent.- Parameters:
source- the source of this event.picture- the rawIVideoPicturefor this event.streamIndex- the stream this event occurred on, or null if unknown.- Throws:
java.lang.IllegalArgumentException- if picture is null.
-
VideoPictureEvent
public VideoPictureEvent(IMediaGenerator source, java.awt.image.BufferedImage image, long timeStamp, java.util.concurrent.TimeUnit timeUnit, java.lang.Integer streamIndex)
Creates aVideoPictureEvent.- Parameters:
source- the source of this event.image- the rawBufferedImagefor this event.timeStamp- the timeStamp ofimagetimeUnit- the timeUnit oftimeStampstreamIndex- the stream this event occurred on, or null if unknown.- Throws:
java.lang.IllegalArgumentException- if image is null.
-
-
Method Detail
-
getMediaData
public IVideoPicture getMediaData()
An implementation ofIVideoPictureEvent.getMediaData().- Specified by:
getMediaDatain interfaceIRawMediaEvent- Specified by:
getMediaDatain interfaceIVideoPictureEvent- Overrides:
getMediaDatain classARawMediaMixin- Returns:
- the media data, or null if unavailable
- See Also:
IVideoPictureEvent.getMediaData()
-
getPicture
public IVideoPicture getPicture()
An implementation ofIVideoPictureEvent.getPicture().- Specified by:
getPicturein interfaceIVideoPictureEvent- See Also:
IVideoPictureEvent.getPicture()
-
getImage
public java.awt.image.BufferedImage getImage()
An implementation ofIVideoPictureEvent.getImage().- Specified by:
getImagein interfaceIVideoPictureEvent- Returns:
- the bufferedImage, or null if not available
- See Also:
IVideoPictureEvent.getImage()
-
getJavaData
public java.awt.image.BufferedImage getJavaData()
An implementation ofIVideoPictureEvent.getJavaData().- Specified by:
getJavaDatain interfaceIRawMediaEvent- Specified by:
getJavaDatain interfaceIVideoPictureEvent- Overrides:
getJavaDatain classARawMediaMixin- Returns:
- the object, or null if not available
- See Also:
IVideoPictureEvent.getJavaData()
-
-