Search in sources :

Example 1 with InternalJavaProcessImpl

use of net.pms.io.InternalJavaProcessImpl in project UniversalMediaServer by UniversalMediaServer.

the class DCRaw method launchTranscode.

@Override
public ProcessWrapper launchTranscode(DLNAResource dlna, DLNAMediaInfo media, OutputParams params) throws IOException {
    if (media == null || dlna == null) {
        return null;
    }
    final String filename = dlna.getFileName();
    byte[] image = getImage(params, filename, media.getImageInfo());
    if (image == null) {
        return null;
    }
    ProcessWrapper pw = new InternalJavaProcessImpl(new ByteArrayInputStream(image));
    return pw;
}
Also used : ProcessWrapper(net.pms.io.ProcessWrapper) ByteArrayInputStream(java.io.ByteArrayInputStream) InternalJavaProcessImpl(net.pms.io.InternalJavaProcessImpl)

Aggregations

ByteArrayInputStream (java.io.ByteArrayInputStream)1 InternalJavaProcessImpl (net.pms.io.InternalJavaProcessImpl)1 ProcessWrapper (net.pms.io.ProcessWrapper)1