Guest User

Untitled

a guest
Mar 12th, 2018
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. static inline void interlaced_vertical_filter(int16_t *output, int16_t *low, int16_t *high,
  2. int width)
  3. {
  4. int i;
  5. for (i = 0; i < width; i++) {
  6. output[i] = (*low + *high)/2;
  7. output[i + width] = (*low - *high)/2;
  8. low++;
  9. high++;
  10. }
  11. }
  12.  
  13. dst = (int16_t *)pic->data[act_plane];
  14. low = s->plane[plane].l_h[6];
  15. high = s->plane[plane].l_h[7];
  16. for (i = 0; i < lowpass_height; i++) {
  17. interlaced_vertical_filter(dst, low, high, lowpass_width * 2);
  18. low += lowpass_width * 2;
  19. high += lowpass_width * 2;
  20. dst += pic->linesize[act_plane];
  21. }
Add Comment
Please, Sign In to add comment