That picture says 78D05AL, not 78005... It's just a surface mount (TO-252) version of the ordinary 7805 (TO-220) regulator, 5V 1A, 2V dropout voltage.
It looks horrible but I'm not so sure it's broken, except for the yellow wire. The tab is supposed to be that short.
It seems that white = +7-12V input (from adapter), black = ground/negative, yellow = +5V output (to cam.)