tBm = subtitleStream.getBitmap().scaleBilinear(trgWidth, trgHeight, subtitleStream.getPalette());
}
} else {
// create new palette
boolean dither = paletteMode == PaletteMode.CREATE_DITHERED;
BitmapWithPalette pb;
if (f != null) {
pb = subtitleStream.getBitmap().scaleFilter(trgWidth, trgHeight, subtitleStream.getPalette(), f, dither);
} else {
pb = subtitleStream.getBitmap().scaleBilinear(trgWidth, trgHeight, subtitleStream.getPalette(), dither);
}