[PATCH] wincodecs: Trigger conversion to target format in WriteSource()

Dmitry Timoshkov dmitry at baikal.ru
Wed Nov 23 17:46:36 CST 2016


Vincent Povirk <madewokherd at gmail.com> wrote:

> > Despite the removing a questionable FIXME this part of the code won't do
> > what you think it does.
> 
> I think it will request a specific pixel format, and the encoder may
> actually set a different format if it does not support that one. Am I
> missing something?

That's correct.

> > Besides, since there is no a single todo_wine
> > removed with this patch adding a bunch of tests for different encoders
> > is needed to show that the automatic conversion is really supposed to
> > happen, and that it doesn't depend on the implementation detail in some
> > of the encoders. According to my testing not every encoder does this
> > kind of thing, especially when a conversion needs a palette.
> 
> As long as some of them do, it makes sense to have it in common code,
> and if we need to refine the behavior for individual encoders we can
> do that later.

First thing to do (as usually) is to write some tests to see that auto-
conversion actually is supposed to happen. Most likely In reality a target
encoder simply needs to be fixed in order to support the missing format
natively.

-- 
Dmitry.



More information about the wine-devel mailing list