[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 707, Thu Dec 12 10:38:28 2002 UTC
# Line 77  Line 77 
77  log2bin(uint32_t value)  log2bin(uint32_t value)
78  {  {
79  /* Changed by Chenm001 */  /* Changed by Chenm001 */
80  #ifndef WIN32  #if !defined(_MSC_VER)
81          int n = 0;          int n = 0;
82    
83          while (value) {          while (value) {
# Line 568  Line 568 
568                                          BitstreamSkip(bs, 15);  // latter_half_vbv_occupancy                                          BitstreamSkip(bs, 15);  // latter_half_vbv_occupancy
569                                          READ_MARKER();                                          READ_MARKER();
570                                  }                                  }
571                            }else{
572                                    dec->low_delay = dec->low_delay_default;
573                          }                          }
574    
575                          dec->shape = BitstreamGetBits(bs, 2);   // video_object_layer_shape                          dec->shape = BitstreamGetBits(bs, 2);   // video_object_layer_shape
# Line 872  Line 874 
874                                  dec->time_bp = (uint32_t)                                  dec->time_bp = (uint32_t)
875                                          (dec->time_inc_resolution + dec->last_non_b_time - dec->time)%dec->time_inc_resolution;                                          (dec->time_inc_resolution + dec->last_non_b_time - dec->time)%dec->time_inc_resolution;
876                          }                          }
877                            DPRINTF(DPRINTF_HEADER,"time_pp=%i", dec->time_pp);
878                            DPRINTF(DPRINTF_HEADER,"time_bp=%i", dec->time_bp);
879    
880                          READ_MARKER();                          READ_MARKER();
881    
# Line 1034  Line 1038 
1038    
1039                  } else if (start_code == USERDATA_START_CODE) {                  } else if (start_code == USERDATA_START_CODE) {
1040                          char tmp[256];                          char tmp[256];
1041                      int i, version, build, packed;                      int i, version, build;
1042                            char packed;
1043    
1044                          BitstreamSkip(bs, 32);  // user_data_start_code                          BitstreamSkip(bs, 32);  // user_data_start_code
1045    
# Line 1109  Line 1114 
1114  {  {
1115          int vol_ver_id=1;          int vol_ver_id=1;
1116    
1117          if ( (pParam->m_quarterpel) || (frame->global_flags & XVID_GMC) )          if ( pParam->m_quarterpel ||  (frame->global_flags & XVID_GMC) ||
1118                     (pParam->global & XVID_GLOBAL_REDUCED))
1119                  vol_ver_id = 2;                  vol_ver_id = 2;
1120    
1121          // video object_start_code & vo_id          // video object_start_code & vo_id
# Line 1221  Line 1227 
1227          if (vol_ver_id != 1)          if (vol_ver_id != 1)
1228          {          {
1229                  BitstreamPutBit(bs, 0);         // newpred_enable                  BitstreamPutBit(bs, 0);         // newpred_enable
1230                  BitstreamPutBit(bs, 0);         // reduced_resolution_vop_enabled  
1231                    BitstreamPutBit(bs, (pParam->global & XVID_GLOBAL_REDUCED)?1:0);
1232                                                                            /* reduced_resolution_vop_enabled */
1233          }          }
1234    
1235          BitstreamPutBit(bs, 0);         // scalability          BitstreamPutBit(bs, 0);         // scalability
# Line 1233  Line 1241 
1241    write vop header    write vop header
1242  */  */
1243  void  void
1244  BitstreamWriteVopHeader(Bitstream * const bs,  BitstreamWriteVopHeader(
1245                                                    Bitstream * const bs,
1246                                                  const MBParam * pParam,                                                  const MBParam * pParam,
1247                                                  const FRAMEINFO * const frame,                                                  const FRAMEINFO * const frame,
1248                                                  int vop_coded)                                                  int vop_coded)
# Line 1272  Line 1281 
1281          if ( (frame->coding_type == P_VOP) || (frame->coding_type == S_VOP) )          if ( (frame->coding_type == P_VOP) || (frame->coding_type == S_VOP) )
1282                  BitstreamPutBits(bs, frame->rounding_type, 1);                  BitstreamPutBits(bs, frame->rounding_type, 1);
1283    
1284            if ((pParam->global & XVID_GLOBAL_REDUCED))
1285                    BitstreamPutBit(bs, (frame->global_flags & XVID_REDUCED)?1:0);
1286    
1287          BitstreamPutBits(bs, 0, 3);     // intra_dc_vlc_threshold          BitstreamPutBits(bs, 0, 3);     // intra_dc_vlc_threshold
1288    
1289          if (frame->global_flags & XVID_INTERLACING) {          if (frame->global_flags & XVID_INTERLACING) {

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

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