]> git.sesse.net Git - x264/blobdiff - common/mc.h
move hpel_filter cpu detection to a function pointer like everything else
[x264] / common / mc.h
index 52f5b8e9eaa73f1210b91e01a3980b5a18ba0327..80db9d42e5b87c90ca7757fb2bdb5e89e72e4185 100644 (file)
@@ -37,6 +37,7 @@ typedef struct
                     int mvx, int mvy,
                     int i_width, int i_height );
 
+    /* may round up the dimensions if they're not a power of 2 */
     uint8_t* (*get_ref)(uint8_t **, int, uint8_t *, int *,
                         int mvx, int mvy,
                         int i_width, int i_height );
@@ -55,6 +56,16 @@ typedef struct
 
     void (*plane_copy)( uint8_t *dst, int i_dst,
                         uint8_t *src, int i_src, int w, int h);
+
+    void (*hpel_filter)( uint8_t *dsth, uint8_t *dstv, uint8_t *dstc, uint8_t *src,
+                         int i_stride, int i_width, int i_height );
+
+    /* prefetch the next few macroblocks of fenc or fdec */
+    void (*prefetch_fenc)( uint8_t *pix_y, int stride_y,
+                           uint8_t *pix_uv, int stride_uv, int mb_x );
+    /* prefetch the next few macroblocks of a hpel reference frame */
+    void (*prefetch_ref)( uint8_t *pix, int stride, int parity );
+
 } x264_mc_functions_t;
 
 void x264_mc_init( int cpu, x264_mc_functions_t *pf );