9 #define DV_NTSC_SIZE 120000
10 #define DV_PAL_SIZE 144000
17 #define u_int64_t unsigned long long
26 dv_decoder_t
*decoder
;
27 dv_encoder_t
*encoder
;
29 unsigned char *temp_video
;
35 // ================================== The frame decoder
37 int dv_delete(dv_t
* dv
);
39 // Decode a video frame from the data and return nonzero if failure
40 int dv_read_video(dv_t
*dv
,
41 unsigned char **output_rows
,
45 // Decode audio from the data and return the number of samples decoded.
46 int dv_read_audio(dv_t
*dv
,
47 unsigned char *samples
,
53 void dv_write_video(dv_t
*dv
,
55 unsigned char **input_rows
,
59 // Write audio into frame after video is encoded.
60 // Returns the number of samples put in frame.
61 int dv_write_audio(dv_t
*dv
,
63 unsigned char *input_samples
,