ParseParamsByteIO::ParseParamsByteIO( const ByteIO& stream_data, ParseParams &parse_params, EncoderParams &enc_params): ByteIO(stream_data), m_parse_params(parse_params) { if (enc_params.NumL1() == 0) { if (!enc_params.UsingAC()) { // Simple Profile m_parse_params.SetProfile(1); } else { // Main (Intra) profile m_parse_params.SetProfile(2); } } else { // Main (Long GOP) profile m_parse_params.SetProfile(8); } // FIXME - no support for Low Delay Profile }