public class ImageFormat extends Object
ImageFormat objects have three members: a name, a unique index,
and a ResolutionInfo object which provides information on
supported capture resolutions and frame intervals for this format.
A list of known image format indexes can be found in
V4L4JConstants.IMF_*.
ImageFormats
are not directly instantiated. Instead, they can be enumerated by instantiating
a VideoDevice, and checking the DeviceInfo object associated
with it:
VideoDevice vd = new VideoDevice("/dev/video0");
vd.init();
List fmts = vd.getDeviceInfo().getFormatList().getNativeFormats();
for(ImageFormat im: fmts)
System.out.println("Format name: "+im);
vd.release();
ImageFormatList documentation for more information.ImageFormatList| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
getIndex()
This method returns the index for this format.
|
String |
getName()
This method returns the name of this image format.
|
ResolutionInfo |
getResolutionInfo()
This method returns the
ResolutionInfo object associated with
this image format. |
int |
hashCode() |
String |
toNiceString() |
String |
toString() |
public ResolutionInfo getResolutionInfo()
ResolutionInfo object associated with
this image format. ResolutionInfo objects provide information
on supported capture resolutions and frame intervals.ResolutionInfo object associated with
this image format.public String getName()
public int getIndex()
V4L4JConstants
(V4L4JConstants.IMF_*).public String toNiceString()
Copyright © 2013-2015 Bartosz Firyn (sarxos). All Rights Reserved.