aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/avcodec.h
diff options
context:
space:
mode:
authorJuanjo <pulento@users.sourceforge.net>2002-02-26 22:14:27 +0000
committerJuanjo <pulento@users.sourceforge.net>2002-02-26 22:14:27 +0000
commit43f1708f8bb400790b226993ab1e6c3d12564d3b (patch)
treecb98d6f57b9964653dfc407897d0081429d572f2 /libavcodec/avcodec.h
parent2b9ab1d54a35f7d689b2396cfc59f9dbdcae391f (diff)
downloadffmpeg-43f1708f8bb400790b226993ab1e6c3d12564d3b.tar.gz
- Added PSNR feature to libavcodec and ffmpeg. By now just Y PSNR until I'm
sure it works ok. Also it's slow, so use it only when you _really_ need to measure quality. - Fix libavcodec Makefile to enable profiling. Originally committed as revision 314 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r--libavcodec/avcodec.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index cc374c1cab..d8abfded9b 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -123,6 +123,12 @@ typedef struct AVCodecContext {
/* with a Start Code (it should) H.263 does */
void (*rtp_callback)(void *data, int size, int packet_number);
+ /* These are for PSNR calculation, if you set get_psnr to 1 */
+ /* after encoding you will have the PSNR on psnr_y/cb/cr */
+ int get_psnr;
+ float psnr_y;
+ float psnr_cb;
+ float psnr_cr;
/* the following fields are ignored */
void *opaque; /* can be used to carry app specific stuff */