![]() |
Moonlight-XboxOG latest
Moonlight Xbox OG is a port of the Moonlight Game Streaming client to the original Xbox console.
|
Implements the FFmpeg-backed streaming decode backend for Xbox sessions. More...
#include "src/streaming/ffmpeg_stream_backend.h"#include <algorithm>#include <array>#include <cstdarg>#include <cstring>#include <mutex>#include <string>#include <utility>#include <vector>#include <libavcodec/avcodec.h>#include <libavutil/channel_layout.h>#include <libavutil/error.h>#include <libavutil/frame.h>#include <libavutil/imgutils.h>#include <libavutil/log.h>#include <libavutil/mem.h>#include <libavutil/samplefmt.h>#include <libswresample/swresample.h>#include <libswscale/swscale.h>#include "src/logging/logger.h"#include <hal/video.h>Functions | |
| std::uint64_t | PltGetMicroseconds (void) |
| Return the platform monotonic clock value in microseconds. | |
| bool | streaming::rectangles_match (const SDL_Rect &left, const SDL_Rect &right) |
| Return whether two SDL rectangles describe the same area. | |
| int | streaming::xbox_framebuffer_bytes_per_pixel (int bitsPerPixel) |
| Return bytes per pixel for one Xbox framebuffer mode. | |
| AVPixelFormat | streaming::xbox_framebuffer_pixel_format (int bitsPerPixel) |
| Convert the active Xbox framebuffer bpp to FFmpeg's packed RGB format. | |
Implements the FFmpeg-backed streaming decode backend for Xbox sessions.
| std::uint64_t PltGetMicroseconds | ( | void | ) |
Return the platform monotonic clock value in microseconds.
| bool streaming::rectangles_match | ( | const SDL_Rect & | left, |
| const SDL_Rect & | right ) |
Return whether two SDL rectangles describe the same area.
| left | First rectangle. |
| right | Second rectangle. |
| int streaming::xbox_framebuffer_bytes_per_pixel | ( | int | bitsPerPixel | ) |
Return bytes per pixel for one Xbox framebuffer mode.
| bitsPerPixel | Active framebuffer bits per pixel. |
| AVPixelFormat streaming::xbox_framebuffer_pixel_format | ( | int | bitsPerPixel | ) |
Convert the active Xbox framebuffer bpp to FFmpeg's packed RGB format.
| bitsPerPixel | Active framebuffer bits per pixel. |