Class CameraHelper
java.lang.Object
com.streamwide.smartms.lib.camera.utils.CameraHelper
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic doublecalculateApproximateVideoDuration(android.media.CamcorderProfile camcorderProfile, long maxFileSize) static SizechooseOptimalSize(Size[] choices, int width, int height, Size aspectRatio) static SizeclosestPictureSize(Size selectedSize, List<Size> choices) static android.media.CamcorderProfilegetCamcorderProfile(int mediaQuality, int cameraId) static android.media.CamcorderProfilegetCamcorderProfile(int currentCameraId, long maximumFileSize, int minimumDurationInSeconds) static android.media.CamcorderProfilegetCamcorderProfile(int mediaQuality, String cameraId) static android.media.CamcorderProfilegetCamcorderProfile(String cameraId, long maximumFileSize, int minimumDurationInSeconds) static List<android.media.CamcorderProfile>getCamcorderProfiles(int cameraId) static SizegetOptimalPreviewSize(Size[] sizes, int width, int height) static FilegetOutputMediaFile(int mediaAction, String directoryPath, String mediaNamePattern) static SizegetPictureSize(Size[] sizes, int mediaQuality) static SizegetPictureSize(List<Size> choices, int mediaQuality) getPictureSizeList(List<Size> choices) static SizegetSizeWithClosestRatio(Size[] sizes, int width, int height) static SizegetSizeWithClosestRatio(List<Size> sizes, int width, int height)
-
Field Details
-
TAG
- See Also:
-
-
Method Details
-
getOutputMediaFile
-
getPictureSize
-
closestPictureSize
-
getPictureSizeList
-
getPictureSize
-
getSizeWithClosestRatio
-
getOptimalPreviewSize
-
getSizeWithClosestRatio
-
chooseOptimalSize
-
calculateApproximateVideoDuration
public static double calculateApproximateVideoDuration(@NonNull android.media.CamcorderProfile camcorderProfile, long maxFileSize) -
getCamcorderProfile
@Nullable public static android.media.CamcorderProfile getCamcorderProfile(@Nullable String cameraId, long maximumFileSize, int minimumDurationInSeconds) -
getCamcorderProfile
@NonNull public static android.media.CamcorderProfile getCamcorderProfile(int currentCameraId, long maximumFileSize, int minimumDurationInSeconds) -
getCamcorderProfile
@Nullable public static android.media.CamcorderProfile getCamcorderProfile(int mediaQuality, @Nullable String cameraId) -
getCamcorderProfile
@NonNull public static android.media.CamcorderProfile getCamcorderProfile(int mediaQuality, int cameraId) -
getCamcorderProfiles
-