Joint detection of full frame linear filtering and JPEG compression in digital images