00001 // -*- Mode: c++ -*- 00002 00003 #include "mythplayer.h" 00004 00005 using namespace std; 00006 00007 class MythPlayer; 00008 00009 class MTV_PUBLIC DetectLetterbox 00010 { 00011 public: 00012 DetectLetterbox(MythPlayer* const player); 00013 ~DetectLetterbox(); 00014 void SetDetectLetterbox(bool detect); 00015 bool GetDetectLetterbox() const; 00016 void Detect(VideoFrame *frame); 00017 void SwitchTo(VideoFrame *frame); 00018 00019 private: 00020 bool isDetectLetterbox; 00021 int firstFrameChecked; 00022 00023 AdjustFillMode detectLetterboxDefaultMode; 00024 AdjustFillMode detectLetterboxDetectedMode; // Wich mode was last detected 00025 long long detectLetterboxSwitchFrame; // On wich frame was the mode switch detected 00026 long long detectLetterboxPossibleHalfFrame; 00027 long long detectLetterboxPossibleFullFrame; 00028 int detectLetterboxConsecutiveCounter; 00029 00030 MythPlayer *m_player; 00031 00032 int detectLetterboxLimit; 00033 QMutex detectLetterboxLock; 00034 }; 00035 00036 /* vim: set expandtab tabstop=4 shiftwidth=4: */
1.6.3