@@ -32,24 +32,24 @@ namespace {
3232
3333static const unsigned int kMaxDimension = 64 ;
3434
35- typedef void (*ConvolveFunc )(const uint8_t *src, ptrdiff_t src_stride,
36- uint8_t *dst, ptrdiff_t dst_stride,
37- const InterpKernel *filter, int x0_q4,
38- int x_step_q4, int y0_q4, int y_step_q4, int w,
39- int h);
35+ using ConvolveFunc = void (*)(const uint8_t *src, ptrdiff_t src_stride,
36+ uint8_t *dst, ptrdiff_t dst_stride,
37+ const InterpKernel *filter, int x0_q4,
38+ int x_step_q4, int y0_q4, int y_step_q4, int w,
39+ int h);
4040#if !CONFIG_REALTIME_ONLY && CONFIG_VP9_ENCODER
41- typedef void (*ConvolveFunc12Tap )(const uint8_t *src, ptrdiff_t src_stride,
42- uint8_t *dst, ptrdiff_t dst_stride,
43- const InterpKernel12 *filter, int x0_q4,
44- int x_step_q4, int y0_q4, int y_step_q4,
45- int w, int h);
41+ using ConvolveFunc12Tap = void (*)(const uint8_t *src, ptrdiff_t src_stride,
42+ uint8_t *dst, ptrdiff_t dst_stride,
43+ const InterpKernel12 *filter, int x0_q4,
44+ int x_step_q4, int y0_q4, int y_step_q4,
45+ int w, int h);
4646#endif
4747
48- typedef void (* WrapperFilterBlock2d8Func)(
49- const uint8_t *src_ptr, const unsigned int src_stride,
50- const int16_t *hfilter, const int16_t *vfilter, uint8_t *dst_ptr,
51- unsigned int dst_stride, unsigned int output_width,
52- unsigned int output_height, int use_highbd);
48+ using WrapperFilterBlock2d8Func =
49+ void (*)( const uint8_t *src_ptr, const unsigned int src_stride,
50+ const int16_t *hfilter, const int16_t *vfilter, uint8_t *dst_ptr,
51+ unsigned int dst_stride, unsigned int output_width,
52+ unsigned int output_height, int use_highbd);
5353
5454struct ConvolveFunctions {
5555 ConvolveFunctions (ConvolveFunc copy, ConvolveFunc avg, ConvolveFunc h8,
@@ -85,7 +85,7 @@ struct ConvolveFunctions {
8585 int use_highbd_; // 0 if high bitdepth not used, else the actual bit depth.
8686};
8787
88- typedef std::tuple<int , int , const ConvolveFunctions *> ConvolveParam ;
88+ using ConvolveParam = std::tuple<int , int , const ConvolveFunctions *>;
8989
9090#if !CONFIG_REALTIME_ONLY && CONFIG_VP9_ENCODER
9191struct ConvolveFunctions12Tap {
@@ -103,7 +103,7 @@ struct ConvolveFunctions12Tap {
103103 int use_highbd_; // 0 if high bitdepth not used, else the actual bit depth.
104104};
105105
106- typedef std::tuple<int , int , const ConvolveFunctions12Tap *> Convolve12TapParam ;
106+ using Convolve12TapParam = std::tuple<int , int , const ConvolveFunctions12Tap *>;
107107#endif
108108
109109#define ALL_SIZES (convolve_fn ) \
0 commit comments