X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fplayer_video.cc;h=c9ed6a6e4ffa6ded15d243efa693fe1b751b8341;hb=ed68bfad5c795afb342c5228f3c1dc7770a6d646;hp=376ace12818b971a1260262ee9c58243e3fc07ca;hpb=e5b744922fb6aed65ec13f22a9de0c86dd1bd561;p=dcpomatic.git diff --git a/src/lib/player_video.cc b/src/lib/player_video.cc index 376ace128..c9ed6a6e4 100644 --- a/src/lib/player_video.cc +++ b/src/lib/player_video.cc @@ -105,7 +105,7 @@ PlayerVideo::set_text (PositionImage image) /** Create an image for this frame. * @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. + * output pixel format. Two functions force 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. */ @@ -254,9 +254,9 @@ PlayerVideo::same (shared_ptr other) const } AVPixelFormat -PlayerVideo::always_rgb (AVPixelFormat) +PlayerVideo::force (AVPixelFormat, AVPixelFormat force_to) { - return AV_PIX_FMT_RGB24; + return force_to; } AVPixelFormat