1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-24 13:56:33 +02:00

avfilter/vf_nnedi: Simplify away some trivial mem*()

Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2016-02-11 01:16:52 +01:00
parent 8836b8c2a4
commit ac3a275d1e

View File

@ -362,7 +362,7 @@ static int32_t process_line0(const uint8_t *tempu, int width, uint8_t *dstp8, co
tmp /= 32;
dstp[x] = FFMAX(FFMIN(tmp, maximum), minimum);
} else {
memset(dstp + x, 255, sizeof(uint8_t));
dstp[x] = 255;
count++;
}
}
@ -612,14 +612,9 @@ static void evalfunc_1(NNEDIContext *s, FrameData *frame_data)
for (y = ystart; y < ystop; y += 2) {
for (x = 32; x < width - 32; x++) {
uint32_t pixel = 0;
uint32_t all_ones = 0;
float mstd[4];
memcpy(&pixel, dstp + x, sizeof(uint8_t));
memset(&all_ones, 255, sizeof(uint8_t));
if (pixel != all_ones)
if (dstp[x] != 255)
continue;
s->extract((const uint8_t *)(srcpp + x), src_stride, xdia, ydia, mstd, input);