/*
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

package com.facebook.fresco.ui.common;

public class DimensionsInfo {

  private int mViewportWidth;
  private int mViewportHeight;

  public DimensionsInfo(int viewportWidth, int viewportHeight) {
    mViewportWidth = viewportWidth;
    mViewportHeight = viewportHeight;
  }

  public int getViewportWidth() {
    return mViewportWidth;
  }

  public int getViewportHeight() {
    return mViewportHeight;
  }

  @Override
  public String toString() {
    return "DimensionsInfo{"
        + "mViewportWidth="
        + mViewportWidth
        + ", mViewportHeight="
        + mViewportHeight
        + '}';
  }
}

/*
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

package com.facebook.fresco.ui.common;

public class DimensionsInfo {

  private final int mViewportWidth;
  private final int mViewportHeight;

  private final int mEncodedImageWidth;
  private final int mEncodedImageHeight;

  private final int mDecodedImageWidth;
  private final int mDecodedImageHeight;

  public DimensionsInfo(
      int viewportWidth, int viewportHeight,
      int encodedImageWidth, int encodedImageHeight,
      int decodedImageWidth, int decodedImageHeight) {
    mViewportWidth = viewportWidth;
    mViewportHeight = viewportHeight;
    mEncodedImageWidth = encodedImageWidth;
    mEncodedImageHeight = encodedImageHeight;
    mDecodedImageWidth = decodedImageWidth;
    mDecodedImageHeight = decodedImageHeight;
  }

  public int getViewportWidth() {
    return mViewportWidth;
  }

  public int getViewportHeight() {
    return mViewportHeight;
  }

  public int getEncodedImageWidth() {
    return mEncodedImageWidth;
  }

  public int getEncodedImageHeight() {
    return mEncodedImageHeight;
  }

  public int getDecodedImageWidth() {
    return mDecodedImageWidth;
  }

  public int getDecodedImageHeight() {
    return mDecodedImageHeight;
  }

  @Override
  public String toString() {
    return "DimensionsInfo{" +
        "mViewportWidth=" + mViewportWidth +
        ", mViewportHeight=" + mViewportHeight +
        ", mEncodedImageWidth=" + mEncodedImageWidth +
        ", mEncodedImageHeight=" + mEncodedImageHeight +
        ", mDecodedImageWidth=" + mDecodedImageWidth +
        ", mDecodedImageHeight=" + mDecodedImageHeight +
        '}';
  }
}

Add encoded and decoded image dimensions
Add encoded and decoded image dimensions

Reviewed By: oprisnik

Differential Revision: D18244312

fbshipit-source-id: ee618aa0ef1a638e81922c33e0e0da27eea62f67
