2 * Grabbing algorithm is from dvgrab
13 #define DV_NTSC_SIZE 120000
14 #define DV_PAL_SIZE 144000
15 #define CODEC_TAG_DVSD "dvsd"
28 dv_decoder_t *decoder;
29 dv_encoder_t *encoder;
31 unsigned char *temp_video;
37 // ================================== The frame decoder
39 int dv_delete(dv_t* dv);
41 // Decode a video frame from the data and return nonzero if failure
42 int dv_read_video(dv_t *dv,
43 unsigned char **output_rows,
47 // Decode audio from the data and return the number of samples decoded.
48 int dv_read_audio(dv_t *dv,
49 unsigned char *samples,
55 void dv_write_video(dv_t *dv,
57 unsigned char **input_rows,
61 // Write audio into frame after video is encoded.
62 // Returns the number of samples put in frame.
63 int dv_write_audio(dv_t *dv,
65 unsigned char *input_samples,