getSourceRect(width, height) {
    if (!this.info) return new Rectangle(0, 0, width, height);

    const { streams = [{ width: 0, height: 0 }] } = this.info;
    let w, h, x, y;
    const ow = this.info.width || streams[0].width;
    const oh = this.info.height || streams[0].height;
    const s1 = width / height;
    const s2 = ow / oh;
    if (s1 >= s2) {
      w = ow;
      h = (ow / s1) >> 0;
      x = 0;
      y = ((oh - h) / 2) >> 0;
    } else {
      h = oh;
      w = (oh * s1) >> 0;
      y = 0;
      x = ((ow - w) / 2) >> 0;
    }

    return new Rectangle(x, y, w, h);
  }
Get the width and height of the material resource frame scaled according to the scene scale
@param {number} width - The width of the scene
@param {number} height - The height of the scene
@return {array} [x, y, width, height]
@public