@@ -171,9 +171,8 @@ struct DeviceFormat {
171171// / How a capture device should pick the format it delivers.
172172// /
173173// / The device negotiates the delivered format; the created source reports the
174- // / negotiated resolution through @ref CaptureSource::width and
175- // / @ref CaptureSource::height. The negotiated frame rate and frame format are
176- // / not reported back.
174+ // / negotiated resolution through @c width() and @c height(). The negotiated
175+ // / frame rate and frame format are not reported back.
177176// /
178177// / @note Only resolution and frame rate participate in format selection.
179178// / A @c frame_format is validated and then treated as a preference the backend
@@ -219,15 +218,27 @@ class LIVEKIT_API DeviceFormatRequest {
219218 // / advertise near-integral rates: a request for 30 fps is satisfied by a
220219 // / device advertising 30.00003 fps, and the device is then driven at its
221220 // / advertised rate.
221+ // /
222+ // / @param format Required resolution, frame rate, and preferred frame format.
223+ // / @return A request that requires the device to satisfy @p format.
222224 static DeviceFormatRequest exact (DeviceFormat format);
223225
224226 // / Use the device's closest supported resolution and frame rate.
227+ // /
228+ // / @param format Preferred resolution, frame rate, and frame format.
229+ // / @return A request that selects the closest supported format to @p format.
225230 static DeviceFormatRequest closest (DeviceFormat format);
226231
227232 // / Prefer the highest frame rate, optionally constrained.
233+ // /
234+ // / @param constraint Optional resolution and frame-format constraints.
235+ // / @return A request that selects the highest frame rate satisfying @p constraint.
228236 static DeviceFormatRequest highestFramerate (HighestFramerateConstraint constraint = {});
229237
230238 // / Prefer the highest resolution, optionally constrained.
239+ // /
240+ // / @param constraint Optional frame-rate and frame-format constraints.
241+ // / @return A request that selects the highest resolution satisfying @p constraint.
231242 static DeviceFormatRequest highestResolution (HighestResolutionConstraint constraint = {});
232243
233244private:
@@ -251,8 +262,8 @@ class LIVEKIT_API DeviceSelector {
251262 // / The device at this position in the platform's own enumeration order.
252263 // /
253264 // / The meaning is platform-defined and is not necessarily the position of
254- // / the device in @ref CaptureSource::listDevices: on macOS it indexes the
255- // / AVFoundation video-device list, on Linux it is the V4L2 node number
265+ // / the device in @ref CaptureSource::listDevices(). On macOS, it indexes the
266+ // / AVFoundation video-device list; on Linux, it is the V4L2 node number
256267 // / (@c /dev/videoN). Either way the value can shift as devices are attached
257268 // / and removed. Prefer @ref id, which is stable on macOS.
258269 static DeviceSelector index (std::uint32_t device_index);
@@ -339,8 +350,8 @@ struct CaptureResult {
339350// /
340351// / The source owns its producer (e.g. a GStreamer pipeline) and the pump
341352// / that feeds an RTC video source. Publish it like any other source: create
342- // / a track from @ref videoSource(), publish with application options merged
343- // / over @ref recommendedPublishOptions (), then call @ref start().
353+ // / a track from @ref CaptureSource:: videoSource(), merge application options
354+ // / through @ref CaptureSource::publishOptions (), then call @ref CaptureSource:: start().
344355// /
345356// / Requires the FFI library to be built with the `capture` feature
346357// / (`LIVEKIT_ENABLE_CAPTURE`); otherwise creation fails.
@@ -367,7 +378,7 @@ class LIVEKIT_API CaptureSource {
367378 // / Create a capture source from a camera device.
368379 // /
369380 // / Completes asynchronously: construction opens the device and negotiates
370- // / the capture format, so @ref width and @ref height report the negotiated
381+ // / the capture format, so @c width() and @c height() report the negotiated
371382 // / resolution before the first frame is pumped. Errors (missing device,
372383 // / unsatisfiable
373384 // / format request, unsupported platform, missing capture feature) are
0 commit comments