當前位置: 首頁>>代碼示例>>Java>>正文


Java CameraConfiguration.MediaQuality方法代碼示例

本文整理匯總了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);
}
 
開發者ID:MartinRGB,項目名稱:android_camera_experiment,代碼行數:9,代碼來源:CameraHelper.java

示例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)");
    }
}
 
開發者ID:MartinRGB,項目名稱:android_camera_experiment,代碼行數:15,代碼來源:VideoQualityOption.java

示例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);
}
 
開發者ID:MartinRGB,項目名稱:android_camera_experiment,代碼行數:5,代碼來源:Camera1Manager.java

示例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());
}
 
開發者ID:MartinRGB,項目名稱:android_camera_experiment,代碼行數:6,代碼來源:PhotoQualityOption.java

示例5: getMediaQuality

import com.sandrios.sandriosCamera.internal.configuration.CameraConfiguration; //導入方法依賴的package包/類
@CameraConfiguration.MediaQuality
public int getMediaQuality() {
    return mediaQuality;
}
 
開發者ID:MartinRGB,項目名稱:android_camera_experiment,代碼行數:5,代碼來源:PhotoQualityOption.java

示例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);
}
 
開發者ID:sandrios,項目名稱:sandriosCamera,代碼行數:6,代碼來源:Camera2Manager.java

示例7: getPhotoSizeForQuality

import com.sandrios.sandriosCamera.internal.configuration.CameraConfiguration; //導入方法依賴的package包/類
Size getPhotoSizeForQuality(@CameraConfiguration.MediaQuality int mediaQuality); 
開發者ID:MartinRGB,項目名稱:android_camera_experiment,代碼行數:2,代碼來源:CameraManager.java


注:本文中的com.sandrios.sandriosCamera.internal.configuration.CameraConfiguration.MediaQuality方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。