pinosformat: rewrite format conversion

This commit is contained in:
Wim Taymans 2017-02-24 16:27:36 +01:00
parent 47714886c0
commit 7a66af71ca
3 changed files with 334 additions and 367 deletions

View file

@ -40,6 +40,8 @@ typedef struct _SpaPODBuilder {
off_t (*write) (struct _SpaPODBuilder *builder, off_t ref, const void *data, size_t size);
} SpaPODBuilder;
#define SPA_POD_BUILDER_DEREF(b,ref,type) SPA_MEMBER ((b)->data, (ref), type)
static inline bool
spa_pod_builder_in_array (SpaPODBuilder *builder)
{

View file

@ -101,6 +101,7 @@ typedef enum {
SPA_VIDEO_FORMAT_P010_10BE,
SPA_VIDEO_FORMAT_P010_10LE,
SPA_VIDEO_FORMAT_IYU2,
SPA_VIDEO_FORMAT_VYUY,
} SpaVideoFormat;