本文整理匯總了Java中com.sandrios.sandriosCamera.internal.configuration.CameraConfiguration.MediaQuality方法的典型用法代碼示例。如果您正苦於以下問題:Java CameraConfiguration.MediaQuality方法的具體用法?Java CameraConfiguration.MediaQuality怎麽用?Java CameraConfiguration.MediaQuality使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.sandrios.sandriosCamera.internal.configuration.CameraConfiguration
的用法示例。
在下文中一共展示了CameraConfiguration.MediaQuality方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getCamcorderProfile
import com.sandrios.sandriosCamera.internal.configuration.CameraConfiguration; //導入方法依賴的package包/類
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
public static CamcorderProfile getCamcorderProfile(@CameraConfiguration.MediaQuality int mediaQuality, String cameraId) {
if (TextUtils.isEmpty(cameraId)) {
return null;
}
int cameraIdInt = Integer.parseInt(cameraId);
return getCamcorderProfile(mediaQuality, cameraIdInt);
}
示例2: VideoQualityOption
import com.sandrios.sandriosCamera.internal.configuration.CameraConfiguration; //導入方法依賴的package包/類
public VideoQualityOption(@CameraConfiguration.MediaQuality int mediaQuality, CamcorderProfile camcorderProfile, double videoDuration) {
this.mediaQuality = mediaQuality;
long minutes = TimeUnit.SECONDS.toMinutes((long) videoDuration);
long seconds = ((long) videoDuration) - minutes * 60;
if (mediaQuality == CameraConfiguration.MEDIA_QUALITY_AUTO) {
title = "Auto " + ", (" + (minutes > 10 ? minutes : ("0" + minutes)) + ":" + (seconds > 10 ? seconds : ("0" + seconds)) + " min)";
} else {
title = String.valueOf(camcorderProfile.videoFrameWidth)
+ " x " + String.valueOf(camcorderProfile.videoFrameHeight)
+ (videoDuration <= 0 ? "" : ", (" + (minutes > 10 ? minutes : ("0" + minutes)) + ":" + (seconds > 10 ? seconds : ("0" + seconds)) + " min)");
}
}
示例3: getPhotoSizeForQuality
import com.sandrios.sandriosCamera.internal.configuration.CameraConfiguration; //導入方法依賴的package包/類
@Override
public Size getPhotoSizeForQuality(@CameraConfiguration.MediaQuality int mediaQuality) {
return CameraHelper.getPictureSize(Size.fromList(camera.getParameters().getSupportedPictureSizes()), mediaQuality);
}
示例4: PhotoQualityOption
import com.sandrios.sandriosCamera.internal.configuration.CameraConfiguration; //導入方法依賴的package包/類
public PhotoQualityOption(@CameraConfiguration.MediaQuality int mediaQuality, Size size) {
this.mediaQuality = mediaQuality;
title = String.valueOf(size.getWidth()) + " x " + String.valueOf(size.getHeight());
}
示例5: getMediaQuality
import com.sandrios.sandriosCamera.internal.configuration.CameraConfiguration; //導入方法依賴的package包/類
@CameraConfiguration.MediaQuality
public int getMediaQuality() {
return mediaQuality;
}
示例6: getPhotoSizeForQuality
import com.sandrios.sandriosCamera.internal.configuration.CameraConfiguration; //導入方法依賴的package包/類
@Override
public Size getPhotoSizeForQuality(@CameraConfiguration.MediaQuality int mediaQuality) {
StreamConfigurationMap map = currentCameraId.equals(faceBackCameraId) ? backCameraStreamConfigurationMap : frontCameraStreamConfigurationMap;
return CameraHelper.getPictureSize(Size.fromArray2(map.getOutputSizes(ImageFormat.JPEG)), mediaQuality);
}
示例7: getPhotoSizeForQuality
import com.sandrios.sandriosCamera.internal.configuration.CameraConfiguration; //導入方法依賴的package包/類
Size getPhotoSizeForQuality(@CameraConfiguration.MediaQuality int mediaQuality);