Energy and quality-aware multimedia signal processing