Merge branch 'master' of ssh://git.swordlost.top:222/SikongJueluo/FPGA_WebLab
This commit is contained in:
@@ -173,7 +173,7 @@ class Camera
|
||||
logger.Trace($"Reading frame from camera {this.address}");
|
||||
|
||||
// 使用UDPClientPool读取图像帧数据
|
||||
var result = await UDPClientPool.ReadAddr4Bytes(
|
||||
var result = await UDPClientPool.ReadAddr4BytesAsync(
|
||||
this.ep,
|
||||
this.taskID, // taskID
|
||||
FrameAddr,
|
||||
@@ -269,7 +269,7 @@ class Camera
|
||||
/// <param name="vWindow">垂直窗口大小(默认1300)</param>
|
||||
/// <returns>配置结果</returns>
|
||||
public async ValueTask<Result<bool>> ConfigureResolution(
|
||||
UInt16 hStart, UInt16 vStart,
|
||||
UInt16 hStart, UInt16 vStart,
|
||||
UInt16 dvpHo, UInt16 dvpVo,
|
||||
UInt16 hts, UInt16 vts,
|
||||
UInt16 hOffset, UInt16 vOffset,
|
||||
@@ -278,7 +278,7 @@ class Camera
|
||||
// 计算结束位置
|
||||
UInt16 hEnd = (UInt16)(hStart + hWindow - 1);
|
||||
UInt16 vEnd = (UInt16)(vStart + vWindow - 1);
|
||||
|
||||
|
||||
// 计算帧长度
|
||||
UInt32 frameLength = (UInt32)(dvpHo * dvpVo * 16 / 32);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user