Start tracking pixel_height and pixel_width instead of pixel_shape, since all uses of it involved unpacking anyway, and the ordering makes it harder to read and edit.

This commit is contained in:
Grant Sanderson
2018-05-14 13:52:44 -07:00
parent f04b2e270c
commit ecd48d885e
8 changed files with 64 additions and 36 deletions

View File

@ -17,17 +17,20 @@ LOW_QUALITY_FRAME_DURATION = 1. / 15
MEDIUM_QUALITY_FRAME_DURATION = 1. / 30
PRODUCTION_QUALITY_FRAME_DURATION = 1. / 60
# There might be other configuration than pixel_shape later...
# There might be other configuration than pixel shape later...
PRODUCTION_QUALITY_CAMERA_CONFIG = {
"pixel_shape": (DEFAULT_PIXEL_HEIGHT, DEFAULT_PIXEL_WIDTH),
"pixel_height": DEFAULT_PIXEL_HEIGHT,
"pixel_width": DEFAULT_PIXEL_WIDTH,
}
MEDIUM_QUALITY_CAMERA_CONFIG = {
"pixel_shape": (720, 1280),
"pixel_height": 720,
"pixel_width": 1280,
}
LOW_QUALITY_CAMERA_CONFIG = {
"pixel_shape": (480, 854),
"pixel_height": 480,
"pixel_width": 854,
}
DEFAULT_POINT_DENSITY_2D = 25