00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #include "avformat.h"
00022 #include "avi.h"
00023 #include "avio_internal.h"
00024 #include "riff.h"
00025 #include "libavutil/intreadwrite.h"
00026
00027
00028
00029
00030
00031
00032 typedef struct AVIIentry {
00033 unsigned int flags, pos, len;
00034 } AVIIentry;
00035
00036 #define AVI_INDEX_CLUSTER_SIZE 16384
00037
00038 typedef struct AVIIndex {
00039 int64_t indx_start;
00040 int entry;
00041 int ents_allocated;
00042 AVIIentry** cluster;
00043 } AVIIndex;
00044
00045 typedef struct {
00046 int64_t riff_start, movi_list, odml_list;
00047 int64_t frames_hdr_all;
00048 int riff_id;
00049 } AVIContext;
00050
00051 typedef struct {
00052 int64_t frames_hdr_strm;
00053 int audio_strm_length;
00054 int packet_count;
00055 int entry;
00056
00057 AVIIndex indexes;
00058 } AVIStream ;
00059
00060 static inline AVIIentry* avi_get_ientry(AVIIndex* idx, int ent_id)
00061 {
00062 int cl = ent_id / AVI_INDEX_CLUSTER_SIZE;
00063 int id = ent_id % AVI_INDEX_CLUSTER_SIZE;
00064 return &idx->cluster[cl][id];
00065 }
00066
00067 static int64_t avi_start_new_riff(AVFormatContext *s, AVIOContext *pb,
00068 const char* riff_tag, const char* list_tag)
00069 {
00070 AVIContext *avi= s->priv_data;
00071 int64_t loff;
00072 int i;
00073
00074 avi->riff_id++;
00075 for (i=0; i<s->nb_streams; i++){
00076 AVIStream *avist= s->streams[i]->priv_data;
00077 avist->indexes.entry = 0;
00078 }
00079
00080 avi->riff_start = ff_start_tag(pb, "RIFF");
00081 ffio_wfourcc(pb, riff_tag);
00082 loff = ff_start_tag(pb, "LIST");
00083 ffio_wfourcc(pb, list_tag);
00084 return loff;
00085 }
00086
00087 static char* avi_stream2fourcc(char* tag, int index, enum AVMediaType type)
00088 {
00089 tag[0] = '0' + index/10;
00090 tag[1] = '0' + index%10;
00091 if (type == AVMEDIA_TYPE_VIDEO) {
00092 tag[2] = 'd';
00093 tag[3] = 'c';
00094 } else if (type == AVMEDIA_TYPE_SUBTITLE) {
00095
00096 tag[2] = 's';
00097 tag[3] = 'b';
00098 } else {
00099 tag[2] = 'w';
00100 tag[3] = 'b';
00101 }
00102 tag[4] = '\0';
00103 return tag;
00104 }
00105
00106 static void avi_write_info_tag(AVIOContext *pb, const char *tag, const char *str)
00107 {
00108 int len = strlen(str);
00109 if (len > 0) {
00110 len++;
00111 ffio_wfourcc(pb, tag);
00112 avio_wl32(pb, len);
00113 avio_put_str(pb, str);
00114 if (len & 1)
00115 avio_w8(pb, 0);
00116 }
00117 }
00118
00119 static int avi_write_counters(AVFormatContext* s, int riff_id)
00120 {
00121 AVIOContext *pb = s->pb;
00122 AVIContext *avi = s->priv_data;
00123 int n, au_byterate, au_ssize, au_scale, nb_frames = 0;
00124 int64_t file_size;
00125 AVCodecContext* stream;
00126
00127 file_size = avio_tell(pb);
00128 for(n = 0; n < s->nb_streams; n++) {
00129 AVIStream *avist= s->streams[n]->priv_data;
00130
00131 assert(avist->frames_hdr_strm);
00132 stream = s->streams[n]->codec;
00133 avio_seek(pb, avist->frames_hdr_strm, SEEK_SET);
00134 ff_parse_specific_params(stream, &au_byterate, &au_ssize, &au_scale);
00135 if(au_ssize == 0) {
00136 avio_wl32(pb, avist->packet_count);
00137 } else {
00138 avio_wl32(pb, avist->audio_strm_length / au_ssize);
00139 }
00140 if(stream->codec_type == AVMEDIA_TYPE_VIDEO)
00141 nb_frames = FFMAX(nb_frames, avist->packet_count);
00142 }
00143 if(riff_id == 1) {
00144 assert(avi->frames_hdr_all);
00145 avio_seek(pb, avi->frames_hdr_all, SEEK_SET);
00146 avio_wl32(pb, nb_frames);
00147 }
00148 avio_seek(pb, file_size, SEEK_SET);
00149
00150 return 0;
00151 }
00152
00153 static int avi_write_header(AVFormatContext *s)
00154 {
00155 AVIContext *avi = s->priv_data;
00156 AVIOContext *pb = s->pb;
00157 int bitrate, n, i, nb_frames, au_byterate, au_ssize, au_scale;
00158 AVCodecContext *stream, *video_enc;
00159 int64_t list1, list2, strh, strf;
00160 AVMetadataTag *t = NULL;
00161
00162 if (s->nb_streams > AVI_MAX_STREAM_COUNT) {
00163 av_log(s, AV_LOG_ERROR, "AVI does not support >%d streams\n",
00164 AVI_MAX_STREAM_COUNT);
00165 return -1;
00166 }
00167
00168 for(n=0;n<s->nb_streams;n++) {
00169 s->streams[n]->priv_data= av_mallocz(sizeof(AVIStream));
00170 if(!s->streams[n]->priv_data)
00171 return AVERROR(ENOMEM);
00172 }
00173
00174
00175 avi->riff_id = 0;
00176 list1 = avi_start_new_riff(s, pb, "AVI ", "hdrl");
00177
00178
00179 ffio_wfourcc(pb, "avih");
00180 avio_wl32(pb, 14 * 4);
00181 bitrate = 0;
00182
00183 video_enc = NULL;
00184 for(n=0;n<s->nb_streams;n++) {
00185 stream = s->streams[n]->codec;
00186 bitrate += stream->bit_rate;
00187 if (stream->codec_type == AVMEDIA_TYPE_VIDEO)
00188 video_enc = stream;
00189 }
00190
00191 nb_frames = 0;
00192
00193 if(video_enc){
00194 avio_wl32(pb, (uint32_t)(INT64_C(1000000) * video_enc->time_base.num / video_enc->time_base.den));
00195 } else {
00196 avio_wl32(pb, 0);
00197 }
00198 avio_wl32(pb, bitrate / 8);
00199 avio_wl32(pb, 0);
00200 if (url_is_streamed(pb))
00201 avio_wl32(pb, AVIF_TRUSTCKTYPE | AVIF_ISINTERLEAVED);
00202 else
00203 avio_wl32(pb, AVIF_TRUSTCKTYPE | AVIF_HASINDEX | AVIF_ISINTERLEAVED);
00204 avi->frames_hdr_all = avio_tell(pb);
00205 avio_wl32(pb, nb_frames);
00206 avio_wl32(pb, 0);
00207 avio_wl32(pb, s->nb_streams);
00208 avio_wl32(pb, 1024 * 1024);
00209 if(video_enc){
00210 avio_wl32(pb, video_enc->width);
00211 avio_wl32(pb, video_enc->height);
00212 } else {
00213 avio_wl32(pb, 0);
00214 avio_wl32(pb, 0);
00215 }
00216 avio_wl32(pb, 0);
00217 avio_wl32(pb, 0);
00218 avio_wl32(pb, 0);
00219 avio_wl32(pb, 0);
00220
00221
00222 for(i=0;i<n;i++) {
00223 AVIStream *avist= s->streams[i]->priv_data;
00224 list2 = ff_start_tag(pb, "LIST");
00225 ffio_wfourcc(pb, "strl");
00226
00227 stream = s->streams[i]->codec;
00228
00229
00230 strh = ff_start_tag(pb, "strh");
00231 switch(stream->codec_type) {
00232 case AVMEDIA_TYPE_SUBTITLE:
00233
00234
00235 if (stream->codec_id != CODEC_ID_XSUB) {
00236 av_log(s, AV_LOG_ERROR, "Subtitle streams other than DivX XSUB are not supported by the AVI muxer.\n");
00237 return AVERROR_PATCHWELCOME;
00238 }
00239 case AVMEDIA_TYPE_VIDEO: ffio_wfourcc(pb, "vids"); break;
00240 case AVMEDIA_TYPE_AUDIO: ffio_wfourcc(pb, "auds"); break;
00241
00242 case AVMEDIA_TYPE_DATA : ffio_wfourcc(pb, "dats"); break;
00243 }
00244 if(stream->codec_type == AVMEDIA_TYPE_VIDEO ||
00245 stream->codec_id == CODEC_ID_XSUB)
00246 avio_wl32(pb, stream->codec_tag);
00247 else
00248 avio_wl32(pb, 1);
00249 avio_wl32(pb, 0);
00250 avio_wl16(pb, 0);
00251 avio_wl16(pb, 0);
00252 avio_wl32(pb, 0);
00253
00254 ff_parse_specific_params(stream, &au_byterate, &au_ssize, &au_scale);
00255
00256 avio_wl32(pb, au_scale);
00257 avio_wl32(pb, au_byterate);
00258 av_set_pts_info(s->streams[i], 64, au_scale, au_byterate);
00259
00260 avio_wl32(pb, 0);
00261 avist->frames_hdr_strm = avio_tell(pb);
00262 if (url_is_streamed(pb))
00263 avio_wl32(pb, AVI_MAX_RIFF_SIZE);
00264 else
00265 avio_wl32(pb, 0);
00266
00267
00268 if(stream->codec_type == AVMEDIA_TYPE_VIDEO)
00269 avio_wl32(pb, 1024 * 1024);
00270 else if(stream->codec_type == AVMEDIA_TYPE_AUDIO)
00271 avio_wl32(pb, 12 * 1024);
00272 else
00273 avio_wl32(pb, 0);
00274 avio_wl32(pb, -1);
00275 avio_wl32(pb, au_ssize);
00276 avio_wl32(pb, 0);
00277 avio_wl16(pb, stream->width);
00278 avio_wl16(pb, stream->height);
00279 ff_end_tag(pb, strh);
00280
00281 if(stream->codec_type != AVMEDIA_TYPE_DATA){
00282 strf = ff_start_tag(pb, "strf");
00283 switch(stream->codec_type) {
00284 case AVMEDIA_TYPE_SUBTITLE:
00285
00286
00287 if (stream->codec_id != CODEC_ID_XSUB) break;
00288 case AVMEDIA_TYPE_VIDEO:
00289 ff_put_bmp_header(pb, stream, ff_codec_bmp_tags, 0);
00290 break;
00291 case AVMEDIA_TYPE_AUDIO:
00292 if (ff_put_wav_header(pb, stream) < 0) {
00293 return -1;
00294 }
00295 break;
00296 default:
00297 return -1;
00298 }
00299 ff_end_tag(pb, strf);
00300 if ((t = av_metadata_get(s->streams[i]->metadata, "title", NULL, 0))) {
00301 avi_write_info_tag(s->pb, "strn", t->value);
00302 t = NULL;
00303 }
00304 }
00305
00306 if (!url_is_streamed(pb)) {
00307 unsigned char tag[5];
00308 int j;
00309
00310
00311
00312
00313
00314
00315 avist->indexes.entry = avist->indexes.ents_allocated = 0;
00316 avist->indexes.indx_start = ff_start_tag(pb, "JUNK");
00317 avio_wl16(pb, 4);
00318 avio_w8(pb, 0);
00319 avio_w8(pb, 0);
00320 avio_wl32(pb, 0);
00321 ffio_wfourcc(pb, avi_stream2fourcc(tag, i, stream->codec_type));
00322
00323 avio_wl64(pb, 0);
00324
00325 for (j=0; j < AVI_MASTER_INDEX_SIZE * 2; j++)
00326 avio_wl64(pb, 0);
00327 ff_end_tag(pb, avist->indexes.indx_start);
00328 }
00329
00330 if( stream->codec_type == AVMEDIA_TYPE_VIDEO
00331 && s->streams[i]->sample_aspect_ratio.num>0
00332 && s->streams[i]->sample_aspect_ratio.den>0){
00333 int vprp= ff_start_tag(pb, "vprp");
00334 AVRational dar = av_mul_q(s->streams[i]->sample_aspect_ratio,
00335 (AVRational){stream->width, stream->height});
00336 int num, den;
00337 av_reduce(&num, &den, dar.num, dar.den, 0xFFFF);
00338
00339 avio_wl32(pb, 0);
00340 avio_wl32(pb, 0);
00341 avio_wl32(pb, lrintf(1.0/av_q2d(stream->time_base)));
00342 avio_wl32(pb, stream->width );
00343 avio_wl32(pb, stream->height);
00344 avio_wl16(pb, den);
00345 avio_wl16(pb, num);
00346 avio_wl32(pb, stream->width );
00347 avio_wl32(pb, stream->height);
00348 avio_wl32(pb, 1);
00349
00350 avio_wl32(pb, stream->height);
00351 avio_wl32(pb, stream->width );
00352 avio_wl32(pb, stream->height);
00353 avio_wl32(pb, stream->width );
00354 avio_wl32(pb, 0);
00355 avio_wl32(pb, 0);
00356
00357 avio_wl32(pb, 0);
00358 avio_wl32(pb, 0);
00359 ff_end_tag(pb, vprp);
00360 }
00361
00362 ff_end_tag(pb, list2);
00363 }
00364
00365 if (!url_is_streamed(pb)) {
00366
00367 avi->odml_list = ff_start_tag(pb, "JUNK");
00368 ffio_wfourcc(pb, "odml");
00369 ffio_wfourcc(pb, "dmlh");
00370 avio_wl32(pb, 248);
00371 for (i = 0; i < 248; i+= 4)
00372 avio_wl32(pb, 0);
00373 ff_end_tag(pb, avi->odml_list);
00374 }
00375
00376 ff_end_tag(pb, list1);
00377
00378 list2 = ff_start_tag(pb, "LIST");
00379 ffio_wfourcc(pb, "INFO");
00380 ff_metadata_conv(&s->metadata, ff_avi_metadata_conv, NULL);
00381 for (i = 0; *ff_avi_tags[i]; i++) {
00382 if ((t = av_metadata_get(s->metadata, ff_avi_tags[i], NULL, AV_METADATA_MATCH_CASE)))
00383 avi_write_info_tag(s->pb, t->key, t->value);
00384 }
00385 ff_end_tag(pb, list2);
00386
00387
00388 list2 = ff_start_tag(pb, "JUNK");
00389 for (i = 0; i < 1016; i += 4)
00390 avio_wl32(pb, 0);
00391 ff_end_tag(pb, list2);
00392
00393 avi->movi_list = ff_start_tag(pb, "LIST");
00394 ffio_wfourcc(pb, "movi");
00395
00396 put_flush_packet(pb);
00397
00398 return 0;
00399 }
00400
00401 static int avi_write_ix(AVFormatContext *s)
00402 {
00403 AVIOContext *pb = s->pb;
00404 AVIContext *avi = s->priv_data;
00405 char tag[5];
00406 char ix_tag[] = "ix00";
00407 int i, j;
00408
00409 assert(!url_is_streamed(pb));
00410
00411 if (avi->riff_id > AVI_MASTER_INDEX_SIZE)
00412 return -1;
00413
00414 for (i=0;i<s->nb_streams;i++) {
00415 AVIStream *avist= s->streams[i]->priv_data;
00416 int64_t ix, pos;
00417
00418 avi_stream2fourcc(tag, i, s->streams[i]->codec->codec_type);
00419 ix_tag[3] = '0' + i;
00420
00421
00422 ix = avio_tell(pb);
00423 ffio_wfourcc(pb, ix_tag);
00424 avio_wl32(pb, avist->indexes.entry * 8 + 24);
00425
00426 avio_wl16(pb, 2);
00427 avio_w8(pb, 0);
00428 avio_w8(pb, 1);
00429 avio_wl32(pb, avist->indexes.entry);
00430
00431 ffio_wfourcc(pb, tag);
00432 avio_wl64(pb, avi->movi_list);
00433 avio_wl32(pb, 0);
00434
00435 for (j=0; j<avist->indexes.entry; j++) {
00436 AVIIentry* ie = avi_get_ientry(&avist->indexes, j);
00437 avio_wl32(pb, ie->pos + 8);
00438 avio_wl32(pb, ((uint32_t)ie->len & ~0x80000000) |
00439 (ie->flags & 0x10 ? 0 : 0x80000000));
00440 }
00441 put_flush_packet(pb);
00442 pos = avio_tell(pb);
00443
00444
00445 avio_seek(pb, avist->indexes.indx_start - 8, SEEK_SET);
00446 ffio_wfourcc(pb, "indx");
00447 avio_seek(pb, 8, SEEK_CUR);
00448 avio_wl32(pb, avi->riff_id);
00449 avio_seek(pb, 16*avi->riff_id, SEEK_CUR);
00450 avio_wl64(pb, ix);
00451 avio_wl32(pb, pos - ix);
00452 avio_wl32(pb, avist->indexes.entry);
00453
00454 avio_seek(pb, pos, SEEK_SET);
00455 }
00456 return 0;
00457 }
00458
00459 static int avi_write_idx1(AVFormatContext *s)
00460 {
00461 AVIOContext *pb = s->pb;
00462 AVIContext *avi = s->priv_data;
00463 int64_t idx_chunk;
00464 int i;
00465 char tag[5];
00466
00467 if (!url_is_streamed(pb)) {
00468 AVIStream *avist;
00469 AVIIentry* ie = 0, *tie;
00470 int empty, stream_id = -1;
00471
00472 idx_chunk = ff_start_tag(pb, "idx1");
00473 for(i=0; i<s->nb_streams; i++){
00474 avist= s->streams[i]->priv_data;
00475 avist->entry=0;
00476 }
00477
00478 do {
00479 empty = 1;
00480 for (i=0; i<s->nb_streams; i++) {
00481 avist= s->streams[i]->priv_data;
00482 if (avist->indexes.entry <= avist->entry)
00483 continue;
00484
00485 tie = avi_get_ientry(&avist->indexes, avist->entry);
00486 if (empty || tie->pos < ie->pos) {
00487 ie = tie;
00488 stream_id = i;
00489 }
00490 empty = 0;
00491 }
00492 if (!empty) {
00493 avist= s->streams[stream_id]->priv_data;
00494 avi_stream2fourcc(tag, stream_id,
00495 s->streams[stream_id]->codec->codec_type);
00496 ffio_wfourcc(pb, tag);
00497 avio_wl32(pb, ie->flags);
00498 avio_wl32(pb, ie->pos);
00499 avio_wl32(pb, ie->len);
00500 avist->entry++;
00501 }
00502 } while (!empty);
00503 ff_end_tag(pb, idx_chunk);
00504
00505 avi_write_counters(s, avi->riff_id);
00506 }
00507 return 0;
00508 }
00509
00510 static int avi_write_packet(AVFormatContext *s, AVPacket *pkt)
00511 {
00512 AVIContext *avi = s->priv_data;
00513 AVIOContext *pb = s->pb;
00514 unsigned char tag[5];
00515 unsigned int flags=0;
00516 const int stream_index= pkt->stream_index;
00517 AVIStream *avist= s->streams[stream_index]->priv_data;
00518 AVCodecContext *enc= s->streams[stream_index]->codec;
00519 int size= pkt->size;
00520
00521
00522 while(enc->block_align==0 && pkt->dts != AV_NOPTS_VALUE && pkt->dts > avist->packet_count){
00523 AVPacket empty_packet;
00524
00525 av_init_packet(&empty_packet);
00526 empty_packet.size= 0;
00527 empty_packet.data= NULL;
00528 empty_packet.stream_index= stream_index;
00529 avi_write_packet(s, &empty_packet);
00530
00531 }
00532 avist->packet_count++;
00533
00534
00535 if (!url_is_streamed(pb) &&
00536 (avio_tell(pb) - avi->riff_start > AVI_MAX_RIFF_SIZE)) {
00537
00538 avi_write_ix(s);
00539 ff_end_tag(pb, avi->movi_list);
00540
00541 if (avi->riff_id == 1)
00542 avi_write_idx1(s);
00543
00544 ff_end_tag(pb, avi->riff_start);
00545 avi->movi_list = avi_start_new_riff(s, pb, "AVIX", "movi");
00546 }
00547
00548 avi_stream2fourcc(tag, stream_index, enc->codec_type);
00549 if(pkt->flags&AV_PKT_FLAG_KEY)
00550 flags = 0x10;
00551 if (enc->codec_type == AVMEDIA_TYPE_AUDIO) {
00552 avist->audio_strm_length += size;
00553 }
00554
00555 if (!url_is_streamed(s->pb)) {
00556 AVIIndex* idx = &avist->indexes;
00557 int cl = idx->entry / AVI_INDEX_CLUSTER_SIZE;
00558 int id = idx->entry % AVI_INDEX_CLUSTER_SIZE;
00559 if (idx->ents_allocated <= idx->entry) {
00560 idx->cluster = av_realloc(idx->cluster, (cl+1)*sizeof(void*));
00561 if (!idx->cluster)
00562 return -1;
00563 idx->cluster[cl] = av_malloc(AVI_INDEX_CLUSTER_SIZE*sizeof(AVIIentry));
00564 if (!idx->cluster[cl])
00565 return -1;
00566 idx->ents_allocated += AVI_INDEX_CLUSTER_SIZE;
00567 }
00568
00569 idx->cluster[cl][id].flags = flags;
00570 idx->cluster[cl][id].pos = avio_tell(pb) - avi->movi_list;
00571 idx->cluster[cl][id].len = size;
00572 idx->entry++;
00573 }
00574
00575 avio_write(pb, tag, 4);
00576 avio_wl32(pb, size);
00577 avio_write(pb, pkt->data, size);
00578 if (size & 1)
00579 avio_w8(pb, 0);
00580
00581 put_flush_packet(pb);
00582 return 0;
00583 }
00584
00585 static int avi_write_trailer(AVFormatContext *s)
00586 {
00587 AVIContext *avi = s->priv_data;
00588 AVIOContext *pb = s->pb;
00589 int res = 0;
00590 int i, j, n, nb_frames;
00591 int64_t file_size;
00592
00593 if (!url_is_streamed(pb)){
00594 if (avi->riff_id == 1) {
00595 ff_end_tag(pb, avi->movi_list);
00596 res = avi_write_idx1(s);
00597 ff_end_tag(pb, avi->riff_start);
00598 } else {
00599 avi_write_ix(s);
00600 ff_end_tag(pb, avi->movi_list);
00601 ff_end_tag(pb, avi->riff_start);
00602
00603 file_size = avio_tell(pb);
00604 avio_seek(pb, avi->odml_list - 8, SEEK_SET);
00605 ffio_wfourcc(pb, "LIST");
00606 avio_seek(pb, 16, SEEK_CUR);
00607
00608 for (n=nb_frames=0;n<s->nb_streams;n++) {
00609 AVCodecContext *stream = s->streams[n]->codec;
00610 AVIStream *avist= s->streams[n]->priv_data;
00611
00612 if (stream->codec_type == AVMEDIA_TYPE_VIDEO) {
00613 if (nb_frames < avist->packet_count)
00614 nb_frames = avist->packet_count;
00615 } else {
00616 if (stream->codec_id == CODEC_ID_MP2 || stream->codec_id == CODEC_ID_MP3) {
00617 nb_frames += avist->packet_count;
00618 }
00619 }
00620 }
00621 avio_wl32(pb, nb_frames);
00622 avio_seek(pb, file_size, SEEK_SET);
00623
00624 avi_write_counters(s, avi->riff_id);
00625 }
00626 }
00627 put_flush_packet(pb);
00628
00629 for (i=0; i<s->nb_streams; i++) {
00630 AVIStream *avist= s->streams[i]->priv_data;
00631 for (j=0; j<avist->indexes.ents_allocated/AVI_INDEX_CLUSTER_SIZE; j++)
00632 av_free(avist->indexes.cluster[j]);
00633 av_freep(&avist->indexes.cluster);
00634 avist->indexes.ents_allocated = avist->indexes.entry = 0;
00635 }
00636
00637 return res;
00638 }
00639
00640 AVOutputFormat ff_avi_muxer = {
00641 "avi",
00642 NULL_IF_CONFIG_SMALL("AVI format"),
00643 "video/x-msvideo",
00644 "avi",
00645 sizeof(AVIContext),
00646 CODEC_ID_MP2,
00647 CODEC_ID_MPEG4,
00648 avi_write_header,
00649 avi_write_packet,
00650 avi_write_trailer,
00651 .codec_tag= (const AVCodecTag* const []){ff_codec_bmp_tags, ff_codec_wav_tags, 0},
00652 .flags= AVFMT_VARIABLE_FPS,
00653 };