Mercurial > libavcodec.hg
comparison avcodec.h @ 252:ddb1a0e94cf4 libavcodec
- 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.
author | pulento |
---|---|
date | Tue, 26 Feb 2002 22:14:27 +0000 |
parents | 840cd25bf259 |
children | e1bacfb3f51f |
comparison
equal
deleted
inserted
replaced
251:75091bfc577b | 252:ddb1a0e94cf4 |
---|---|
121 /* every time the encoder as a packet to send */ | 121 /* every time the encoder as a packet to send */ |
122 /* Depends on the encoder if the data starts */ | 122 /* Depends on the encoder if the data starts */ |
123 /* with a Start Code (it should) H.263 does */ | 123 /* with a Start Code (it should) H.263 does */ |
124 void (*rtp_callback)(void *data, int size, int packet_number); | 124 void (*rtp_callback)(void *data, int size, int packet_number); |
125 | 125 |
126 /* These are for PSNR calculation, if you set get_psnr to 1 */ | |
127 /* after encoding you will have the PSNR on psnr_y/cb/cr */ | |
128 int get_psnr; | |
129 float psnr_y; | |
130 float psnr_cb; | |
131 float psnr_cr; | |
126 | 132 |
127 /* the following fields are ignored */ | 133 /* the following fields are ignored */ |
128 void *opaque; /* can be used to carry app specific stuff */ | 134 void *opaque; /* can be used to carry app specific stuff */ |
129 char codec_name[32]; | 135 char codec_name[32]; |
130 int codec_type; /* see CODEC_TYPE_xxx */ | 136 int codec_type; /* see CODEC_TYPE_xxx */ |