文件名称:VideoTransmit.java.rar
介绍说明--下载内容均来自于网络,请自行研究使用
Then check for the output format.
if (owner instanceof Codec) {
Format fmts[] = ((Codec)owner).getSupportedOutputFormats(null)
for (int j = 0 j < fmts.length j++) {
if (fmts[j].matches(jpegFmt)) {
qc = (QualityControl)cs[i]
qc.setQuality(val)
System.err.println("- Setting quality to " +
val + " on " + qc)
break
}
}
}
if (qc != null)
break
}
,Then check for the output format.
if (owner instanceof Codec) {
Format fmts[] = ((Codec)owner).getSupportedOutputFormats(null)
for (int j = 0 j < fmts.length j++) {
if (fmts[j].matches(jpegFmt)) {
qc = (QualityControl)cs[i]
qc.setQuality(val)
System.err.println("- Setting quality to " +
val + " on " + qc)
break
}
}
}
if (qc != null)
break
}
if (owner instanceof Codec) {
Format fmts[] = ((Codec)owner).getSupportedOutputFormats(null)
for (int j = 0 j < fmts.length j++) {
if (fmts[j].matches(jpegFmt)) {
qc = (QualityControl)cs[i]
qc.setQuality(val)
System.err.println("- Setting quality to " +
val + " on " + qc)
break
}
}
}
if (qc != null)
break
}
,Then check for the output format.
if (owner instanceof Codec) {
Format fmts[] = ((Codec)owner).getSupportedOutputFormats(null)
for (int j = 0 j < fmts.length j++) {
if (fmts[j].matches(jpegFmt)) {
qc = (QualityControl)cs[i]
qc.setQuality(val)
System.err.println("- Setting quality to " +
val + " on " + qc)
break
}
}
}
if (qc != null)
break
}
(系统自动生成,下载前可以参看下载内容)