2023-02-08 18:12:00 +01:00
|
|
|
/* PipeWire JACK extensions */
|
|
|
|
|
/* SPDX-FileCopyrightText: Copyright © 2020 Wim Taymans */
|
|
|
|
|
/* SPDX-License-Identifier: MIT */
|
2020-02-07 13:31:49 +01:00
|
|
|
|
|
|
|
|
#ifndef PIPEWIRE_JACK_EXTENSIONS_H
|
|
|
|
|
#define PIPEWIRE_JACK_EXTENSIONS_H
|
2022-09-23 10:38:42 -04:00
|
|
|
#include <stdint.h>
|
2020-02-07 13:31:49 +01:00
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/** 1.0 gamma, full range HDR 0.0 -> 1.0, pre-multiplied
|
|
|
|
|
* alpha, BT.2020 primaries, progressive */
|
|
|
|
|
#define JACK_DEFAULT_VIDEO_TYPE "32 bit float RGBA video"
|
|
|
|
|
|
|
|
|
|
typedef struct jack_image_size {
|
|
|
|
|
uint32_t width;
|
|
|
|
|
uint32_t height;
|
|
|
|
|
uint32_t stride;
|
|
|
|
|
uint32_t flags;
|
|
|
|
|
} jack_image_size_t;
|
|
|
|
|
|
|
|
|
|
int jack_get_video_image_size(jack_client_t *client, jack_image_size_t *size);
|
|
|
|
|
|
2023-10-24 11:08:49 +02:00
|
|
|
int jack_set_sample_rate (jack_client_t *client, jack_nframes_t nframes);
|
|
|
|
|
|
2020-02-07 13:31:49 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#endif /* PIPEWIRE_JACK_EXTENSIONS_H */
|