| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ INTRODUCTION |
| This is an example demonstrating how to control placement of keyframes |
| on a frame-by-frame basis. |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ INTRODUCTION |
| Keyframes can be forced by setting the VPX_EFLAG_FORCE_KF bit of the |
| flags passed to `vpx_codec_control()`. In this example, we force a |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ PER_FRAME_CFG |
| flags |= VPX_EFLAG_FORCE_KF; |
| flags &= ~VPX_EFLAG_FORCE_KF; |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ PER_FRAME_CFG |
| The output of the encoder examples shows a 'K' rather than a dot '.' |
| when the encoder generates a keyframe. Note that every 8 frames a 'K' |