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;
}
Aggregations