Hermes 0.7.0
Linux game streaming host
Loading...
Searching...
No Matches
video::pipeline_metrics_t Struct Reference

Live per-frame pipeline metrics, for diagnostics/metrics. More...

#include <src/video.h>

Public Attributes

bool valid = false
 At least one frame has been measured.
double encode_ms = 0.0
 Avg time spent in the encoder per frame.
double capture_to_encode_ms = 0.0
 Avg latency from capture to encode start.
double fps = 0.0
 Measured frames encoded per second.
double bitrate_kbps = 0.0
 Measured output bitrate (kilobits/s).
uint64_t frames_encoded = 0
 Total frames encoded this session.
uint64_t frames_dropped = 0
 Total frames dropped (encoder errors/timeouts).
int width = 0
 Active stream width in pixels (0 until a session sets it).
int height = 0
 Active stream height in pixels (0 until a session sets it).

Detailed Description

Live per-frame pipeline metrics, for diagnostics/metrics.

Rolling averages over a short window so users (and the web UI) can see where time goes instead of only an overall FPS number. Updated from the encode loop; read by the diagnostics endpoint. Zero/valid=false until frames flow.

Definition at line 514 of file video.h.

Member Data Documentation

◆ bitrate_kbps

double video::pipeline_metrics_t::bitrate_kbps = 0.0

Measured output bitrate (kilobits/s).

Definition at line 519 of file video.h.

◆ capture_to_encode_ms

double video::pipeline_metrics_t::capture_to_encode_ms = 0.0

Avg latency from capture to encode start.

Definition at line 517 of file video.h.

◆ encode_ms

double video::pipeline_metrics_t::encode_ms = 0.0

Avg time spent in the encoder per frame.

Definition at line 516 of file video.h.

◆ fps

double video::pipeline_metrics_t::fps = 0.0

Measured frames encoded per second.

Definition at line 518 of file video.h.

◆ frames_dropped

uint64_t video::pipeline_metrics_t::frames_dropped = 0

Total frames dropped (encoder errors/timeouts).

Definition at line 521 of file video.h.

◆ frames_encoded

uint64_t video::pipeline_metrics_t::frames_encoded = 0

Total frames encoded this session.

Definition at line 520 of file video.h.

◆ height

int video::pipeline_metrics_t::height = 0

Active stream height in pixels (0 until a session sets it).

Definition at line 523 of file video.h.

◆ valid

bool video::pipeline_metrics_t::valid = false

At least one frame has been measured.

Definition at line 515 of file video.h.

◆ width

int video::pipeline_metrics_t::width = 0

Active stream width in pixels (0 until a session sets it).

Definition at line 522 of file video.h.


The documentation for this struct was generated from the following file: