Examples of CSequence


Examples of org.omg.CosCollection.CSequence

        };
        return create( ops, expected_size, poa );
    };
    public CSequence create( OperationsOperations ops, int expected_size, org.omg.PortableServer.POA poa ){
        SequenceImpl collection = new SequenceImpl( ops, poa, this, expected_size );
        CSequence collection_ref = null;
        CSequencePOATie srvnt = new CSequencePOATie( collection );
        try {
            collection_ref = CSequenceHelper.narrow(poa.servant_to_reference(srvnt));
            collection.set_servant( srvnt );
        } catch(Exception e) {
View Full Code Here

Examples of org.omg.CosCollection.CSequence

    public CSequence create (OperationsOperations ops, int expected_size,
            org.omg.PortableServer.POA poa)
    {
        SequenceImpl collection = new SequenceImpl (ops, poa, this,
                                                    expected_size);
        CSequence collection_ref = null;
        CSequencePOATie srvnt = new CSequencePOATie (collection);
        try
        {
            collection_ref = CSequenceHelper.narrow (poa.servant_to_reference (srvnt));
            collection.set_servant (srvnt);
View Full Code Here

Examples of quicktime.std.image.CSequence

        gw.getPixMap().getPixelSize(), StdQTConstants.codecLosslessQuality,
        CODEC_TYPE, CodecComponent.bestFidelityCodec);
      QTHandle imageHandle = new QTHandle(rawImageSize, true);
      imageHandle.lock();
      RawEncodedImage compressed = RawEncodedImage.fromQTHandle(imageHandle);
      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(),
          pics[x].getPictFrame().getHeightF());

        // add 512 byte header so the grapics importer will think that it's
        // dealing with a pict file

        byte[] newPictBytes = new byte[pics[x].getSize() + 512];
        pics[x].copyToArray(0, newPictBytes, 512, newPictBytes.length - 512);
        pics[x] = new Pict(newPictBytes);

        // export the pict
        DataRef ref = new DataRef(pics[x],
          StdQTConstants.kDataRefQTFileTypeTag, "PICT");
        gi.setDataReference(ref);

        // create matrix to represent scaling of each pict
        Matrix drawMatrix = new Matrix();
        drawMatrix.rect(srcRect, gRect);
        gi.setMatrix(drawMatrix);
        gi.draw();

        // compress frame
        CompressedFrameInfo cfInfo = seq.compressFrame(gw, gRect,
          StdQTConstants.codecFlagUpdatePrevious, compressed);

        // check to see if frame is a key frame
        boolean syncSample = (cfInfo.getSimilarity() == 0);
        int flags = syncSample ? 0 : StdQTConstants.mediaSampleNotSync;
View Full Code Here

Examples of quicktime.std.image.CSequence

            _imageHandle = new QTHandle(size, true);
            _imageHandle.lock();
            _compressedFrame = RawEncodedImage.fromQTHandle(_imageHandle);

            _frameRateValue = ((IntToken) frameRate.getToken()).intValue();
            _videoSequence = new CSequence(_gw, _videoSize, _gw.getPixMap()
                    .getPixelSize(), kAnimationCodecType,
                    CodecComponent.bestFidelityCodec, codecNormalQuality,
                    codecNormalQuality, _frameRateValue, //1 key frame every second
                    null, //cTab,
                    0);
View Full Code Here

Examples of quicktime.std.image.CSequence

            _imageHandle = new QTHandle(size, true);
            _imageHandle.lock();
            _compressedFrame = RawEncodedImage.fromQTHandle(_imageHandle);

            _frameRateValue = ((IntToken) frameRate.getToken()).intValue();
            _videoSequence = new CSequence(_gw, _videoSize, _gw.getPixMap()
                    .getPixelSize(), kAnimationCodecType,
                    CodecComponent.bestFidelityCodec, codecNormalQuality,
                    codecNormalQuality, _frameRateValue, //1 key frame every second
                    null, //cTab,
                    0);
View Full Code Here

Examples of quicktime.std.image.CSequence

/* 240 */     this.gw = paramQDGraphics;
/*     */
/* 242 */     if ((this.vidTrack == null) && (!this.inPreflightMode)) {
/* 243 */       addNewTrack();
/*     */     }
/* 245 */     this.seq = new CSequence(this.gw, this.gwRect, this.gw.getPixMap().getPixelSize(), this.codecType, this.codec, this.spatialQuality, this.temporalQuality, this.keyFrameRate, null, 0);
/*     */
/* 255 */     this.recDesc = this.seq.getDescription();
/* 256 */     int i = QTImage.getMaxCompressionSize(this.gw, this.gwRect, this.gw.getPixMap().getPixelSize(), this.spatialQuality, this.codecType, this.codec);
/*     */
/* 262 */     this.imageHandle = new QTHandle(i, true);
View Full Code Here

Examples of quicktime.std.image.CSequence

/*     */
/*     */   /** @deprecated */
/*     */   public CSequenceToMemory(QDGraphics paramQDGraphics, QDRect paramQDRect, int paramInt1, int paramInt2, CodecComponent paramCodecComponent, int paramInt3, int paramInt4, int paramInt5, ColorTable paramColorTable, int paramInt6)
/*     */     throws QTException
/*     */   {
/*  79 */     this.seq = new CSequence(paramQDGraphics, paramQDRect, paramInt1, paramInt2, paramCodecComponent, paramInt3, paramInt4, paramInt5, paramColorTable, paramInt6);
/*     */
/*  81 */     this.frames = new Vector(16);
/*     */   }
View Full Code Here

Examples of quicktime.std.image.CSequence

/*     */   public void begin(QDGraphics paramQDGraphics, QDRect paramQDRect, int paramInt1, int paramInt2, CodecComponent paramCodecComponent, int paramInt3, int paramInt4, int paramInt5, ColorTable paramColorTable, int paramInt6)
/*     */     throws QTException
/*     */   {
/* 118 */     if (this.frames != null) this.frames.removeAllElements();
/*     */
/* 120 */     this.seq = new CSequence(paramQDGraphics, paramQDRect, paramInt1, paramInt2, paramCodecComponent, paramInt3, paramInt4, paramInt5, paramColorTable, paramInt6);
/*     */   }
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.