* extract rotateFrame as free function, rename to applyMetadataRotation * LegacyCapture::get() always return 0, if cap is null