code: func (w *Webcam) GetSupportedFrameSizes(f PixelFormat) []FrameSize {
  	result := make([]FrameSize, 0)
  
  	var index uint32
  	var err error
  
  	for index = 0; err == nil; index++ {
  		s, err := getFrameSize(w.fd, index, uint32(f))
  
  		if err != nil {
  			break
  		}
  
  		result = append(result, s)
  	}
  
  	return result
  }
docs: // Returns supported frame sizes for a given image format