Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/input.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ namespace input {
std::shared_ptr<input_t> alloc(safe::mail_t mail);

struct touch_port_t: public platf::touch_port_t {
int env_height;
int env_width;
int env_height;

// Offset x and y coordinates of the client
float client_offsetX;
Expand All @@ -35,8 +35,8 @@ namespace input {
float scalar_inv;
float scalar_tpcoords;

int env_logical_height;
int env_logical_width;
int env_logical_height;

explicit operator bool() const {
return width != 0 && height != 0 && env_width != 0 && env_height != 0;
Expand Down
18 changes: 6 additions & 12 deletions src/platform/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -270,12 +270,10 @@ namespace platf {
struct touch_port_t {
int offset_x;
int offset_y;

int height;
int width;

int logical_height;
int height;
int logical_width;
int logical_height;
};

// These values must match Limelight-internal.h's SS_FF_* constants!
Expand Down Expand Up @@ -541,18 +539,14 @@ namespace platf {
// Offsets for when streaming a specific monitor. By default, they are 0.
int offset_x;
int offset_y;

int env_height;
int env_width;

int env_logical_height;
int env_height;
int env_logical_width;

int height;
int env_logical_height;
int width;

int logical_height;
int height;
int logical_width;
int logical_height;

protected:
// collect capture timing data (at loglevel debug)
Expand Down
3 changes: 1 addition & 2 deletions src/platform/linux/cuda.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,8 @@ namespace cuda {
stream_t make_stream(int flags = 0);

struct viewport_t {
int height;
int width;

int height;
int offsetX;
int offsetY;
};
Expand Down
8 changes: 4 additions & 4 deletions src/platform/linux/graphics.h
Original file line number Diff line number Diff line change
Expand Up @@ -266,10 +266,10 @@ namespace egl {

class cursor_t: public platf::img_t {
public:
int src_h;
int src_w;
int x;
int y;
int src_w;
int src_h;

unsigned long serial;

Expand Down Expand Up @@ -331,10 +331,10 @@ namespace egl {
gl::program_t program[3];
gl::buffer_t color_matrix;

int out_height;
int out_width;
int in_height;
int out_height;
int in_width;
int in_height;
int offsetX;
int offsetY;

Expand Down
12 changes: 6 additions & 6 deletions src/platform/linux/kmsgrab.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -296,20 +296,20 @@ namespace platf {
struct cursor_t {
// Public properties used during blending
bool visible = false;
std::uint32_t dst_h;
std::uint32_t dst_w;
std::uint32_t src_h;
std::uint32_t src_w;
std::int32_t x;
std::int32_t y;
std::uint32_t dst_w;
std::uint32_t dst_h;
std::uint32_t src_w;
std::uint32_t src_h;
std::vector<std::uint8_t> pixels;
unsigned long serial;

// Private properties used for tracking cursor changes
std::uint64_t prop_src_x;
std::uint64_t prop_src_y;
std::uint64_t prop_src_h;
std::uint64_t prop_src_w;
std::uint64_t prop_src_h;
std::uint32_t fb_id;
};

Expand Down Expand Up @@ -1139,8 +1139,8 @@ namespace platf {

std::chrono::nanoseconds delay;

int img_height;
int img_width;
int img_height;
int img_offset_x;
int img_offset_y;

Expand Down
2 changes: 1 addition & 1 deletion src/platform/linux/vaapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -398,8 +398,8 @@ namespace va {
egl::sws_t sws;
egl::nv12_t nv12;

int height;
int width;
int height;
};

class va_ram_t: public va_t {
Expand Down
2 changes: 1 addition & 1 deletion src/platform/windows/display.h
Original file line number Diff line number Diff line change
Expand Up @@ -347,8 +347,8 @@ namespace platf::dxgi {
winrt::Windows::Graphics::Capture::GraphicsCaptureItem item {nullptr};
winrt::Windows::Graphics::Capture::Direct3D11CaptureFramePool frame_pool {nullptr};
winrt::Windows::Graphics::Capture::GraphicsCaptureSession capture_session {nullptr};
winrt::Windows::Graphics::Capture::Direct3D11CaptureFrame consumed_frame {nullptr};
winrt::Windows::Graphics::Capture::Direct3D11CaptureFrame produced_frame {nullptr};
winrt::Windows::Graphics::Capture::Direct3D11CaptureFrame consumed_frame {nullptr};
SRWLOCK frame_lock = SRWLOCK_INIT;
CONDITION_VARIABLE frame_present_cv;

Expand Down
8 changes: 4 additions & 4 deletions src/video_colorspace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ namespace video {
const color_t *color_vectors_from_colorspace(const sunshine_colorspace_t &colorspace, bool unorm_output) {
constexpr auto generate_color_vectors = [](const sunshine_colorspace_t &colorspace, bool unorm_output) -> color_t {
// "Table 4 – Interpretation of matrix coefficients (MatrixCoefficients) value" section of ITU-T H.273
double Kb;
double Kr;
double Kb;
switch (colorspace.colorspace) {
case colorspace_e::rec601:
Kr = 0.299;
Expand All @@ -143,10 +143,10 @@ namespace video {
}
double Kg = 1.0 - Kr - Kb;

double uv_add;
double uv_mult;
double y_add;
double y_mult;
double y_add;
double uv_mult;
double uv_add;

// "8.3 Matrix coefficients" section of ITU-T H.273
if (colorspace.full_range) {
Expand Down
Loading