experimental option to support LTC 29.97000 fps generators.

also change 29.97ndf frame-rate to 30000/1001.

git-svn-id: svn://localhost/ardour2/branches/3.0@13395 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Robin Gareus 2012-11-07 23:02:11 +00:00
parent 0e0c15833e
commit 8c9c0836a3
6 changed files with 52 additions and 1 deletions

View file

@ -445,12 +445,20 @@ timecode_to_frames_per_second(TimecodeFormat t)
break;
case timecode_2997:
return 29.97;
return (30000.0/1001.0); //29.97;
break;
case timecode_2997drop:
return (30000.0/1001.0); //29.97;
break;
case timecode_2997000:
return 29.97;
break;
case timecode_2997000drop:
return 29.97;
break;
case timecode_30:
return 30;
@ -502,6 +510,14 @@ timecode_has_drop_frames(TimecodeFormat t)
case timecode_2997drop:
return true;
break;
case timecode_2997000:
return false;
break;
case timecode_2997000drop:
return true;
break;
case timecode_30:
return false;
@ -554,6 +570,14 @@ timecode_format_name (TimecodeFormat const t)
case timecode_2997drop:
return "29.97 drop";
break;
case timecode_2997000:
return "29.97000";
break;
case timecode_2997000drop:
return "29.97000 drop";
break;
case timecode_30:
return "30";

View file

@ -39,6 +39,8 @@ enum TimecodeFormat {
timecode_25,
timecode_2997,
timecode_2997drop,
timecode_2997000,
timecode_2997000drop,
timecode_30,
timecode_30drop,
timecode_5994,