Examples of RawImage


Examples of com.android.ddmlib.RawImage

        final boolean landscape = mediator.isLandscape();
        final boolean ccw = p.getBoolean(PREF_ROTATION_CCW, true);
        ImageEx image = null;
        if (d != null) {
            try {
                RawImage screenshot = landscape ? device.getScreenshot().getRotated() : device.getScreenshot();

                if (screenshot != null) {
                    image = renderImage(screenshot, landscape, ccw);
                    image.setLandscape(landscape);
                    image.setCcw(ccw);
View Full Code Here

Examples of com.android.ddmlib.RawImage

        final boolean landscape = mediator.isLandscape();
        final boolean ccw = p.getBoolean(PREF_ROTATION_CCW, true);
        ImageEx image = null;
        if (d != null) {
            try {
                RawImage screenshot = landscape ? device.getScreenshot().getRotated() : device.getScreenshot();

                if (screenshot != null) {
                    image = renderImage(screenshot, landscape, ccw);
                    image.setLandscape(landscape);
                    image.setCcw(ccw);
View Full Code Here

Examples of com.android.ddmlib.RawImage

        final boolean landscape = mediator.isLandscape();
        final boolean ccw = p.getBoolean(PREF_ROTATION_CCW, true);
        ImageEx image = null;
        if (d != null) {
            try {
                RawImage screenshot = landscape ? device.getScreenshot().getRotated() : device.getScreenshot();

                if (screenshot != null) {
                    image = renderImage(screenshot, landscape, ccw);
                    image.setLandscape(landscape);
                    image.setCcw(ccw);
View Full Code Here

Examples of com.android.ddmlib.RawImage

   *
   * @return BufferedImage, or null if the device frame buffer was only partially read
   * @throws IOException
   */
  public BufferedImage getImage() throws IOException {
    RawImage rawImage = device.getScreenshot();

    if (rawImage == null) {
      // Indicates other problems, such as partial replies from the ADB frame-buffer,
      // or an unsupported version of the image format for the current ddmlib
      // (have to check log)
      return null;
    }

    BufferedImage image = new BufferedImage(rawImage.width, rawImage.height, BufferedImage.TYPE_INT_ARGB);

    int index = 0;
    int indexInc = rawImage.bpp >> 3;

    for (int y = 0; y < rawImage.height; y++) {
      for (int x = 0; x < rawImage.width; x++, index += indexInc) {
        int value = rawImage.getARGB(index);
        image.setRGB(x, y, value);
      }
    }

    if (imageFilters != null) {
View Full Code Here

Examples of com.android.ddmlib.RawImage

    rawImage = rawImage.getRotated();
    return this;
  }

  public ScreenImage copy() {
    ScreenImage copy = new ScreenImage(new RawImage());
    copy.rawImage.version = this.rawImage.version;
    copy.rawImage.bpp = this.rawImage.bpp;
    copy.rawImage.size = this.rawImage.size;
    copy.rawImage.width = this.rawImage.width;
    copy.rawImage.height = this.rawImage.height;
View Full Code Here

Examples of com.bbn.openmap.layer.rpf.corba.CRpfFrameProvider.RawImage

                                       short x, short y, String uniqueID) {

        Debug.message("crfpdetail",
                "CRFPServer: handling raw subframe request for client");

        RawImage ri = new RawImage();
        RpfIndexedImageData riid = null;

        try {
            currentCache = getCurrentCache(uniqueID);
View Full Code Here

Examples of com.bbn.openmap.layer.rpf.corba.CRpfFrameProvider.RawImage

        Debug.message("crfp",
                "CRFPClient: getting raw subframe data from server.");

        try {
            RawImage ri = serv.getRawSubframeData((short) tocNumber,
                    (short) entryNumber,
                    (short) x,
                    (short) y,
                    clientID);
View Full Code Here

Examples of org.photovault.dcraw.RawImage

     @param f The raw file to read
     @return <code>true</code> if meta data was succesfully read, <code>false</code>
     otherwise (e.g. if f was not a raw image file.
     */
    private boolean updateFromRawFileMetadata( File f ) {
        RawImage ri;
        try {
            ri = new RawImage(f);
        } catch (PhotovaultException ex) {
            return false;
        }
        if ( !ri.isValidRawFile() ) {
            return false;
        }
        setShootTime( ri.getTimestamp() );
        setFStop( ri.getAperture() );
        setShutterSpeed( ri.getShutterSpeed() );
        setFilmSpeed( ri.getFilmSpeed() );
        String camera = ri.getCamera();
        if ( camera.length() > CAMERA_LENGTH ) {
            camera = camera.substring( 0, CAMERA_LENGTH );
        }
        setCamera( camera );
        setFilm( "Digital" );
        setFocalLength( ri.getFocalLength() );
       
        ri.autoExpose();
        setRawSettings( ri.getRawSettings() );
        return true;
    }
View Full Code Here

Examples of org.photovault.dcraw.RawImage

            PhotovaultImage img = imgFactory.create( imageFile, false, false );
            if ( channelMap != null ) {
                img.setColorAdjustment( channelMap );
            }
            if ( img instanceof RawImage ) {
                RawImage ri = (RawImage) img;
                ri.setRawSettings( rawSettings );
            }
            if ( createPreview ) {
                // Calculate preview image size
                int previewWidth = img.getWidth();
                int previewHeight = img.getHeight();
View Full Code Here

Examples of org.photovault.dcraw.RawImage

            img.setRotation( prefRotation - original.getRotated() );
            if ( channelMap != null ) {
                img.setColorAdjustment( channelMap );
            }
            if ( img instanceof RawImage ) {
                RawImage ri = (RawImage) img;
                if ( rawSettings != null ) {
                    ri.setRawSettings( rawSettings );
                } else if ( rawSettings == null ) {
                    // No raw settings for this photo yet, let's use
                    // the thumbnail settings
                    rawSettings = ri.getRawSettings();
                    txw.lock( rawSettings, Transaction.WRITE );
                }
            }
            if ( width > 0 ) {
                exportImage =img.getRenderedImage( width, height, false );
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.