|
|
@ -43,6 +43,7 @@ |
|
|
|
#include "internal.h" |
|
|
|
#include "internal.h" |
|
|
|
#include "video.h" |
|
|
|
#include "video.h" |
|
|
|
#include "libavutil/common.h" |
|
|
|
#include "libavutil/common.h" |
|
|
|
|
|
|
|
#include "libavutil/imgutils.h" |
|
|
|
#include "libavutil/mem.h" |
|
|
|
#include "libavutil/mem.h" |
|
|
|
#include "libavutil/opt.h" |
|
|
|
#include "libavutil/opt.h" |
|
|
|
#include "libavutil/pixdesc.h" |
|
|
|
#include "libavutil/pixdesc.h" |
|
|
@ -66,11 +67,7 @@ static void apply_unsharp( uint8_t *dst, int dst_stride, |
|
|
|
const int32_t halfscale = fp->halfscale; |
|
|
|
const int32_t halfscale = fp->halfscale; |
|
|
|
|
|
|
|
|
|
|
|
if (!amount) { |
|
|
|
if (!amount) { |
|
|
|
if (dst_stride == src_stride) |
|
|
|
av_image_copy_plane(dst, dst_stride, src, src_stride, width, height); |
|
|
|
memcpy(dst, src, src_stride * height); |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
for (y = 0; y < height; y++, dst += dst_stride, src += src_stride) |
|
|
|
|
|
|
|
memcpy(dst, src, width); |
|
|
|
|
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|