mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-13 11:19:58 +01:00
GST prefer horizontal device input
This commit is contained in:
@@ -55,7 +55,7 @@ struct PipelineConfig {
|
||||
int b_formatscore = b.format.find("R") != std::string::npos ? 2 : 1;
|
||||
float fps = static_cast<float>(this->fps_numerator) / static_cast<float>(this->fps_denominator);
|
||||
float b_fps = static_cast<float>(b.fps_numerator) / static_cast<float>(b.fps_denominator);
|
||||
return ( fps * static_cast<float>(this->height * formatscore) < b_fps * static_cast<float>(b.height * b_formatscore));
|
||||
return ( fps * static_cast<float>(this->width * formatscore) < b_fps * static_cast<float>(b.width * b_formatscore));
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user