Blender Git Loki

Git Commits -> Revision a0390e5

Revision a0390e5 by Peter Schlaile (master)
October 21, 2007, 15:42 (GMT)
== Core ==

This adds fractional FPS support to blender and should finally
make NTSC work correctly.

NTSC has an FPS of 30.0/1.001 which is approximately 29.97 FPS.
Therefore, it is not enough to simply make frs_sec a float, since
you can't represent this accurately enough.
I added a seperate variable frs_sec_base and FPS is now
frs_sec / frs_sec_base.

I changed all the places, where frs_sec was used to my best knowledge.

For convenience sake, I added several macros, that should make life
easier in the future:

FRA2TIME(a) : convert frame number to a double precision time in seconds
TIME2FRA(a) : the same in the opposite direction
FPS : return current FPS as a double precision number
(last resort)

This closes bug #6715
Standard framerates not supported / breaks sync -- 23.967 29.967 etc.

https://projects.blender.org/tracker/?func=detail&aid=6715&group_id=9&atid=125

Please give this heavy testing with NTSC files, quicktime in/export
and the python interface.
Errors are most probably only spotted on longer timelines, so that is
also important.

The patch was tested by Troy Sobotka and me, so it most probably should
work out of the box, but wider testing is important, since errors are
very subtle.

Enjoy!

Commit Details:

Full Hash: a0390e5cc340febece6e2a7e61085033d79742e2
SVN Revision: 12320
Parent Commit: bacfc9e
Lines Changed: +188, -101

29 Modified Paths:

/source/blender/avi/intern/options.c (+2, -2) (Diff)
/source/blender/blenkernel/intern/scene.c (+1, -0) (Diff)
/source/blender/blenkernel/intern/writeavi.c (+3, -2) (Diff)
/source/blender/blenkernel/intern/writeffmpeg.c (+12, -4) (Diff)
/source/blender/blenloader/intern/readfile.c (+11, -1) (Diff)
/source/blender/include/BIF_editsound.h (+1, -1) (Diff)
/source/blender/include/blendef.h (+3, -0) (Diff)
/source/blender/makesdna/DNA_scene_types.h (+5, -4) (Diff)
/source/blender/python/api2_2x/sceneRender.c (+51, -13) (Diff)
/source/blender/python/api2_2x/sceneSequence.c (+1, -1) (Diff)
/source/blender/quicktime/apple/quicktime_export.c (+27, -14) (Diff)
/source/blender/src/buttons_scene.c (+12, -6) (Diff)
/source/blender/src/drawipo.c (+11, -11) (Diff)
/source/blender/src/drawseq.c (+2, -2) (Diff)
/source/blender/src/drawsound.c (+5, -3) (Diff)
/source/blender/src/drawtime.c (+2, -2) (Diff)
/source/blender/src/drawview.c (+1, -1) (Diff)
/source/blender/src/editipo.c (+1, -1) (Diff)
/source/blender/src/editipo_mods.c (+1, -1) (Diff)
/source/blender/src/editnla.c (+1, -1) (Diff)
/source/blender/src/editscreen.c (+1, -1) (Diff)
/source/blender/src/editseq.c (+3, -2) (Diff)
/source/blender/src/edittime.c (+5, -5) (Diff)
/source/blender/src/hddaudio.c (+1, -1) (Diff)
/source/blender/src/header_time.c (+2, -2) (Diff)
/source/blender/src/seqaudio.c (+9, -12) (Diff)
/source/blender/src/transform.c (+4, -4) (Diff)
/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp (+4, -2) (Diff)
/source/gameengine/Converter/BL_BlenderDataConversion.cpp (+6, -2) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021