Processor frequency setting for energy minimization of streaming multimedia application