initial stuff for CEC frame decoding