+ ogg_stream_state to; // theora to ogg out
+ ogg_stream_state vo; // vorbis to ogg out
+ int64_t ogg_sample_position, ogg_frame_position;
+ int64_t next_sample_position, next_frame_position;
+ int64_t start_sample, last_sample; // first and last sample inside this file
+ int64_t start_frame, last_frame; // first and last frame inside this file
+ int64_t audio_pos, video_pos; // decoder last sample/frame in
+ int audio_eos, video_eos; // decoder sample/frame end of file
+
+ th_enc_ctx *enc; // theora video encode context
+ th_dec_ctx *dec; // theora video decode context
+ th_info ti; // theora video encoder init parameters
+ th_setup_info *ts; // theora video setup huff/quant codes
+ th_comment tc; // header init parameters
+ vorbis_info vi; // vorbis audio encoder init parameters
+ vorbis_comment vc; // header init parameters
+ vorbis_dsp_state vd; // vorbis decode audio context
+ vorbis_block vb; // vorbis decode buffering
+ int force_keyframes;
+ int vp3_compatible;
+ int soft_target;
+
+ int pic_x, pic_y, pic_w, pic_h;
+ int frame_w, frame_h;
+ int colorspace, pixfmt;
+ int bitrate, quality;
+ int keyframe_period, keyframe_force;
+ int fps_num, fps_den;
+ int aratio_num, aratio_den;
+
+ OGG_PageBfr apage, vpage;
+ double audiotime, videotime;
+ int keyframe_granule_shift;
+ int iframe_granule_offset;