Lines Matching defs:fourxm
101 FourxmDemuxContext *fourxm = s->priv_data;
106 fourxm->track_count = 0;
107 fourxm->tracks = NULL;
108 fourxm->fps = 1.0;
134 fourxm->fps = av_int2float(AV_RL32(&header[i + 12]));
141 fourxm->width = AV_RL32(&header[i + 36]);
142 fourxm->height = AV_RL32(&header[i + 40]);
150 avpriv_set_pts_info(st, 60, 1, fourxm->fps);
152 fourxm->video_stream_index = st->index;
159 st->codec->width = fourxm->width;
160 st->codec->height = fourxm->height;
176 if (current_track + 1 > fourxm->track_count) {
177 fourxm->tracks = av_realloc(fourxm->tracks,
179 if (!fourxm->tracks) {
183 memset(&fourxm->tracks[fourxm->track_count], 0,
184 sizeof(AudioTrack) * (current_track + 1 - fourxm->track_count));
185 fourxm->track_count = current_track + 1;
187 fourxm->tracks[current_track].adpcm = AV_RL32(&header[i + 12]);
188 fourxm->tracks[current_track].channels = AV_RL32(&header[i + 36]);
189 fourxm->tracks[current_track].sample_rate = AV_RL32(&header[i + 40]);
190 fourxm->tracks[current_track].bits = AV_RL32(&header[i + 44]);
191 fourxm->tracks[current_track].audio_pts = 0;
192 if( fourxm->tracks[current_track].channels <= 0
193 || fourxm->tracks[current_track].sample_rate <= 0
194 || fourxm->tracks[current_track].bits < 0){
209 avpriv_set_pts_info(st, 60, 1, fourxm->tracks[current_track].sample_rate);
211 fourxm->tracks[current_track].stream_index = st->index;
215 st->codec->channels = fourxm->tracks[current_track].channels;
216 st->codec->sample_rate = fourxm->tracks[current_track].sample_rate;
217 st->codec->bits_per_coded_sample = fourxm->tracks[current_track].bits;
221 if (fourxm->tracks[current_track].adpcm){
239 fourxm->video_pts = -1; /* first frame will push to 0 */
243 av_freep(&fourxm->tracks);
251 FourxmDemuxContext *fourxm = s->priv_data;
273 fourxm->video_pts ++;
289 pkt->stream_index = fourxm->video_stream_index;
290 pkt->pts = fourxm->video_pts;
306 if (track_number < fourxm->track_count && fourxm->tracks[track_number].channels>0) {
311 fourxm->tracks[track_number].stream_index;
312 pkt->pts = fourxm->tracks[track_number].audio_pts;
317 if (fourxm->tracks[track_number].adpcm)
319 2 * (fourxm->tracks[track_number].channels);
321 fourxm->tracks[track_number].channels;
322 if (fourxm->tracks[track_number].adpcm){
326 (fourxm->tracks[track_number].bits / 8);
327 fourxm->tracks[track_number].audio_pts += audio_frame_count;
344 FourxmDemuxContext *fourxm = s->priv_data;
346 av_freep(&fourxm->tracks);