decode masked frame data