Package sisc.data

Examples of sisc.data.Pair


   * @return a <code>Pair</code> value representing the entry, or
   * <tt>FALSE</tt> if no such entry is present.
   */
  static public Value assq (Value l, Value v)
  {
    Pair list = pair(l);
    while (list != EMPTYLIST) {
      Pair entry = pair(list.car);
      if (entry.car.eq(v))
        return entry;
      list = pair(list.cdr);
    }
    return FALSE;
View Full Code Here


  {
    Parameters params = emptyParam;

    if (!sparams.eq(FALSE)) {
      params = new Parameters();
      Pair sparamValues = pair(pair(sparams).cdr);
      while (sparamValues != EMPTYLIST) {
        Pair entry = pair(sparamValues.car);
        String name = string(entry.car);
        String value = string(entry.cdr);
        params.setParameter(name, value);
        sparamValues = pair(sparamValues.cdr);
      }
View Full Code Here

      int lastTime = 0;
      do
      {
        if (Thread.interrupted())
        {
          throw new SchemeException(new Pair(), null, null);
        } // if (Thread.interrupted())
        TimeInfo ti = visualTrack.getNextInterestingTime(
          StdQTConstants.nextTimeMediaSample, mov.getTime(), 1);

        // if looped to earlier frame or finished selected section
View Full Code Here

    Vector<Movie> result = new Vector<Movie>();
    while ((now + cycle) <= length)
    {
      if (Thread.interrupted())
      {
        throw new SchemeException(new Pair(), null, null);
      } // if (Thread.interrupted())
      result.add(MovieUtils.extractSegment(mov, now, now + cycle));
      now = now + cycle;
    } // while ((now + cycle) <= length)
    if (now != length)
View Full Code Here

      temp.setBounds(movies.get(i).getBounds());
      for (int j = 0; j < (i + 1); j++)
      {
        if (Thread.interrupted())
        {
          throw new SchemeException(new Pair(), null, null);
        } // if (Thread.interrupted())
        Track video = mov.getIndTrackType(1, StdQTConstants.videoMediaType,
          StdQTConstants.movieTrackMediaType);
        Track newTrack = MovieUtils.addVideoTrack(video, temp);
        Matrix mat = new Matrix();
View Full Code Here

    Movie mov = new Movie();
    for (int i = 0; i < movies.size(); i++)
    {
      if (Thread.interrupted())
      {
        throw new SchemeException(new Pair(), null, null);
      } // if (Thread.interrupted())
      mov = MovieUtils.insertSegment(movies.get(i), mov, (i * cycle));
    } // for
    return mov;
  } // glueMovies(Vector<Movie>, float)
View Full Code Here

          thisCycle[k] = kluberizeOne(thisCycle[k], direction, 0.5f);

          // user terminated execution
          if (Thread.interrupted())
          {
            throw new SchemeException(new Pair(), null, null);
          } // if (Thread.interrupted())
        } // for
      } // for

      // for the last cycle
View Full Code Here

      while (go)
      {
        // user terminated execution
        if (Thread.interrupted())
        {
          throw new SchemeException(new Pair(), null, null);
        } // if (Thread.interrupted())

        // find the next frame
        TimeInfo ti = visualTrack.getNextInterestingTime(
          StdQTConstants.nextTimeMediaSample, mov.getTime(), 1);
View Full Code Here

      while (go)
      {
        // user terminated execution
        if (Thread.interrupted())
        {
          throw new SchemeException(new Pair(), null, null);
        } // if (Thread.interrupted())

        // find next frame
        TimeInfo ti = visualTrack.getNextInterestingTime(
          StdQTConstants.nextTimeMediaSample, mov.getTime(), 1);
View Full Code Here

      while (now < end)
      {
        // user terminated execution
        if (Thread.interrupted())
        {
          throw new SchemeException(new Pair(), null, null);
        } // if (Thread.interrupted())
        now = now + this.interval;
        if (now > end)
        {
          break;
View Full Code Here

TOP

Related Classes of sisc.data.Pair

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.