提交 | 用户 | 时间
|
149dd0
|
1 |
package com.iailab.netsdk.lib.structure; |
H |
2 |
|
|
3 |
import com.iailab.netsdk.lib.NetSDKLib; |
|
4 |
import com.iailab.netsdk.lib.enumeration.NET_EM_FORMAT_TYPE; |
|
5 |
import com.iailab.netsdk.lib.enumeration.NET_EM_IMAGE_QUALITY; |
|
6 |
import com.iailab.netsdk.lib.enumeration.NET_EM_VIDEO_COMPRESSION; |
|
7 |
|
|
8 |
/** |
|
9 |
* 主(辅)码流视频格式(f6/f5/bin) |
|
10 |
* |
|
11 |
* @author 47040 |
|
12 |
* @since Created at 2021/5/26 22:08 |
|
13 |
*/ |
|
14 |
public class NET_ENCODE_VIDEO_INFO extends NetSDKLib.SdkStructure { |
|
15 |
|
|
16 |
/** |
|
17 |
* 结构体大小 |
|
18 |
*/ |
|
19 |
public int dwSize; |
|
20 |
/** |
|
21 |
* 码流类型枚举值,设置和获取时都需要设置值 {@link NET_EM_FORMAT_TYPE} |
|
22 |
*/ |
|
23 |
public int emFormatType; |
|
24 |
/** |
|
25 |
* 视频使能 |
|
26 |
*/ |
|
27 |
public int bVideoEnable; |
|
28 |
/** |
|
29 |
* 视频压缩格式 枚举值 {@link NET_EM_VIDEO_COMPRESSION} |
|
30 |
*/ |
|
31 |
public int emCompression; |
|
32 |
/** |
|
33 |
* 视频宽度 |
|
34 |
*/ |
|
35 |
public int nWidth; |
|
36 |
/** |
|
37 |
* 视频高度 |
|
38 |
*/ |
|
39 |
public int nHeight; |
|
40 |
/** |
|
41 |
* 码流控制模式 枚举值 {@link NetSDKLib.NET_EM_BITRATE_CONTROL} |
|
42 |
*/ |
|
43 |
public int emBitRateControl; |
|
44 |
/** |
|
45 |
* 视频码流(kbps) |
|
46 |
*/ |
|
47 |
public int nBitRate; |
|
48 |
/** |
|
49 |
* 视频帧率 |
|
50 |
*/ |
|
51 |
public float nFrameRate; |
|
52 |
/** |
|
53 |
* I帧间隔(1-100),比如50表示每49个B帧或P帧,设置一个I帧。 |
|
54 |
*/ |
|
55 |
public int nIFrameInterval; |
|
56 |
/** |
|
57 |
* 图像质量 枚举值 {@link NET_EM_IMAGE_QUALITY} |
|
58 |
*/ |
|
59 |
public int emImageQuality; |
|
60 |
|
|
61 |
public NET_ENCODE_VIDEO_INFO() { |
|
62 |
dwSize = this.size(); |
|
63 |
} |
|
64 |
} |