* @param pixel_format Function which is called to decide what pixel format the output image should be;
* it is passed the pixel format of the input image from the ImageProxy, and should return the desired
* output pixel format. Two functions always_rgb and keep_xyz_or_rgb are provided for use here.
+ * @param aligned true if the output image should be aligned to 32-byte boundaries.
+ * @param fast true to be fast at the expense of quality.
*/
shared_ptr<Image>
PlayerVideo::image (dcp::NoteHandler note, function<AVPixelFormat (AVPixelFormat)> pixel_format, bool aligned, bool fast) const
);
if (_subtitle) {
- out->alpha_blend (_subtitle->image, _subtitle->position);
+ out->alpha_blend (Image::ensure_aligned (_subtitle->image), _subtitle->position);
}
if (_fade) {
{
return p == AV_PIX_FMT_XYZ12LE ? AV_PIX_FMT_XYZ12LE : AV_PIX_FMT_RGB48LE;
}
+
+void
+PlayerVideo::prepare ()
+{
+ _in->prepare (_inter_size);
+}