コード例 #1
0
    @Override
    protected void doStore() {
      super.doStore();

      int[] res = getStoredResolution();
      if (res == null) return;

      getPreferenceStore().setValue(PreferenceConstants.ENCODING_VIDEO_WIDTH, res[0]);
      getPreferenceStore().setValue(PreferenceConstants.ENCODING_VIDEO_HEIGHT, res[1]);
    }
コード例 #2
0
    @Override
    protected void doStore() {
      super.doStore();

      String rawZoom =
          getPreferenceStore().getString(PreferenceConstants.SCREEN_MOUSE_AREA_QUALITY);
      if (rawZoom == null || rawZoom.equals("")) return;

      int zoom = Integer.parseInt(rawZoom);
      int[] newRes = calculateResolutionForZoom(zoom);

      getPreferenceStore().setValue(PreferenceConstants.SCREEN_MOUSE_AREA_WIDTH, newRes[0]);
      getPreferenceStore().setValue(PreferenceConstants.SCREEN_MOUSE_AREA_HEIGHT, newRes[1]);
    }
コード例 #3
0
    @Override
    protected void doStore() {
      super.doStore();

      String maxBRValComboString = getPreferenceStore().getString(getPreferenceName());

      int maxBRValCombo;

      try {
        maxBRValCombo = Integer.parseInt(maxBRValComboString);
      } catch (NumberFormatException e) {
        maxBRValCombo = 0;
        return;
      }

      getPreferenceStore().setValue(PreferenceConstants.ENCODING_MAX_BITRATE, maxBRValCombo);
    }