/* * H.265 video codec. * Copyright (c) 2013-2014 struktur AG, Dirk Farin * * This file is part of libde265. * * libde265 is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of * the License, or (at your option) any later version. * * libde265 is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with libde265. If not, see . */ #include "quality.h" #include uint32_t SSD(const uint8_t* img, int imgStride, const uint8_t* ref, int refStride, int width, int height) { uint32_t sum=0; const uint8_t* iPtr = img; const uint8_t* rPtr = ref; for (int y=0;yget_image_plane_at_pos(cIdx,x0,y0), img1->get_image_stride(cIdx), img2->get_image_plane_at_pos(cIdx,x0,y0), img2->get_image_stride(cIdx), 1<