summaryrefslogtreecommitdiff
path: root/include/kitchensink/kitformat.h
blob: 4c428c5ff34df8b11ac513993864e34eb03dfa4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef KITFORMAT_H
#define KITFORMAT_H

#include <stdbool.h>

#ifdef __cplusplus
extern "C" {
#endif

typedef struct Kit_OutputFormat {
    unsigned int format; ///< SDL Format
    bool is_signed;      ///< Signedness (if audio)
    int bytes;           ///< Bytes per sample per channel (if audio)
    int samplerate;      ///< Sampling rate (if audio)
    int channels;        ///< Channels (if audio)
    int width;           ///< Width in pixels (if video)
    int height;          ///< Height in pixels (if video)
} Kit_OutputFormat;

#ifdef __cplusplus
}
#endif

#endif // KITFORMAT_H