two small functions to detect rgb/depth