af_xdp tryout
This commit is contained in:
@@ -103,10 +103,10 @@ class ST2110In : public NodeBase {
|
||||
return;
|
||||
}
|
||||
|
||||
log("SMPTE 2110-20 RX %s:%u from %s on %s local=%s %dx%d depth=%d @ %d/%d latency=%d index_mode=%s",
|
||||
log("SMPTE 2110-20 RX %s:%u from %s on %s backend=%s local=%s %dx%d depth=%d @ %d/%d latency=%d index_mode=%s",
|
||||
cfg.mcast_ip.c_str(), cfg.udp_port, cfg.source_ip.c_str(), cfg.ifname.c_str(),
|
||||
cfg.local_ip.c_str(), cfg.width, cfg.height, cfg.depth, cfg.fps_num, cfg.fps_den,
|
||||
cfg.mxl_latency_frames, cfg.mxl_index_mode.c_str());
|
||||
cfg.backend.c_str(), cfg.local_ip.c_str(), cfg.width, cfg.height, cfg.depth,
|
||||
cfg.fps_num, cfg.fps_den, cfg.mxl_latency_frames, cfg.mxl_index_mode.c_str());
|
||||
|
||||
try {
|
||||
MTLContext mtl(cfg);
|
||||
@@ -129,9 +129,9 @@ class ST2110In : public NodeBase {
|
||||
uint64_t last_report_frames = 0;
|
||||
auto last_report = std::chrono::steady_clock::now();
|
||||
|
||||
log("MTL version=%s output_stride=%u input_stride=%u direct_v210=%d", mtl_version(),
|
||||
video_stride, cfg.direct_v210() ? video_stride : uyvy_stride,
|
||||
cfg.direct_v210() ? 1 : 0);
|
||||
log("MTL version=%s port=%s output_stride=%u input_stride=%u direct_v210=%d",
|
||||
mtl_version(), mtl.port_name().c_str(), video_stride,
|
||||
cfg.direct_v210() ? video_stride : uyvy_stride, cfg.direct_v210() ? 1 : 0);
|
||||
|
||||
while (g_running.load(std::memory_order_relaxed)) {
|
||||
st_frame* frame = st20p_rx_get_frame(rx.get());
|
||||
|
||||
Reference in New Issue
Block a user