koliva
27th February 2013, 15:46
Hi all,
I am currently using swscale to convert my RGB frames to YUV420 frames. Here is my code part:
As you see, the input width&height is the same as output width&height in sws_getContext function. This means that I don't do any scaling at all. However, I see a problem with 1 pixel wide lines on the screen. If I use SWS_POINT, I see that, for example, 1 pixel red line goes to black if I move the line bit by bit. However, I don't see this effect that much if I use SWS_FAST_BILINEAR. Could you please verify my if SWS_FAST_BILINEAR or SWS_POINT are the algorithms for the scaler? Since I am doing no scaling here, why do I see change?
I know, I see these effects just because of 420 format but could you please tell me if there is a way of getting rid of it completely?
I am currently using swscale to convert my RGB frames to YUV420 frames. Here is my code part:
As you see, the input width&height is the same as output width&height in sws_getContext function. This means that I don't do any scaling at all. However, I see a problem with 1 pixel wide lines on the screen. If I use SWS_POINT, I see that, for example, 1 pixel red line goes to black if I move the line bit by bit. However, I don't see this effect that much if I use SWS_FAST_BILINEAR. Could you please verify my if SWS_FAST_BILINEAR or SWS_POINT are the algorithms for the scaler? Since I am doing no scaling here, why do I see change?
I know, I see these effects just because of 420 format but could you please tell me if there is a way of getting rid of it completely?