Both, the default status is software decoding, but if the video supports hardware decoding then it'll automatically switch to hardware decoding.
I downloaded a player on my iPhone, called VidOn player, does it support software decoding or hardware decoding to play videos?

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic