Make new USE_BUFFERS command

Make a new USE_BUFFERS command to atomically send a buffer array to the
remote client. We can use this to then clean up an old array and go to
the PAUSED state if possible.
Work on formats. Make one structure that can hold all video formats.
Work on pipeline suspend and resume.
Add jpeg support to v4l2.
Work on enum_formats with a filter in v4l2.
This commit is contained in:
Wim Taymans 2016-08-26 17:43:48 +02:00
parent 7e858ff694
commit b67c216a04
24 changed files with 688 additions and 514 deletions

View file

@ -24,7 +24,7 @@
extern "C" {
#endif
typedef struct _SpaVideoRawInfo SpaVideoRawInfo;
typedef struct _SpaVideoInfoRaw SpaVideoInfoRaw;
#include <spa/props.h>
#include <spa/video/chroma.h>
@ -146,7 +146,7 @@ typedef enum {
} SpaVideoInterlaceMode;
/**
* SpaVideoRawInfo:
* SpaVideoInfoRaw:
* @format: the format
* @size: the frame size of the video
* @framerate: the framerate of the video 0/1 means variable rate
@ -165,7 +165,7 @@ typedef enum {
* @transfer_function: the transfer function. used to convert between R'G'B' and RGB
* @color_primaries: color primaries. used to convert between R'G'B' and CIE XYZ
*/
struct _SpaVideoRawInfo {
struct _SpaVideoInfoRaw {
SpaVideoFormat format;
SpaRectangle size;
SpaFraction framerate;