Lines Matching refs:sys
48 const AVDVProfile* sys; /* current DV profile, e.g.: 525/60, 625/50 */
83 static int dv_audio_frame_size(const AVDVProfile* sys, int frame, int sample_rate)
85 if ((sys->time_base.den == 25 || sys->time_base.den == 50) && sys->time_base.num == 1) {
93 return sys->audio_samples_dist[frame % (sizeof(sys->audio_samples_dist) /
94 sizeof(sys->audio_samples_dist[0]))];
118 (dv_audio_frame_size(c->sys, c->frames, c->ast[channel]->codecpar->sample_rate) -
119 c->sys->audio_min_samples[audio_type]);
124 (seq >= c->sys->difseg_size/2); /* audio mode (1st or 2nd channel) */
127 (c->sys->dsf << 5) | /* system: 60fields/50fields */
128 (DV_PROFILE_IS_HD(c->sys) ? 0x3 : c->sys->video_stype ? 2 : 0); /* stype */
145 (c->sys->pix_fmt == AV_PIX_FMT_YUV420P ? 0x20 : /* speed */
146 c->sys->ltc_divisor * 4);
152 ct = c->start_time + av_rescale_rnd(c->frames, c->sys->time_base.num,
153 c->sys->time_base.den, AV_ROUND_DOWN);
168 ct = c->start_time + av_rescale_rnd(c->frames, c->sys->time_base.num,
169 c->sys->time_base.den, AV_ROUND_DOWN);
192 size = 4 * dv_audio_frame_size(c->sys, c->frames, c->ast[channel]->codecpar->sample_rate);
193 frame_ptr += channel * c->sys->difseg_size * 150 * 80;
194 for (i = 0; i < c->sys->difseg_size; i++) {
199 of = c->sys->audio_shuffle[i][j] + (d - 8)/2 * c->sys->audio_stride;
218 for (buf = frame; buf < frame + c->sys->frame_size; buf += 150 * 80, seq++) {
224 if (((long)(buf-frame)/(c->sys->frame_size/(c->sys->difseg_size*c->sys->n_difchan))%c->sys->difseg_size) > 5) { /* FIXME: is this really needed ? */
261 if (data_size != c->sys->frame_size) {
263 data_size, c->sys->frame_size);
267 memcpy(*frame, data, c->sys->frame_size);
280 reqasize = 4 * dv_audio_frame_size(c->sys, c->frames, st->codecpar->sample_rate);
296 reqasize = 4 * dv_audio_frame_size(c->sys, c->frames, c->ast[i]->codecpar->sample_rate);
305 return c->sys->frame_size;
351 c->sys = av_dv_codec_profile2(vst->codecpar->width, vst->codecpar->height,
353 if (!c->sys)
356 if ((c->sys->time_base.den != 25 && c->sys->time_base.den != 50) || c->sys->time_base.num != 1) {
363 if (((c->n_ast > 1) && (c->sys->n_difchan < 2)) ||
364 ((c->n_ast > 2) && (c->sys->n_difchan < 4))) {
402 rate.num = dvc->sys->ltc_divisor;