tightvnc/rfb-sconn/EncoderStore.cpp
// FIXME: Instead of the two functions below, create a separate EncoderFactory
//        which would know if a given encoding code is supported and would be
//        able to create encoder instances corresponding to the given codes.
//        Such EncoderFactory would be useful for EncodeOptions as well.
Instead of the two functions below, create a separate EncoderFactory
which would know if a given encoding code is supported and would be
able to create encoder instances corresponding to the given codes.
Such EncoderFactory would be useful for EncodeOptions as well.
Instead of the two functions below create a separate EncoderFactory which would know if a given encoding code is supported and would be able to create encoder instances corresponding to the given codes . Such EncoderFactory would be useful for EncodeOptions as well .
bool EncoderStore::encodingSupported(int encType)
{
  return (encType == EncodingDefs::RAW ||
          encType == EncodingDefs::RRE ||
          encType == EncodingDefs::HEXTILE ||
          encType == EncodingDefs::ZRLE ||
          encType == EncodingDefs::TIGHT);
}
bool EncoderStore :: encodingSupported ( int encType ) { return ( encType == EncodingDefs :: RAW || encType == EncodingDefs :: RRE || encType == EncodingDefs :: HEXTILE || encType == EncodingDefs :: ZRLE || encType == EncodingDefs :: TIGHT ) ; }
FIXME: Instead of the two functions below, create a separate EncoderFactory
which would know if a given encoding code is supported and would be
able to create encoder instances corresponding to the given codes.
FIXME : Instead of the two functions below create a separate EncoderFactory which would know if a given encoding code is supported and would be able to create encoder instances corresponding to the given codes .