Changeset 4651

Show
Ignore:
Timestamp:
02/26/10 06:04:01 (4 years ago)
Author:
douglask
Message:

Change default fallback pixelformat from MEDIASUBTYPE_RGB24 to MEDIASUBTYPE_UYVY. Avoids excessive pixel format conversions (and intermediate filters) which was what was happening with 480i DV where flashing white line artefacts were occurring.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • vic/branches/mpeg4/video/grabber-win32DS.cpp

    r4578 r4651  
    354354                   mt_.subtype = MEDIASUBTYPE_RGB24; // RGB 24 bit 
    355355           } else { 
    356                    mt_.subtype = MEDIASUBTYPE_RGB24; 
     356                   mt_.subtype = MEDIASUBTYPE_UYVY; 
    357357           } 
    358358   } else { 
     
    366366                   mt_.subtype = MEDIASUBTYPE_RGB24; // RGB 24 bit 
    367367           } else { 
    368                    mt_.subtype = MEDIASUBTYPE_RGB24; 
     368                   mt_.subtype = MEDIASUBTYPE_UYVY; 
    369369           } 
    370370   } 
     
    744744       converter_->convert((u_int8_t*)last_frame_, width_, height_, frame_, outw_, outh_, TRUE); 
    745745         else 
    746        converter_->convert((u_int8_t*)last_frame_, width_, height_, frame_, outw_, outh_, TRUE); 
     746       packedUYVY422_to_planarYUYV420((char *)frame_, outw_, outh_, (char *)last_frame_, inw_, inh_); 
    747747     break; 
    748748 
     
    757757       converter_->convert((u_int8_t*)last_frame_, width_, height_, frame_, outw_, outh_, TRUE); 
    758758         else 
    759        converter_->convert((u_int8_t*)last_frame_, width_, height_, frame_, outw_, outh_, TRUE); 
     759       packedUYVY422_to_planarYUYV422((char *)frame_, outw_, outh_, (char *)last_frame_, inw_, inh_); 
    760760     break; 
    761761   }