8 #endif /* HAVE_STDINT_H */
10 #include <mjpegtools/yuv4mpeg.h>
11 #include <mjpegtools/mpegconsts.h>
18 int open_read(char *path
);
19 int open_write(char *path
, char *pipe
);
22 int read_frame(uint8_t *yuv
[3]);
23 int read_frame_raw(uint8_t *data
, long frame_size
);
25 int write_frame(uint8_t *yuv
[3]);
26 int write_frame_raw(uint8_t *data
, long frame_size
);
29 int seek_frame(int64_t frame_number
);
35 void set_interlace(int width
);
38 void set_width(int width
);
41 void set_height(int height
);
43 double get_frame_rate();
44 void set_frame_rate(double frame_rate
);
46 double get_aspect_ratio();
47 void set_aspect_ratio(double aspect_ratio
);
51 int stream_fd
; // used for files
53 y4m_stream_info_t stream_info
;
54 y4m_frame_info_t frame_info
;
55 Pipe
*stream_pipe
; // used for pipes
56 ArrayList
<off_t
> *frame_index
;
61 // c-file-style: "linux"