9 #define DV_NTSC_SIZE 120000
10 #define DV_PAL_SIZE 144000
11 #define CODEC_TAG_DVSD "dvsd"
24 dv_decoder_t *decoder;
25 dv_encoder_t *encoder;
27 unsigned char *temp_video;
33 // ================================== The frame decoder
35 int dv_delete(dv_t* dv);
37 // Decode a video frame from the data and return nonzero if failure
38 int dv_read_video(dv_t *dv,
39 unsigned char **output_rows,
43 // Decode audio from the data and return the number of samples decoded.
44 int dv_read_audio(dv_t *dv,
45 unsigned char *samples,
51 void dv_write_video(dv_t *dv,
53 unsigned char **input_rows,
57 // Write audio into frame after video is encoded.
58 // Returns the number of samples put in frame.
59 int dv_write_audio(dv_t *dv,
61 unsigned char *input_samples,