You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

31 lines
814 B

package com.inspect.nvr.daHuaCarme.callback;
import com.inspect.nvr.daHuaCarme.jna.NetSDKLib;
import com.sun.jna.Pointer;
import org.springframework.stereotype.Component;
import java.awt.image.BufferedImage;
import java.io.ByteArrayInputStream;
/**
* @program: standard
* @description: 抓图回调函数
* @author: 刺客
* @create: 2023-04-07 16:02
*/
@Component
public class fSnapReceiveCB implements NetSDKLib.fSnapRev {
@Override
public void invoke(NetSDKLib.LLong lLoginID, Pointer pBuf, int RevLen, int EncodeType, int CmdSerial, Pointer dwUser) {
BufferedImage bufferedImage = null;
if (pBuf != null && RevLen > 0) {
byte[] buf = pBuf.getByteArray(0, RevLen);
ByteArrayInputStream byteArrInput = new ByteArrayInputStream(buf);
}
}
}