On the dependency between compression and demosaicing in digital cinema