mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-26 07:00:13 -05:00
inspect: improve output
Keep state variable to enumerate things. This allows us to remove the expectation that the same index will give the same item. Use a new rectangle type for video size. When enumerating sizes, this allows us to specify relations between width and height more easily. Remove the struct and bytes type, they are like pointer. Add filter to enum_formats to speed up enumerations.
This commit is contained in:
parent
77bc2a1793
commit
b9320c67c2
27 changed files with 414 additions and 287 deletions
|
|
@ -148,8 +148,7 @@ typedef enum {
|
|||
/**
|
||||
* SpaVideoRawInfo:
|
||||
* @format: the format
|
||||
* @width: the width of the video
|
||||
* @height: the height of the video
|
||||
* @size: the frame size of the video
|
||||
* @framerate: the framerate of the video 0/1 means variable rate
|
||||
* @max_framerate: the maximum framerate of the video. This is only valid when
|
||||
* @framerate is 0/1
|
||||
|
|
@ -168,8 +167,7 @@ typedef enum {
|
|||
*/
|
||||
struct _SpaVideoRawInfo {
|
||||
SpaVideoFormat format;
|
||||
unsigned int width;
|
||||
unsigned int height;
|
||||
SpaRectangle size;
|
||||
SpaFraction framerate;
|
||||
SpaFraction max_framerate;
|
||||
unsigned int views;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue