[+] Camera2拍照
This commit is contained in:
@@ -7,6 +7,8 @@ import lombok.Setter;
|
||||
/**
|
||||
* 音频配置
|
||||
*
|
||||
* 比特率 = 采样率 * 采样位数 * 声道数 / 8 / 1024
|
||||
*
|
||||
* @author acgist
|
||||
*/
|
||||
@Getter
|
||||
@@ -30,7 +32,9 @@ public class MediaAudioProperties {
|
||||
|
||||
@Schema(title = "格式", description = "格式", example = "G722|PCMA|PCMU|OPUS")
|
||||
private Format format;
|
||||
@Schema(title = "采样数", description = "采样数", example = "8|16|32")
|
||||
@Schema(title = "比特率", description = "比特率", example = "96|128|256")
|
||||
private Integer bitrate;
|
||||
@Schema(title = "采样位数", description = "采样位数", example = "8|16|32")
|
||||
private Integer sampleSize;
|
||||
@Schema(title = "采样率", description = "采样率", example = "8000|16000|32000|48000")
|
||||
private Integer sampleRate;
|
||||
|
||||
@@ -27,22 +27,26 @@ public class MediaProperties {
|
||||
private Integer minHeight;
|
||||
@Schema(title = "最大视频高度", description = "最大视频高度")
|
||||
private Integer maxHeight;
|
||||
@Schema(title = "最小视频码率", description = "最小视频码率")
|
||||
private Integer minBitrate;
|
||||
@Schema(title = "最大视频码率", description = "最大视频码率")
|
||||
private Integer maxBitrate;
|
||||
@Schema(title = "最小视频帧率", description = "最小视频帧率")
|
||||
private Integer minFrameRate;
|
||||
@Schema(title = "最大视频帧率", description = "最大视频帧率")
|
||||
private Integer maxFrameRate;
|
||||
@Schema(title = "最小音频采样数", description = "最小音频采样数")
|
||||
@Schema(title = "最小视频码率", description = "最小视频码率")
|
||||
private Integer minVideoBitrate;
|
||||
@Schema(title = "最大视频码率", description = "最大视频码率")
|
||||
private Integer maxVideoBitrate;
|
||||
@Schema(title = "最小音频采样位数", description = "最小音频采样位数")
|
||||
private Integer minSampleSize;
|
||||
@Schema(title = "最大音频采样数", description = "最大音频采样数")
|
||||
@Schema(title = "最大音频采样位数", description = "最大音频采样位数")
|
||||
private Integer maxSampleSize;
|
||||
@Schema(title = "最小音频采样率", description = "最小音频采样率")
|
||||
private Integer minSampleRate;
|
||||
@Schema(title = "最大音频采样率", description = "最大音频采样率")
|
||||
private Integer maxSampleRate;
|
||||
@Schema(title = "最小音频码率", description = "最小音频码率")
|
||||
private Integer minAudioBitrate;
|
||||
@Schema(title = "最大音频码率", description = "最大音频码率")
|
||||
private Integer maxAudioBitrate;
|
||||
@Schema(title = "音频默认配置", description = "音频默认配置")
|
||||
private MediaAudioProperties audio;
|
||||
@Schema(title = "视频默认配置", description = "视频默认配置")
|
||||
|
||||
@@ -6,6 +6,10 @@ import lombok.Setter;
|
||||
|
||||
/**
|
||||
* 视频配置
|
||||
* 原始数据 = 宽 * 高 * 3 / 2 * 8 * 帧率 / 1024 / 1024
|
||||
* 视频编码 = 压缩
|
||||
* 8 = 颜色位数
|
||||
* 3 / 2 = YUV | RGB
|
||||
*
|
||||
* @author acgist
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user