Package com.googlecode.javacpp

Examples of com.googlecode.javacpp.PointerPointer


                            if (deinterlace) {
                                avpicture_deinterlace(pFrame, pFrame, pCodecCtx.pix_fmt(), pCodecCtx.width(), pCodecCtx.height());
                            }

                            // Convert the image from its native format to RGB
                            sws_scale(img_convert_ctx, new PointerPointer(pFrame), pFrame.linesize(), 0,
                                    pCodecCtx.height(), new PointerPointer(pFrameRGB), pFrameRGB.linesize());
                            return_image.imageData(buffer);
                            return_image.widthStep(pFrameRGB.linesize(0));
                            break;
                        case RAW:
                            assert (pCodecCtx.width()  == return_image.width() &&
View Full Code Here


                        throw new Exception("Cannot initialize the conversion context");
                    }
                }
                tempPicture.data(0, frame.imageData());
                tempPicture.linesize(0, frame.widthStep());
                sws_scale(img_convert_ctx, new PointerPointer(tempPicture), tempPicture.linesize(),
                          0, c.height(), new PointerPointer(picture), picture.linesize());
            } else {
                picture.data(0, frame.imageData());
                picture.linesize(0, frame.widthStep());
            }
        }
View Full Code Here

    }
    public static native void cvFillConvexPoly(CvArr img, CvPoint pts, int npts,
            @ByVal CvScalar color, int line_type/*=8*/, int shift/*=0*/);
    public static void cvFillPoly(CvArr img, CvPoint[] pts, int[] npts,
            int contours, @ByVal CvScalar color, int line_type/*=8*/, int shift/*=0*/) {
        cvFillPoly(img, new PointerPointer(pts), npts, contours, color, line_type, shift);
    }
View Full Code Here

    public static native void cvFillPoly(CvArr img, @ByPtrPtr CvPoint pts, int[] npts,
            int contours, @ByVal CvScalar color, int line_type/*=8*/, int shift/*=0*/);
    public static void cvPolyLine(CvArr img, CvPoint[] pts,
            int[] npts, int contours, int is_closed, @ByVal CvScalar color,
            int thickness/*=1*/, int line_type/*=8*/, int shift/*=0*/) {
        cvPolyLine(img, new PointerPointer(pts), npts, contours, is_closed, color, thickness, line_type, shift);
    }
View Full Code Here

        return (hist.type() & CV_HIST_RANGES_FLAG) != 0;
    }

    public static CvHistogram cvCreateHist(int dims, int[] sizes, int type,
            float[][] ranges/*=null*/, int uniform/*=1*/) {
        return cvCreateHist(dims, sizes, type, ranges == null ? null : new PointerPointer(ranges), uniform);
    }
View Full Code Here

    }
    public static native CvHistogram cvCreateHist(int dims, int[] sizes, int type,
            @Cast("float**") PointerPointer ranges/*=null*/, int uniform/*=1*/);
    public static void cvSetHistBinRanges(CvHistogram hist,
            float[][] ranges, int uniform/*=1*/) {
        cvSetHistBinRanges(hist, ranges == null ? null : new PointerPointer(ranges), uniform);
    }
View Full Code Here

    public static native void cvSetHistBinRanges(CvHistogram hist,
            @Cast("float**") PointerPointer ranges, int uniform/*=1*/);

    public static CvHistogram cvMakeHistHeaderForArray(int dims, int[] sizes, CvHistogram hist,
            float[] data, float[][] ranges/*=null*/, int uniform/*=1*/) {
        return cvMakeHistHeaderForArray(dims, sizes, hist, data, ranges == null ? null : new PointerPointer(ranges), uniform);
    }
View Full Code Here

    }
    public static native CvHistogram cvMakeHistHeaderForArray(int dims, int[] sizes, CvHistogram hist,
            float[] data, @Cast("float**") PointerPointer ranges/*=null*/, int uniform/*=1*/);
    public static CvHistogram cvMakeHistHeaderForArray(int dims, int[] sizes, CvHistogram hist,
            FloatPointer data, float[][] ranges/*=null*/, int uniform/*=1*/) {
        return cvMakeHistHeaderForArray(dims, sizes, hist, data, ranges == null ? null : new PointerPointer(ranges), uniform);
    }
View Full Code Here

    // See Also:
    //  flycaptureStart(), flycaptureGrabImage2(), flycaptureSetGrabTimeoutEx()
    //
    public static int flycaptureGrabImage(FlyCaptureContext context, BytePointer[] ppImageBuffer,
            int[] piRows, int[] piCols, int[] piRowInc, int[] pVideoMode) {
        return flycaptureGrabImage(context, new PointerPointer(ppImageBuffer),
                piRows, piCols, piRowInc, pVideoMode);
    }
View Full Code Here

TOP

Related Classes of com.googlecode.javacpp.PointerPointer

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.