diff options
Diffstat (limited to 'ffmpeg/libavcodec/videodsp.h')
| -rw-r--r-- | ffmpeg/libavcodec/videodsp.h | 29 |
1 files changed, 18 insertions, 11 deletions
diff --git a/ffmpeg/libavcodec/videodsp.h b/ffmpeg/libavcodec/videodsp.h index e397720..0bb15f2 100644 --- a/ffmpeg/libavcodec/videodsp.h +++ b/ffmpeg/libavcodec/videodsp.h @@ -30,9 +30,10 @@ #include <stdint.h> #define EMULATED_EDGE(depth) \ -void ff_emulated_edge_mc_ ## depth (uint8_t *buf, const uint8_t *src, ptrdiff_t linesize,\ - int block_w, int block_h,\ - int src_x, int src_y, int w, int h); +void ff_emulated_edge_mc_ ## depth(uint8_t *dst, const uint8_t *src, \ + ptrdiff_t dst_stride, ptrdiff_t src_stride, \ + int block_w, int block_h,\ + int src_x, int src_y, int w, int h); EMULATED_EDGE(8) EMULATED_EDGE(16) @@ -42,10 +43,14 @@ typedef struct VideoDSPContext { * Copy a rectangular area of samples to a temporary buffer and replicate * the border samples. * - * @param buf destination buffer + * @param dst destination buffer + * @param dst_stride number of bytes between 2 vertically adjacent samples + * in destination buffer * @param src source buffer - * @param linesize number of bytes between 2 vertically adjacent samples - * in both the source and destination buffers + * @param dst_linesize number of bytes between 2 vertically adjacent + * samples in the destination buffer + * @param src_linesize number of bytes between 2 vertically adjacent + * samples in both the source buffer * @param block_w width of block * @param block_h height of block * @param src_x x coordinate of the top left sample of the block in the @@ -55,16 +60,18 @@ typedef struct VideoDSPContext { * @param w width of the source buffer * @param h height of the source buffer */ - void (*emulated_edge_mc)(uint8_t *buf, const uint8_t *src, - ptrdiff_t linesize, int block_w, int block_h, + void (*emulated_edge_mc)(uint8_t *dst, const uint8_t *src, + ptrdiff_t dst_linesize, + ptrdiff_t src_linesize, + int block_w, int block_h, int src_x, int src_y, int w, int h); /** * Prefetch memory into cache (if supported by hardware). * - * @buf pointer to buffer to prefetch memory from - * @stride distance between two lines of buf (in bytes) - * @h number of lines to prefetch + * @param buf pointer to buffer to prefetch memory from + * @param stride distance between two lines of buf (in bytes) + * @param h number of lines to prefetch */ void (*prefetch)(uint8_t *buf, ptrdiff_t stride, int h); } VideoDSPContext; |
