9 #define DV_NTSC_SIZE 120000
10 #define DV_PAL_SIZE 144000
23 dv_decoder_t *decoder;
24 dv_encoder_t *encoder;
26 unsigned char *temp_video;
32 // ================================== The frame decoder
34 int dv_delete(dv_t* dv);
36 // Decode a video frame from the data and return nonzero if failure
37 int dv_read_video(dv_t *dv,
38 unsigned char **output_rows,
42 // Decode audio from the data and return the number of samples decoded.
43 int dv_read_audio(dv_t *dv,
44 unsigned char *samples,
50 void dv_write_video(dv_t *dv,
52 unsigned char **input_rows,
56 // Write audio into frame after video is encoded.
57 // Returns the number of samples put in frame.
58 int dv_write_audio(dv_t *dv,
60 unsigned char *input_samples,