All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.humble.video.customio.Helper Maven / Gradle / Ivy

Go to download

This is the main Humble Video Java library. It contains no native code, but all Java runtime code. It must be paired up with the correct humble-video-arch-*.jar library for your OS. For most users, depending on humble-video-all will work better.

The newest version!
/*******************************************************************************
 * Copyright (c) 2013, Art Clarke.  All rights reserved.
 *  
 * This file is part of Humble-Video.
 *
 * Humble-Video is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Humble-Video is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with Humble-Video.  If not, see .
 *******************************************************************************/
package io.humble.video.customio;

import io.humble.video.customio.FfmpegIO;
import io.humble.video.customio.FfmpegIOHandle;

/**
 * For Internal Use Only.
 * 
 * This class only exists to help tests in other packages run
 * the FFMPEG IO functions.
 * 

* Normal classes don't have access to these mechanisms, but we * expose them here. *

*/ public class Helper { public static int url_open(FfmpegIOHandle handle, String filename, int flags) { return FfmpegIO.url_open(handle, filename, flags); } public static int url_read(FfmpegIOHandle handle, byte[] buffer, int length) { return FfmpegIO.url_read(handle, buffer, length); } public static int url_close(FfmpegIOHandle handle) { return FfmpegIO.url_close(handle); } public static int url_write(FfmpegIOHandle handle, byte[] buffer, int length) { return FfmpegIO.url_write(handle, buffer, length); } public static long url_seek(FfmpegIOHandle handle, long position, int whence) { return FfmpegIO.url_seek(handle, position, whence); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy