Lines Matching refs:frame

52     int               frames;        /* current frame number */
54 int has_audio; /* frame under construction has audio */
55 int has_video; /* frame under construction has video */
56 uint8_t frame_buf[DV_MAX_FRAME_SIZE]; /* frame under construction */
83 static int dv_audio_frame_size(const AVDVProfile* sys, int frame, int sample_rate)
93 return sys->audio_samples_dist[frame % (sizeof(sys->audio_samples_dist) /
172 0x3f; /* tens of frame, units of frame: 0x3f - "unknown" ? */
212 static void dv_inject_metadata(DVMuxContext *c, uint8_t* frame)
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 ? */
248 const uint8_t *data, int data_size, uint8_t **frame)
252 *frame = &c->frame_buf[0];
258 av_log(s, AV_LOG_ERROR, "Can't process DV frame #%d. Insufficient audio data or severe sync problem.\n", c->frames);
262 av_log(s, AV_LOG_ERROR, "Unexpected frame size, %d != %d\n",
267 memcpy(*frame, data, c->sys->frame_size);
275 av_log(s, AV_LOG_ERROR, "Can't process DV frame #%d. Insufficient video data or severe sync problem.\n", c->frames);
282 /* Let us see if we've got enough audio for one DV frame. */
290 /* Let us see if we have enough data to construct one DV frame. */
292 dv_inject_metadata(c, *frame);
295 dv_inject_audio(c, i, *frame);
419 uint8_t* frame;
423 pkt->data, pkt->size, &frame);
427 avio_write(s->pb, frame, fsize);
433 * E.g. video data without enough audio to write the complete frame.
434 * Currently we simply drop the last frame. I don't know whether this