lavc/vp9dsp: use restrict qualifier for copy/avg MC
Same as previous commit.
This commit is contained in:
parent
56fc5fc6ce
commit
c98127c00e
@ -1936,9 +1936,9 @@ static av_cold void vp9dsp_loopfilter_init(VP9DSPContext *dsp)
|
|||||||
|
|
||||||
#if BIT_DEPTH != 12
|
#if BIT_DEPTH != 12
|
||||||
|
|
||||||
static av_always_inline void copy_c(uint8_t *dst, ptrdiff_t dst_stride,
|
static av_always_inline void copy_c(uint8_t *restrict dst, ptrdiff_t dst_stride,
|
||||||
const uint8_t *src, ptrdiff_t src_stride,
|
const uint8_t *restrict src,
|
||||||
int w, int h)
|
ptrdiff_t src_stride, int w, int h)
|
||||||
{
|
{
|
||||||
do {
|
do {
|
||||||
memcpy(dst, src, w * sizeof(pixel));
|
memcpy(dst, src, w * sizeof(pixel));
|
||||||
@ -1948,9 +1948,9 @@ static av_always_inline void copy_c(uint8_t *dst, ptrdiff_t dst_stride,
|
|||||||
} while (--h);
|
} while (--h);
|
||||||
}
|
}
|
||||||
|
|
||||||
static av_always_inline void avg_c(uint8_t *_dst, ptrdiff_t dst_stride,
|
static av_always_inline void avg_c(uint8_t *restrict _dst, ptrdiff_t dst_stride,
|
||||||
const uint8_t *_src, ptrdiff_t src_stride,
|
const uint8_t *restrict _src,
|
||||||
int w, int h)
|
ptrdiff_t src_stride, int w, int h)
|
||||||
{
|
{
|
||||||
pixel *dst = (pixel *) _dst;
|
pixel *dst = (pixel *) _dst;
|
||||||
const pixel *src = (const pixel *) _src;
|
const pixel *src = (const pixel *) _src;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user