Package org.bridj

Examples of org.bridj.Pointer.release()


                                                            | TurbojpegLibrary.TJFLAG_FASTDCT);
    mLastCompressionElapsedTimeInMs = lCompressionTime.time(TimeUnit.MILLISECONDS);
    mCompressedImageByteBuffer.limit((int) mPointerToCompressedBufferEffectiveSize.getCLong());
    mLastCompressionRatio = ((double) mCompressedImageByteBuffer.limit()) / p8BitImageByteBuffer.limit();

    lPointerTo8BitImageByteBuffer.release();
    return lErrorCode == 0;

  }

  private void allocateCompressedBuffer(final int pLength)
View Full Code Here


    TurbojpegLibrary.tjDecompressHeader(mPointerToDecompressor,
                                        lPointerTo8BitImageCompressedByteBuffer,
                                        lCompressedImageBufferSize,
                                        mPointerToWidth,
                                        mPointerToHeight);
    lPointerTo8BitImageCompressedByteBuffer.release();

    final int lWidth = mPointerToWidth.getInt();
    final int lHeight = mPointerToHeight.getInt();

    allocateDecompressedBuffer(lWidth * lHeight);
 
View Full Code Here

                                                          TurbojpegLibrary.TJFLAG_NOREALLOC | TurbojpegLibrary.TJFLAG_FORCESSE3
                                                              | TurbojpegLibrary.TJFLAG_FASTDCT);

    mLastDecompressionElapsedTimeInMs = lCompressionTime.time(TimeUnit.MILLISECONDS);

    lPointerTo8BitImageCompressedByteBuffer.release();
   
   
    return lErrorCode == 0;
  }
View Full Code Here

        } catch (IOException e) {
            if (ogrDriver != null) {
                Pointer driver = OGRGetDriverByName(pointerToCString(ogrDriver));
                dataSource = OGR_Dr_CreateDataSource(driver, pointerToCString(ogrSourceName),
                        optionsPointer);
                driver.release();

                if (dataSource == null)
                    throw new IOException("Could not create OGR data source with driver "
                            + ogrDriver + " and options " + options);
            } else {
View Full Code Here

        } catch (IOException e) {
            if (ogrDriver != null) {
                Pointer driver = OGRGetDriverByName(pointerToCString(ogrDriver));
                dataSource = OGR_Dr_CreateDataSource(driver, pointerToCString(ogrSourceName),
                        optionsPointer);
                driver.release();

                if (dataSource == null)
                    throw new IOException("Could not create OGR data source with driver "
                            + ogrDriver + " and options " + options);
            } else {
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.