With an HDMI adapter, different connections, such as DVI-D can be adapted to HDMI. This allows you to connect projectors or monitors with an older DVI connection to an HDMI cable. However, always make sure that the DVI port supports HDCP, otherwise film transfers are problematic.
To transfer signals to a MacBook, an adapter to USB C is required. With this and an HDMI cable, you can transfer from MacBook to your peripheral.