mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-26 18:30:52 +08:00
avfilter/select: larger pixel sad computation
This commit is contained in:
@@ -259,8 +259,8 @@ static double get_scene_score(AVFilterContext *ctx, AVFrame *frame)
|
||||
const int p1_linesize = frame->linesize[0];
|
||||
const int p2_linesize = prev_picref->linesize[0];
|
||||
|
||||
for (y = 0; y < frame->height - 8; y += 8) {
|
||||
for (x = 0; x < frame->width*3 - 8; x += 8) {
|
||||
for (y = 0; y < frame->height - 7; y += 8) {
|
||||
for (x = 0; x < frame->width*3 - 7; x += 8) {
|
||||
sad += select->sad(p1 + x, p1_linesize, p2 + x, p2_linesize);
|
||||
nb_sad += 8 * 8;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user