Skip to content
Permalink
Browse files

stats: add clear() function to frame-level stats struct

  • Loading branch information
pradeeprama committed Feb 23, 2016
1 parent 1afcf93 commit 85f72fe907fef56f5bb82bf1b38e07a9928675bd
Showing with 11 additions and 0 deletions.
  1. +11 −0 source/x265.h
@@ -396,6 +396,17 @@ typedef struct x265_sliceType_stats
double psnrV;
double ssim;
uint32_t numPics;

void clear() {
avgQp = 0.0;
bitrate = 0.0;
psnrY = 0.0;
psnrU = 0.0;
psnrV = 0.0;
ssim = 0.0;
numPics = 0;
}

} x265_sliceType_stats;

/* Output statistics from encoder */

0 comments on commit 85f72fe

Please sign in to comment.