/* * 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 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with libde265. If not, see . */ #include #include #include #include struct datapoint { int log2blksize; float rate; float estim; }; std::vector pts; #define NBINS 100 /* #define ESTIMDIV 100 #define MAXESTIM 80000 std::vector bitestim2[MAXESTIM/ESTIMDIV]; */ void print_bitestim_results(int log2blksize) { float max_estim=0; for (int i=0;i0) { double mean = sum/cnt; double var = 0; for (int i=0;i> t >> pt.log2blksize >> pt.rate >> pt.estim; if (istr.eof()) break; if (t == tag) { pts.push_back(pt); } } print_bitestim_results(0); return 0; }