Lines Matching defs:context
49 DVDemuxContext* dv_demux; /* Generic DV muxing/demuxing context */
84 static int dv1394_read_header(AVFormatContext * context, AVFormatParameters * ap)
86 struct dv1394_data *dv = context->priv_data;
88 dv->dv_demux = avpriv_dv_init_demux(context);
93 dv->fd = open(context->filename, O_RDONLY);
95 av_log(context, AV_LOG_ERROR, "Failed to open DV interface: %s\n", strerror(errno));
100 av_log(context, AV_LOG_ERROR, "Failed to initialize DV interface: %s\n", strerror(errno));
107 av_log(context, AV_LOG_ERROR, "Failed to mmap DV ring buffer: %s\n", strerror(errno));
121 static int dv1394_read_packet(AVFormatContext *context, AVPacket *pkt)
123 struct dv1394_data *dv = context->priv_data;
141 av_log(context, AV_LOG_ERROR, "DV1394: Ring buffer overflow. Reseting ..\n");
156 av_log(context, AV_LOG_ERROR, "Poll failed: %s\n", strerror(errno));
161 av_log(context, AV_LOG_ERROR, "Failed to get status: %s\n", strerror(errno));
164 av_dlog(context, "DV1394: status\n"
177 av_log(context, AV_LOG_ERROR, "DV1394: Frame drop detected (%d). Reseting ..\n",
185 av_dlog(context, "index %d, avail %d, done %d\n", dv->index, dv->avail,
197 static int dv1394_close(AVFormatContext * context)
199 struct dv1394_data *dv = context->priv_data;
203 av_log(context, AV_LOG_ERROR, "Failed to shutdown DV1394: %s\n", strerror(errno));
207 av_log(context, AV_LOG_ERROR, "Failed to munmap DV1394 ring buffer: %s\n", strerror(errno));