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

Diff of /branches/dev-api-3/xvidcore/src/bitstream/bitstream.c

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

revision 694, Sun Dec 8 05:36:20 2002 UTC revision 701, Mon Dec 9 10:47:05 2002 UTC
# Line 1034  Line 1034 
1034    
1035                  } else if (start_code == USERDATA_START_CODE) {                  } else if (start_code == USERDATA_START_CODE) {
1036                          char tmp[256];                          char tmp[256];
1037                      int i, version, build, packed;                      int i, version, build;
1038                            char packed;
1039    
1040                          BitstreamSkip(bs, 32);  // user_data_start_code                          BitstreamSkip(bs, 32);  // user_data_start_code
1041    
# Line 1109  Line 1110 
1110  {  {
1111          int vol_ver_id=1;          int vol_ver_id=1;
1112    
1113          if ( (pParam->m_quarterpel) || (frame->global_flags & XVID_GMC) )          if ( pParam->m_quarterpel ||  (frame->global_flags & XVID_GMC) ||
1114                     (pParam->global & XVID_GLOBAL_REDUCED))
1115                  vol_ver_id = 2;                  vol_ver_id = 2;
1116    
1117          // video object_start_code & vo_id          // video object_start_code & vo_id
# Line 1221  Line 1223 
1223          if (vol_ver_id != 1)          if (vol_ver_id != 1)
1224          {          {
1225                  BitstreamPutBit(bs, 0);         // newpred_enable                  BitstreamPutBit(bs, 0);         // newpred_enable
1226                  BitstreamPutBit(bs, 0);         // reduced_resolution_vop_enabled  
1227                    BitstreamPutBit(bs, (pParam->global & XVID_GLOBAL_REDUCED)?1:0);
1228                                                                            /* reduced_resolution_vop_enabled */
1229          }          }
1230    
1231          BitstreamPutBit(bs, 0);         // scalability          BitstreamPutBit(bs, 0);         // scalability
# Line 1233  Line 1237 
1237    write vop header    write vop header
1238  */  */
1239  void  void
1240  BitstreamWriteVopHeader(Bitstream * const bs,  BitstreamWriteVopHeader(
1241                                                    Bitstream * const bs,
1242                                                  const MBParam * pParam,                                                  const MBParam * pParam,
1243                                                  const FRAMEINFO * const frame,                                                  const FRAMEINFO * const frame,
1244                                                  int vop_coded)                                                  int vop_coded)
# Line 1272  Line 1277 
1277          if ( (frame->coding_type == P_VOP) || (frame->coding_type == S_VOP) )          if ( (frame->coding_type == P_VOP) || (frame->coding_type == S_VOP) )
1278                  BitstreamPutBits(bs, frame->rounding_type, 1);                  BitstreamPutBits(bs, frame->rounding_type, 1);
1279    
1280            if ((pParam->global & XVID_GLOBAL_REDUCED))
1281                    BitstreamPutBit(bs, (frame->global_flags & XVID_REDUCED)?1:0);
1282    
1283          BitstreamPutBits(bs, 0, 3);     // intra_dc_vlc_threshold          BitstreamPutBits(bs, 0, 3);     // intra_dc_vlc_threshold
1284    
1285          if (frame->global_flags & XVID_INTERLACING) {          if (frame->global_flags & XVID_INTERLACING) {

Legend:
Removed from v.694  
changed lines
  Added in v.701

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