Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/versioning_270.c
| Show First 20 Lines • Show All 1,386 Lines • ▼ Show 20 Lines | if (!DNA_struct_elem_find(fd->filesdna, "MovieTrackingStabilization", "int", "tot_rot_track")) { | ||||
| clip->tracking.stabilization.anchor_frame = 1; | clip->tracking.stabilization.anchor_frame = 1; | ||||
| /* by default show the track lists expanded, to improve "discoverability" */ | /* by default show the track lists expanded, to improve "discoverability" */ | ||||
| clip->tracking.stabilization.flag |= TRACKING_SHOW_STAB_TRACKS; | clip->tracking.stabilization.flag |= TRACKING_SHOW_STAB_TRACKS; | ||||
| /* deprecated, not used anymore */ | /* deprecated, not used anymore */ | ||||
| clip->tracking.stabilization.ok = false; | clip->tracking.stabilization.ok = false; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| if (!MAIN_VERSION_ATLEAST(main, 279, 0)) { | |||||
| if (!DNA_struct_elem_find(fd->filesdna, "FFMpegCodecData", "int", "ffmpeg_preset")) { | |||||
| for (Scene *scene = main->scene.first; scene; scene = scene->id.next) { | |||||
| /* "medium" is the preset FFmpeg uses when no presets are given. */ | |||||
| scene->r.ffcodecdata.ffmpeg_preset = FFM_PRESET_MEDIUM; | |||||
| } | |||||
| } | |||||
| if (!DNA_struct_elem_find(fd->filesdna, "FFMpegCodecData", "int", "constant_rate_factor")) { | |||||
| for (Scene *scene = main->scene.first; scene; scene = scene->id.next) { | |||||
| /* fall back to behaviour from before we introduced CRF for old files */ | |||||
| scene->r.ffcodecdata.constant_rate_factor = FFM_CRF_NONE; | |||||
| } | |||||
| } | |||||
| } | |||||
| } | } | ||||