mirror of https://github.com/ErsatzTV/ErsatzTV.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
459 B
13 lines
459 B
using ErsatzTV.Core.Interfaces.FFmpeg; |
|
|
|
namespace ErsatzTV.Core.FFmpeg |
|
{ |
|
public static class DisplaySizeExtensions |
|
{ |
|
internal static IDisplaySize PadToEven(this IDisplaySize size) => |
|
new DisplaySize(size.Width + size.Width % 2, size.Height + size.Height % 2); |
|
|
|
internal static bool IsSameSizeAs(this IDisplaySize @this, IDisplaySize that) => |
|
@this.Width == that.Width && @this.Height == that.Height; |
|
} |
|
}
|
|
|