add 1088 and 1152 resolution

This commit is contained in:
Victor Hall 2023-01-01 16:16:07 -05:00
parent b316684bdb
commit 08ffdbbfe3
1 changed files with 28 additions and 19 deletions

View File

@ -13,8 +13,31 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
ASPECTS9 = [[1024,1024], # 1048576 1:1
[1088,960],[960,1088], # 1044480 1.125:1
ASPECTS11 = [[1152,1152], # 1327104 1:1
#[1216,1088],[1088,1216], # 1323008 1.118:1
[1280,1024],[1024,1280], # 1310720 1.25:1
[1344,960],[960,1344], # 1290240 1.4:1
[1472,896],[896,1472], # 1318912 1.64:1
[1536,832],[832,1536], # 1277952 1.846:1
[1728,768],[768,1728], # 1327104 2.25:1
[1856,704],[704,1856], # 1306624 2.64:1
[2048,640],[640,2048], # 1310720 3.2:1
[2304,576],[576,2304], # 1327104 4:1
]
ASPECTS10 = [[1088,1088], # 1183744 1:1
[1152,1024],[1024,1152], # 1167360 1.267:1
[1216,896],[896,1216], # 1146880 1.429:1
[1408,832],[832,1408], # 1171456 1.692:1
[1536,768],[768,1536], # 1179648 2:1
[1664,704],[704,1664], # 1171456 2.36:1
[1792,640],[640,1792], # 1146880 2.8:1
[2048,576],[576,2048], # 1179648 3.556:1
[2304,512],[512,2304], # 1179648 4.5:1
]
ASPECTS9 = [[1024,1024], # 1048576 1:1
#[1088,960],[960,1088], # 1044480 1.125:1
[1152,896],[896,1152], # 1032192 1.286:1
[1216,832],[832,1216], # 1011712 1.462:1
[1344,768],[768,1344], # 1032192 1.75:1
@ -22,8 +45,6 @@ ASPECTS9 = [[1024,1024], # 1048576 1:1
[1600,640],[640,1600], # 1024000 2.5:1
[1792,576],[576,1792], # 1032192 3.111:1
[2048,512],[512,2048], # 1048576 4:1
[2304,448],[448,2304], # 1032192 5.143:1
[2688,384],[384,2688], # 1032192 7:1
]
ASPECTS8 = [[960,960], # 921600 1:1
@ -36,8 +57,6 @@ ASPECTS8 = [[960,960], # 921600 1:1
[1728,512],[512,1728], # 884736 3.375:1
[1792,512],[512,1792], # 917504 3.5:1
[2048,448],[448,2048], # 917504 4.714:1
[2240,384],[384,2240], # 860160 5.833:1
[2368,384],[384,2368], # 909312 6.17:1
]
ASPECTS7 = [[896,896], # 802816 1:1
@ -48,7 +67,6 @@ ASPECTS7 = [[896,896], # 802816 1:1
[1344,576],[576,1344], # 774144 2.333:1
[1536,512],[512,1536], # 786432 3:1
[1792,448],[448,1792], # 802816 4:1
[2048,384],[384,2048], # 786432 5.333:1
]
ASPECTS6 = [[832,832], # 692224 1:1
@ -62,9 +80,6 @@ ASPECTS6 = [[832,832], # 692224 1:1
[1344,512],[512,1344], # 688128 2.625:1
[1536,448],[448,1536], # 688128 3.429:1
[1600,384],[384,1600], # 614400 4.167:1
#[1664,384],[384,1664], # 638976 4.333:1
[1728,384],[384,1728], # 663552 4.5:1
[1792,384],[384,1792], # 688128 4.667:1
]
ASPECTS5 = [[768,768], # 589824 1:1
@ -79,7 +94,6 @@ ASPECTS5 = [[768,768], # 589824 1:1
#[1344,384],[384,1344], # 518400 3.5:1
[1408,384],[384,1408], # 540672 3.667:1
[1472,320],[320,1472], # 470400 4.6:1
[1536,320],[320,1536], # 491520 4.8:1
]
ASPECTS4 = [[704,704], # 501,376 1:1
@ -93,8 +107,6 @@ ASPECTS4 = [[704,704], # 501,376 1:1
#[1216,384],[384,1216], # 466,944 3.125:1
[1280,384],[384,1280], # 491,520 3.333:1
[1280,320],[320,1280], # 409,600 4:1
#[1408,320],[320,1408], # 450,560 4.4:1
[1536,320],[320,1536], # 491,520 4.8:1
]
ASPECTS3 = [[640,640], # 409600 1:1
@ -105,10 +117,6 @@ ASPECTS3 = [[640,640], # 409600 1:1
[1024,384],[384,1024], # 393216 2.667:1
[1152,320],[320,1152], # 368640 3.6:1
[1280,320],[320,1280], # 409600 4:1
[1408,256],[256,1408], # 360448 5.5:1
#[1472,256],[256,1472], # 376832 5.75:1
#[1536,256],[256,1536], # 393216 6:1
#[1600,256],[256,1600], # 409600 6.25:1
]
ASPECTS2 = [[576,576], # 331776 1:1
@ -118,7 +126,8 @@ ASPECTS2 = [[576,576], # 331776 1:1
[832,384],[384,832], # 317440 2.1667:1
[960,320],[320,960], # 307200 3:1
#[1024,320],[320,1024], # 327680 3.2:1
[1280,256],[256,1280], # 327680 5:1
[1152,256],[256,1152], # 327680 4.5:1
#[1280,256],[256,1280], # 327680 5:1
]
ASPECTS = [[512,512], # 262144 1:1
@ -129,7 +138,7 @@ ASPECTS = [[512,512], # 262144 1:1
[896,256],[256,896], # 229376 3.5:1
#[960,256],[256,960], # 245760 3.75:1
[1024,256],[256,1024], # 245760 4:1
]
]
def get_aspect_buckets(resolution, square_only=False, reduced_buckets=False):
if resolution < 512: