def METHOD_NAME(self, caps):
    bmp = caps[CapabilityType.CAPSTYPE_BITMAP]
    (w, h) = (bmp.desktopWidth, bmp.desktopHeight)
    self.imageHandler.resize(w, h)
    if w % 2 != 0:
        self.scale = True
        w += 1
    if h % 2 != 0:
        self.scale = True
        h += 1
    self.stream.width = w
    self.stream.height = h
    super().METHOD_NAME(caps)