fix ci
This commit is contained in:
@@ -170,7 +170,11 @@ AVPixelFormat FFmpegUtils::GetFFmpegPixelFormat(const PixelFormat &pix_fmt,
|
||||
case PixelFormat::U16:
|
||||
return AV_PIX_FMT_RGB48;
|
||||
case PixelFormat::F16:
|
||||
#ifdef HAVE_AV_PIX_FMT_RGBF16
|
||||
return AV_PIX_FMT_RGBF16;
|
||||
#else
|
||||
return AV_PIX_FMT_RGB48;
|
||||
#endif
|
||||
case PixelFormat::F32:
|
||||
return AV_PIX_FMT_RGBF32;
|
||||
case PixelFormat::INVALID:
|
||||
@@ -184,7 +188,11 @@ AVPixelFormat FFmpegUtils::GetFFmpegPixelFormat(const PixelFormat &pix_fmt,
|
||||
case PixelFormat::U16:
|
||||
return AV_PIX_FMT_RGBA64;
|
||||
case PixelFormat::F16:
|
||||
#ifdef HAVE_AV_PIX_FMT_RGBAF16
|
||||
return AV_PIX_FMT_RGBAF16;
|
||||
#else
|
||||
return AV_PIX_FMT_RGBA64;
|
||||
#endif
|
||||
case PixelFormat::F32:
|
||||
return AV_PIX_FMT_RGBAF32;
|
||||
case PixelFormat::INVALID:
|
||||
|
||||
@@ -93,7 +93,11 @@ static AVPixelFormat GetOfxAVPixelFormat(const OFX::Host::ImageEffect::Image &im
|
||||
} else if (pixel_format == olive::core::PixelFormat::U16) {
|
||||
pix_fmt = AV_PIX_FMT_GRAY16LE;
|
||||
} else if (pixel_format == olive::core::PixelFormat::F16) {
|
||||
#ifdef HAVE_AV_PIX_FMT_GRAYF16
|
||||
pix_fmt = AV_PIX_FMT_GRAYF16;
|
||||
#else
|
||||
pix_fmt = AV_PIX_FMT_GRAY16LE;
|
||||
#endif
|
||||
} else if (pixel_format == olive::core::PixelFormat::F32) {
|
||||
pix_fmt = AV_PIX_FMT_GRAYF32;
|
||||
}
|
||||
@@ -871,7 +875,11 @@ static AVPixelFormat GetDestinationAVPixelFormat(const olive::VideoParams ¶m
|
||||
} else if (params.format() == olive::core::PixelFormat::U16) {
|
||||
pix_fmt = AV_PIX_FMT_GRAY16LE;
|
||||
} else if (params.format() == olive::core::PixelFormat::F16) {
|
||||
#ifdef HAVE_AV_PIX_FMT_GRAYF16
|
||||
pix_fmt = AV_PIX_FMT_GRAYF16;
|
||||
#else
|
||||
pix_fmt = AV_PIX_FMT_GRAY16LE;
|
||||
#endif
|
||||
} else if (params.format() == olive::core::PixelFormat::F32) {
|
||||
pix_fmt = AV_PIX_FMT_GRAYF32;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user