On 2013-05-06 11:18:29 +0300, Martin Storsjö wrote:
> On Fri, 26 Apr 2013, Janne Grunau wrote:
>
> > Converting FormatEntry to bitfields.
> > ---
> > libswscale/swscale.h | 7 +++++++
> > libswscale/utils.c | 13 ++++++++++++-
> > libswscale/version.h | 2 +-
> > 3 files changed, 20 insertions(+), 2 deletions(-)
> >
> > const char *sws_format_name(enum AVPixelFormat format)
> > @@ -879,6 +887,8 @@ av_cold int sws_init_context(SwsContext *c, SwsFilter
> > *srcFilter,
> >
> > unscaled = (srcW == dstW && srcH == dstH);
> >
> > + if (!(unscaled && sws_isSupportedEndiannessConversion(srcFormat) &&
> > + av_pix_fmt_equal_except_endianness(srcFormat, dstFormat))) {
>
> Could this share the pixel format check with swscale_unscaled.c in some
> way, to avoid having to add the public function with known flaws?
The checks in swscale_unscaled can be simplified with the
swap_endianness function (without known flaws).
Janne
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel