Image coding based on zero crossing and energy information