leaning heavily on the similar structure used for last year's FrOSCon talk regarding video output (by Benny Lyons and myself). However, this time we'll use a process state object (the player) and, furthermore, there is some cross-wiring of components involved...
33 lines
690 B
C++
33 lines
690 B
C++
/*
|
||
commons.hpp - common definitions and utils for the io_uring video output demo code
|
||
|
||
Copyright (C)
|
||
2026 Hermann Vosseler <Ichthyostega@web.de>
|
||
|
||
This program is free software; you can redistribute it and/or modify it
|
||
under the terms of the GNU GPL version 2+ See the LICENSE file for details.
|
||
|
||
* ************************************************************************/
|
||
|
||
#ifndef COMMONS_H
|
||
#define COMMONS_H
|
||
|
||
|
||
#include <cstdint>
|
||
#include <iostream>
|
||
#include <string>
|
||
|
||
using std::string;
|
||
using uint = unsigned int;
|
||
using FrameRate = uint;
|
||
|
||
|
||
inline void
|
||
__FAIL (string msg)
|
||
{
|
||
std::cerr << "FAIL: " << msg << std::endl;
|
||
std::abort();
|
||
}
|
||
|
||
|
||
#endif /*COMMONS_H*/
|