comparison utils.c @ 315:40d8092e2ff0 libavcodec

* using pixtype as enum - by Philip Gladstone
author kabi
date Mon, 08 Apr 2002 21:03:35 +0000
parents ac677a84d5df
children 21697f35a9ca
comparison
equal deleted inserted replaced
314:289eb941b8ba 315:40d8092e2ff0
203 } 203 }
204 return NULL; 204 return NULL;
205 } 205 }
206 206
207 const char *pix_fmt_str[] = { 207 const char *pix_fmt_str[] = {
208 "??",
208 "yuv420p", 209 "yuv420p",
209 "yuv422", 210 "yuv422",
210 "rgb24", 211 "rgb24",
211 "bgr24", 212 "bgr24",
212 "yuv422p", 213 "yuv422p",
257 snprintf(buf + strlen(buf), buf_size - strlen(buf), 258 snprintf(buf + strlen(buf), buf_size - strlen(buf),
258 ", %dx%d, %0.2f fps", 259 ", %dx%d, %0.2f fps",
259 enc->width, enc->height, 260 enc->width, enc->height,
260 (float)enc->frame_rate / FRAME_RATE_BASE); 261 (float)enc->frame_rate / FRAME_RATE_BASE);
261 } 262 }
263 snprintf(buf + strlen(buf), buf_size - strlen(buf),
264 ", q=%d-%d", enc->qmin, enc->qmax);
265
262 bitrate = enc->bit_rate; 266 bitrate = enc->bit_rate;
263 break; 267 break;
264 case CODEC_TYPE_AUDIO: 268 case CODEC_TYPE_AUDIO:
265 snprintf(buf, buf_size, 269 snprintf(buf, buf_size,
266 "Audio: %s", 270 "Audio: %s",