5#ifndef MALENA_SCREEN_SOURCE_H
6#define MALENA_SCREEN_SOURCE_H
59 std::optional<sf::Image>
grab();
74 static std::optional<sf::Image>
decode(
const std::uint8_t* data, std::size_t size);
78 std::unique_ptr<Impl> _impl;
static std::optional< sf::Image > decode(const std::uint8_t *data, std::size_t size)
ScreenSource & operator=(const ScreenSource &)=delete
const std::string & lastError() const
void setMaxDimension(unsigned int pixels)
static std::optional< std::vector< std::uint8_t > > encodeJpeg(const sf::Image &frame)
std::optional< sf::Image > grab()
void setDisplayIndex(int index)
static bool isSupported()
ScreenSource(const ScreenSource &)=delete