[FFmpeg-devel] [PATCH] lavc/cfhd: deinterlacing introduced in cfhd

Kieran Kunhya kieran618 at googlemail.com
Mon May 21 23:42:42 EEST 2018


>
> +static inline void interlaced_vertical_filter(int16_t *output, int16_t
> *low, int16_t *high,
> +                         int width, int linesize, int plane)
> +{
> +    int i;
> +    int16_t even, odd;
> +    for (i = 0; i < width; i++) {
> +      even = (*low - *high)/2;
> +      odd  = (*low + *high)/2;
> +
> +      even = FFMIN(1023, even);
> +      even = FFMAX(0, even);
> +      odd  = FFMIN(1023, odd);
> +      odd  = FFMAX(0, odd);
> +
> +      output[i] = even;
> +      output[i + linesize] = odd;
> +      low++;
> +      high++;
> +    }
> +}
>

low[i] and high[i] instead of doing this pointer addition stuff.

Kieran


More information about the ffmpeg-devel mailing list