Examples of Movie


Examples of org.superbiz.testinjection.Movie

    public void test() throws Exception {

        userTransaction.begin();

        try {
            entityManager.persist(new Movie("Quentin Tarantino", "Reservoir Dogs", 1992));
            entityManager.persist(new Movie("Joel Coen", "Fargo", 1996));
            entityManager.persist(new Movie("Joel Coen", "The Big Lebowski", 1998));

            List<Movie> list = movies.getMovies();
            assertEquals("List.size()", 3, list.size());

            for (Movie movie : list) {
View Full Code Here

Examples of pivot.wtk.media.Movie

     *
     * @param movie
     * The movie to set, or <tt>null</tt> for no movie.
     */
    public void setMovie(Movie movie) {
        Movie previousMovie = this.movie;

        if (previousMovie != movie) {
            this.movie = movie;
            movieViewListeners.movieChanged(this, previousMovie);
        }
View Full Code Here

Examples of quicktime.std.movies.Movie

    }
   
  }

   public boolean addSelectionToMovie(String mess, MakeMedia mov, boolean includeMeta) {
    Movie mc = null;
   
    mc = setSelection(); // sets the selection in the movie
    if (mc == null) {
     System.out.println("Can't create a movie for "+movieURL+" in MovieSelection.addSelectionToMovie()");
     return false;
View Full Code Here

Examples of quicktime.std.movies.Movie

    }
    return true;
  }

   public Movie setSelection() {
       Movie mc = null;
    if (mc == null) {
     // fetch or create a moviecontroller for the selected movie
     MediaPresenter presenter = VideoGrok.getPresenter();
     try {
      mc = presenter.getMovieFromURL(movieURL);
     } catch (Exception e) {
      e.printStackTrace();
      mc = null;
     }
    }
    if (mc == null) {
     System.out.println("Can't create a movie reference for "+movieURL+" in MovieSelection.setSelection()");
     return mc;
    }
    try {
      int sel = (int) selection.getValue();
      int dur = (int) duration.getValue();
      if (dur == 0) dur = mc.getDuration() - sel;

      mc.setSelection(sel, dur);
    } catch (Exception e) {
     System.out.println("Could not set selection "+selection.toString()+" "+duration.toString()+" in MovieSelection.setSelection()");
    }
    return mc;
   }
View Full Code Here

Examples of quicktime.std.movies.Movie

   * @return result  Whether or not Phoenix is functioning correctly
   */
  public static String test()
  {
    // get a standard file chooser
    Movie mov = null;
    QTFile file = null;
    try
    {
      file = QTFile.standardGetFilePreview(QTFile.kStandardQTFileTypes);
      mov = Movie.fromFile(OpenMovieFile.asRead(file));
    } // try
    catch (QTException qte)
    {
      qte.printStackTrace();
    } // catch (QTException)

    // retrieve a pict at time 0 (int time on mov's QT timescale) of all
    // enabled video tracks
    try
    {
      quicktime.qd.Pict pic = mov.getPict(0);
      System.out.println("width = " + pic.getPictFrame().getWidth()
        + ", height = " + pic.getPictFrame().getHeight());
      if ((pic.getPictFrame().getWidth() < 0)
          || (pic.getPictFrame().getHeight() < 0))
      {
View Full Code Here

Examples of quicktime.std.movies.Movie

    // if user clicked "open" from menu
    if (source == this.menuOpen)
    {
      // open a file selector, add movie to ClipsWindow, and open movie
      Movie mov = PhoenixController.movieController.openFile();
      PhoenixController.clipsController.addClip(mov,
        PhoenixController.movieController.name);
      try
      {
        PhoenixController.movieController.showMovie(mov, "preview");
View Full Code Here

Examples of quicktime.std.movies.Movie

   *
   * @return movie  Requested movie object
   */
  public Movie openFile()
  {
    Movie local = null;
    QTFile file = null;

    // open a file chooser
    try
    {
View Full Code Here

Examples of quicktime.std.movies.Movie

   * @param path    Path of desired file
   * @return movie  Requested movie object
   */
  public Movie openFile(String path)
  {
    Movie local = null;

    // attempt to open the file
    try
    {
      QTFile file = new QTFile(path);
View Full Code Here

Examples of quicktime.std.movies.Movie

   *                   true)
   * @return result  Resized mov
   */
  public static Movie resize(Movie mov, boolean aspect, int width, int height)
  {
    Movie movie = null;
    try
    {
      // create a new copy of the movie
      movie = cloneMovie(mov);
      Track video = movie.getIndTrackType(1,
        StdQTConstants.videoMediaType,
        StdQTConstants.movieTrackMediaType);
      QDDimension dim_size = video.getSize();

      // aspect ratio before resizing.
View Full Code Here

Examples of quicktime.std.movies.Movie

  // Published by O'Reilly, 2005
  // pp. 166~171
  public static Movie chromaKey(Movie movFore, Movie movBack, int red,
    int green, int blue)
  {
    Movie result = null;
    QDColor key = new QDColor((float)red / 255, (float)green / 255,
      (float)blue / 255);
    try
    {
      result = new Movie();

      // add front track
      Track trackFore = movFore.getIndTrackType(1,
        StdQTConstants.visualMediaCharacteristic,
        StdQTConstants.movieTrackCharacteristic);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.