Learned image and video compression with deep neural networks