This photographer was certainly pushing it by refusing to ID himself.
This photographer was breaking no laws, and these cops had no basis whatsoever to detain him.
This looks like a classic “contempt of cop,” scenario.
I hope this photographer sues the LAPD over this.