[svn] / branches / dev-api-4 / xvidcore / src / encoder.c Repository:
ViewVC logotype

Diff of /branches/dev-api-4/xvidcore/src/encoder.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1266, Wed Dec 17 13:15:33 2003 UTC revision 1267, Wed Dec 17 15:16:16 2003 UTC
# Line 21  Line 21 
21   *  along with this program ; if not, write to the Free Software   *  along with this program ; if not, write to the Free Software
22   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
23   *   *
24   * $Id: encoder.c,v 1.95.2.58 2003-12-12 14:16:40 edgomez Exp $   * $Id: encoder.c,v 1.95.2.59 2003-12-17 15:16:16 edgomez Exp $
25   *   *
26   ****************************************************************************/   ****************************************************************************/
27    
# Line 740  Line 740 
740                  data.mblks = frame->sStat.mblks;                  data.mblks = frame->sStat.mblks;
741                  data.ublks = frame->sStat.ublks;                  data.ublks = frame->sStat.ublks;
742    
743                  if (stats) {                  /* New code */
744                          stats->type = coding2type(frame->coding_type);                  data.stats.type      = coding2type(frame->coding_type);
745                          stats->quant = frame->quant;                  data.stats.quant     = frame->quant;
746                          stats->vol_flags = frame->vol_flags;                  data.stats.vol_flags = frame->vol_flags;
747                          stats->vop_flags = frame->vop_flags;                  data.stats.vop_flags = frame->vop_flags;
748                          stats->length = frame->length;                  data.stats.length    = frame->length;
749                          stats->hlength = frame->length - (frame->sStat.iTextBits / 8);                  data.stats.hlength   = frame->length - (frame->sStat.iTextBits / 8);
750                          stats->kblks = frame->sStat.kblks;                  data.stats.kblks     = frame->sStat.kblks;
751                          stats->mblks = frame->sStat.mblks;                  data.stats.mblks     = frame->sStat.mblks;
752                          stats->ublks = frame->sStat.ublks;                  data.stats.ublks     = frame->sStat.ublks;
753                          stats->sse_y = data.sse_y;                  data.stats.sse_y     = data.sse_y;
754                          stats->sse_u = data.sse_u;                  data.stats.sse_u     = data.sse_u;
755                          stats->sse_v = data.sse_v;                  data.stats.sse_v     = data.sse_v;
756                  }  
757                    if (stats)
758                            *stats = data.stats;
759          }          }
760    
761          /* call plugins */          /* call plugins */
# Line 1266  Line 1268 
1268                  pEnc->iFrameNum = 1;                  pEnc->iFrameNum = 1;
1269    
1270                  /* ---- update vol flags at IVOP ----------- */                  /* ---- update vol flags at IVOP ----------- */
1271                  pEnc->current->vol_flags = pEnc->mbParam.vol_flags = frame->vol_flags;                  pEnc->mbParam.vol_flags = frame->vol_flags;
1272    
1273                  /* Aspect ratio */                  /* Aspect ratio */
1274                  switch(frame->par) {                  switch(frame->par) {

Legend:
Removed from v.1266  
changed lines
  Added in v.1267

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4