Package quicktime.std.image

Examples of quicktime.std.image.ImageDescription




    // store the width and height of the image in the media sample

    final ImageDescription imgDesc = (ImageDescription) mediaSample.description;

    width = imgDesc.getWidth();

    height = imgDesc.getHeight();



    // set up a drawing environment for coverting future frame images

    qdGraphics = new QDGraphics(imgDesc.getBounds());

    dSeq = new DSequence(imgDesc, qdGraphics, imgDesc.getBounds(), null, null, StdQTConstants.codecFlagUseImageBuffer, StdQTConstants.codecLosslessQuality,

        CodecComponent.bestFidelityCodec);

    // the sample will be decompressed into qdGraphics
View Full Code Here


      CSequence seq = new CSequence(gw, gRect, gw.getPixMap().getPixelSize(),
        CODEC_TYPE, CodecComponent.bestFidelityCodec,
        StdQTConstants.codecLosslessQuality,
        StdQTConstants.codecLosslessQuality,
        KEY_FRAME_RATE, null, StdQTConstants.codecFlagUpdatePrevious);
      ImageDescription imgDesc = seq.getDescription();

      // attempt to loop through all frames, scaling to fit the first frame
      for (int x = 0; x < frames; x++)
      {
        QDRect srcRect = new QDRect(0, 0, pics[x].getPictFrame().getWidthF(),
View Full Code Here

                    _videoSize, codecFlagUpdatePrevious, _compressedFrame);
            boolean isKeyFrame = info.getSimilarity() == 0;
            System.out.println("f#:" + _frameNumber + ",kf=" + isKeyFrame
                    + ",sim=" + info.getSimilarity());

            ImageDescription desc = _videoSequence.getDescription();

            // Add it to the video stream.
            _videoMedia.addSample(_imageHandle, 0, // dataOffset,
                    info.getDataSize(), 600 / _frameRateValue, // frameDuration, in 1/600ths of a second.
                    desc, 1, // one sample
View Full Code Here

                    _videoSize, codecFlagUpdatePrevious, _compressedFrame);
            boolean isKeyFrame = info.getSimilarity() == 0;
            System.out.println("f#:" + _frameNumber + ",kf=" + isKeyFrame
                    + ",sim=" + info.getSimilarity());

            ImageDescription desc = _videoSequence.getDescription();

            // Add it to the video stream.
            _videoMedia.addSample(_imageHandle, 0, // dataOffset,
                    info.getDataSize(), 600 / _frameRateValue, // frameDuration, in 1/600ths of a second.
                    desc, 1, // one sample
View Full Code Here

/*  47 */     super(paramSequenceGrabber, 1986618469);
/*     */   }
/*     */
/*     */   final SampleDescription makeDescription() throws QTException
/*     */   {
/*  52 */     return new ImageDescription(0);
/*     */   }
View Full Code Here

/*  99 */     super(moveToZero(paramMovie.getBounds()));
/* 100 */     this.m = paramMovie;
/* 101 */     this.g = paramQDGraphics;
/* 102 */     paramMovie.setGWorld(paramQDGraphics, null);
/* 103 */     PixMap localPixMap = paramQDGraphics.getPixMap();
/* 104 */     setImageData(localPixMap.getPixelData(), new ImageDescription(localPixMap));
/* 105 */     this.gModeOpaque = true;
/* 106 */     paramMovie.task(0);
/*     */   }
View Full Code Here

/*     */   }
/*     */
/*     */   public ImageDescription getIndImageDescription(int paramInt)
/*     */     throws QTException
/*     */   {
/* 255 */     ImageDescription localImageDescription = new ImageDescription(0);
/* 256 */     int i = SpriteMediaGetIndImageDescription(_ID(), (short)paramInt, QTObject.ID(localImageDescription));
/*     */
/* 259 */     StdQTException.checkError(i);
/*     */
/* 261 */     return localImageDescription;
View Full Code Here

/* 46 */         SetGWorld(arrayOfInt1[0], arrayOfInt2[0]);
/*    */     }
/* 48 */     StdQTException.checkError(i);
/*    */
/* 55 */     this.dialog = paramImageCompressionDialog;
/* 56 */     this.desc = new ImageDescription(arrayOfInt3[0], this)
/*    */     {
/*    */     };
/*    */   }
View Full Code Here

/*    */   }
/*    */
/*    */   final SampleDescription makeDescription()
/*    */     throws QTException
/*    */   {
/* 56 */     return new ImageDescription(0);
/*    */   }
View Full Code Here

/*    */   }
/*    */
/*    */   public ImageDescription getImageDescription(int paramInt)
/*    */     throws QTException
/*    */   {
/* 82 */     ImageDescription localImageDescription = new ImageDescription(0);
/* 83 */     getNativeSampleDescription(paramInt, localImageDescription);
/* 84 */     return localImageDescription;
/*    */   }
View Full Code Here

TOP

Related Classes of quicktime.std.image.ImageDescription

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.