The amount to shift to extract the last keyframe number from the granule position. This can be at most 31. th_info_init() will set this to a default value (currently
6, which is good for streaming applications), but you can set it to 0 to make every frame a keyframe. The maximum distance between key frames is
1<<keyframe_granule_shift. The keyframe frequency can be more finely controlled with TH_ENCCTL_SET_KEYFRAME_FREQUENCY_FORCE, which can also be adjusted during encoding (for example, to force the next frame to be a keyframe), but it cannot be set larger than the amount permitted by this field after the headers have been output.
Definition at line 299 of file codec.h.
Referenced by th_info_init().