diff options
author | Juanjo <pulento@users.sourceforge.net> | 2002-02-26 22:14:27 +0000 |
---|---|---|
committer | Juanjo <pulento@users.sourceforge.net> | 2002-02-26 22:14:27 +0000 |
commit | 43f1708f8bb400790b226993ab1e6c3d12564d3b (patch) | |
tree | cb98d6f57b9964653dfc407897d0081429d572f2 /libavcodec/avcodec.h | |
parent | 2b9ab1d54a35f7d689b2396cfc59f9dbdcae391f (diff) | |
download | ffmpeg-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.h | 6 |
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 */ |