27 #include <sys/ioctl.h> 
   99         av_log(context, 
AV_LOG_ERROR, 
"Failed to initialize DV interface: %s\n", strerror(errno));
 
  104                     PROT_READ, MAP_PRIVATE, dv->
fd, 0);
 
  105     if (dv->
ring == MAP_FAILED) {
 
  106         av_log(context, 
AV_LOG_ERROR, 
"Failed to mmap DV ring buffer: %s\n", strerror(errno));
 
  151         p.events = POLLIN | POLLERR | POLLHUP;
 
  152         if (poll(&p, 1, -1) < 0) {
 
  153             if (errno == EAGAIN || errno == EINTR)
 
  164                 "\tactive_frame\t%d\n" 
  165                 "\tfirst_clear_frame\t%d\n" 
  166                 "\tn_clear_frames\t%d\n" 
  167                 "\tdropped_frames\t%d\n",
 
  206         av_log(context, 
AV_LOG_ERROR, 
"Failed to munmap DV1394 ring buffer: %s\n", strerror(errno));
 
  215     { 
"standard", 
"", offsetof(
struct dv1394_data, 
format), 
AV_OPT_TYPE_INT, {.i64 = 
DV1394_NTSC}, 
DV1394_NTSC, 
DV1394_PAL, 
AV_OPT_FLAG_DECODING_PARAM, 
"standard" },
 
static const AVClass dv1394_class
 
#define DV1394_RING_FRAMES
 
#define LIBAVUTIL_VERSION_INT
 
unsigned int n_clear_frames
 
#define DV1394_PAL_FRAME_SIZE
 
static int dv1394_read_header(AVFormatContext *context)
 
static int dv1394_read_packet(AVFormatContext *context, AVPacket *pkt)
 
static const AVOption options[]
 
const char * class_name
The name of the class; usually it is the same name as the context structure type to which the AVClass...
 
#define AV_LOG_TRACE
Extremely verbose debugging, useful for libav* development. 
 
int avpriv_open(const char *filename, int flags,...)
A wrapper for open() setting O_CLOEXEC. 
 
#define DV1394_NTSC_FRAME_SIZE
 
unsigned int dropped_frames
 
DVDemuxContext * dv_demux
 
Main libavdevice API header. 
 
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered. 
 
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
 
common internal API header 
 
char filename[1024]
input or output filename 
 
unsigned int first_clear_frame
 
AVInputFormat ff_dv1394_demuxer
 
static int dv1394_start(struct dv1394_data *dv)
 
Describe the class of an AVClass context structure. 
 
#define AV_OPT_FLAG_DECODING_PARAM
a generic parameter which can be set by the user for demuxing or decoding 
 
#define DV1394_API_VERSION
 
static int dv1394_close(AVFormatContext *context)
 
static int dv1394_reset(struct dv1394_data *dv)
 
void * priv_data
Format private data. 
 
#define DV1394_DEFAULT_CHANNEL
 
This structure stores compressed data.