Ticket #6694: color_h_alternate.patch

File color_h_alternate.patch, 2.7 KB (added by anonymous, 11 years ago)

Alternate way of fixing multiple pointer definitions, using extern

  • filters/greedyhdeint/color.h

     
    11#ifndef _COLOR_H_
    22#define _COLOR_H_
    33
    4 void (*yv12_to_yuy2)
    5   (const unsigned char *y_src, int y_src_pitch,
    6    const unsigned char *u_src, int u_src_pitch,
    7    const unsigned char *v_src, int v_src_pitch,
    8    unsigned char *yuy2_map, int yuy2_pitch,
    9    int width, int height, int progressive);
    10 
    11 void (*yuy2_to_yv12)
    12   (const unsigned char *yuy2_map, int yuy2_pitch,
    13    unsigned char *y_dst, int y_dst_pitch,
    14    unsigned char *u_dst, int u_dst_pitch,
    15    unsigned char *v_dst, int v_dst_pitch,
    16    int width, int height);
    17 
    184void init_yuv_conversion(void);
    195
    206void apply_chroma_filter( uint8_t *data, int stride, int width, int height );
  • filters/greedyhdeint/color.c

     
    3838#include "x86/mmx.h"
    3939#endif
    4040
     41void (*yv12_to_yuy2)
     42  (const unsigned char *y_src, int y_src_pitch,
     43   const unsigned char *u_src, int u_src_pitch,
     44   const unsigned char *v_src, int v_src_pitch,
     45   unsigned char *yuy2_map, int yuy2_pitch,
     46   int width, int height, int progressive);
     47
     48void (*yuy2_to_yv12)
     49  (const unsigned char *yuy2_map, int yuy2_pitch,
     50   unsigned char *y_dst, int y_dst_pitch,
     51   unsigned char *u_dst, int u_dst_pitch,
     52   unsigned char *v_dst, int v_dst_pitch,
     53   int width, int height);
     54
    4155void (*vfilter_chroma_332_packed422_scanline)( uint8_t *output, int width, uint8_t *m, uint8_t *t, uint8_t *b );
    4256
    4357
  • filters/greedyhdeint/filter_greedyhdeint.c

     
    3333static unsigned int GreedyMotionThreshold = MOTIONTHRESHOLD_DEFAULT;
    3434static unsigned int GreedyMotionSense = MOTIONSENSE_DEFAULT;
    3535
     36extern void (*yv12_to_yuy2)
     37  (const unsigned char *y_src, int y_src_pitch,
     38   const unsigned char *u_src, int u_src_pitch,
     39   const unsigned char *v_src, int v_src_pitch,
     40   unsigned char *yuy2_map, int yuy2_pitch,
     41   int width, int height, int progressive);
     42
     43extern void (*yuy2_to_yv12)
     44  (const unsigned char *yuy2_map, int yuy2_pitch,
     45   unsigned char *y_dst, int y_dst_pitch,
     46   unsigned char *u_dst, int u_dst_pitch,
     47   unsigned char *v_dst, int v_dst_pitch,
     48   int width, int height);
     49
    3650#define IS_MMX
    3751#define SSE_TYPE MMXT
    3852#define FUNCT_NAME greedyh_filter_mmx