This patch is very unfinished (barely started), but there are design issues that have to be addressed before development, so I will try to outline them here.
This patch includes changes from D9414: VSE: Render in size nearest to preview image
Remove render_size (=preview size) property from sequencer preview.
When Use Proxies propery is enabled, proxies will be used when possibe
for all preview sizes. Thes means that they will be downscaled from
nearest size when exact size is not built.
When preview size is larger than largest built proxy size, original file
will be used.
Code is slightly simplified with this change, but there are missing
pieces to this change which involve proxy management.
Current proxy size options don't make too much sense, because actual preview size will be much more fluid and less constrained to 4 existing options.
Currently proxies are automatically built in sizes that are actually used in any of preview area in layout.
In this patch preview area size in pixel resolution is used to determine used render size. This can be used to choose best proxy size, but this approach is not perfect, as user may use smaller screen to add files, then move to bigger one or change layout later.
Automatic proxy size switching that was implemented used explicitly defined sizes which were chosen by user. With more granular and dynamic render size, to change proxy size on fly could be very disruptive to workflow.
Example is large movie is initially used at 25% scale, so proxies are built for this size. Just zooming in to see detail can instantly trigger rebuilding for 50% and 100% size.
These issues are created by taking image size(quality) control form user where performance may be valued over quality and other way around.
Another issue is that proxy image can not be upscaled, at least not by feature implemented in D9414. This may be actually critical for this patch, because it may be possible that user has access only to proxy files, which was fine when you defined preview size manually.
This can be solved on sequencer side by upscaling nearest size proxy image, but perhaps D9414 could provide scaling in both directions?
I would propose to have list of proxy sizes in preferences for automatic setup (100% selected by default) and no automatic building for different sizes in runtime. No changes to manual proxy setup are needed for this change.