38 xvid_plg_create_t xvid_plg_create;
39 xvid_plugin_2pass2_t xvid_2pass2;
50 static const char *frame_types =
" ipbs";
56 snprintf(tmp,
sizeof(tmp),
"%c %d %d %d %d %d %d\n",
61 write(fd, tmp, strlen(tmp));
66 memset(&xvid_2pass2, 0,
sizeof(xvid_2pass2));
67 xvid_2pass2.version= XVID_MAKE_VERSION(1,1,0);
68 xvid_2pass2.filename= tmp_name;
74 memset(&xvid_plg_create, 0,
sizeof(xvid_plg_create));
75 xvid_plg_create.version= XVID_MAKE_VERSION(1,1,0);
78 xvid_plg_create.param= &xvid_2pass2;
88 xvid_plg_data_t xvid_plg_data;
90 memset(&xvid_plg_data, 0,
sizeof(xvid_plg_data));
91 xvid_plg_data.version= XVID_MAKE_VERSION(1,1,0);
92 xvid_plg_data.width = s->
width;
93 xvid_plg_data.height= s->
height;
94 xvid_plg_data.mb_width = s->
mb_width;
98 xvid_plg_data.min_quant[0]= s->
avctx->
qmin;
99 xvid_plg_data.min_quant[1]= s->
avctx->
qmin;
100 xvid_plg_data.min_quant[2]= s->
avctx->
qmin;
101 xvid_plg_data.max_quant[0]= s->
avctx->
qmax;
102 xvid_plg_data.max_quant[1]= s->
avctx->
qmax;
103 xvid_plg_data.max_quant[2]= s->
avctx->
qmax;
104 xvid_plg_data.bquant_offset = 0;
105 xvid_plg_data.bquant_ratio = 100;
108 xvid_plg_data.stats.hlength= X
113 xvid_plg_data.length=
114 xvid_plg_data.stats.length= (s->
frame_bits + 7)/8;
116 xvid_plg_data.quant= s->
qscale;
126 xvid_plg_data.quant= 0;
144 xvid_plg_destroy_t xvid_plg_destroy;