[svn] / branches / release-1_3-branch / xvidcore / dshow / src / CXvidDecoder.h Repository:
ViewVC logotype

Diff of /branches/release-1_3-branch/xvidcore/dshow/src/CXvidDecoder.h

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

revision 1962, Thu Mar 17 15:13:25 2011 UTC revision 2131, Fri Jan 8 17:44:53 2016 UTC
# Line 3  Line 3 
3   *  XVID MPEG-4 VIDEO CODEC   *  XVID MPEG-4 VIDEO CODEC
4   *  - XviD Decoder part of the DShow Filter  -   *  - XviD Decoder part of the DShow Filter  -
5   *   *
6   *  Copyright(C) 2002-2010 Peter Ross <pross@xvid.org>   *  Copyright(C) 2002-2012 Peter Ross <pross@xvid.org>
7   *   *
8   *  This program is free software ; you can redistribute it and/or modify   *  This program is free software ; you can redistribute it and/or modify
9   *  it under the terms of the GNU General Public License as published by   *  it under the terms of the GNU General Public License as published by
# Line 19  Line 19 
19   *  along with this program ; if not, write to the Free Software   *  along with this program ; if not, write to the Free Software
20   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
21   *   *
22   * $Id: CXvidDecoder.h,v 1.9.2.2 2011-03-17 15:13:25 Isibaar Exp $   * $Id$
23   *   *
24   ****************************************************************************/   ****************************************************************************/
25    
26  #ifndef _FILTER_H_  #ifndef _FILTER_H_
27  #define _FILTER_H_  #define _FILTER_H_
28    
29    #include <time.h>
30  #include <xvid.h>  #include <xvid.h>
31  #include "IXvidDecoder.h"  #include "IXvidDecoder.h"
32    
33  #define XVID_NAME_L             L"Xvid MPEG-4 Video Decoder"  #define XVID_NAME_L             L"Xvid MPEG-4 Video Decoder"
34    #define XVID_NAME_MFT_L L"Xvid MPEG-4 Video Decoder MFT"
35    
36  /* --- fourcc --- */  /* --- fourcc --- */
37    
# Line 153  Line 155 
155    
156  private :  private :
157    
158          HRESULT ChangeColorspace(GUID subtype, GUID formattype, void * format, int noflip);          HRESULT ChangeColorspace(GUID subtype, GUID formattype, void * format, int *bitdepth, int noflip);
159          HRESULT OpenLib();          HRESULT OpenLib();
160          void CloseLib();          void CloseLib();
161    
# Line 164  Line 166 
166          int (*xvid_global_func)(void *handle, int opt, void *param1, void *param2);          int (*xvid_global_func)(void *handle, int opt, void *param1, void *param2);
167          int (*xvid_decore_func)(void *handle, int opt, void *param1, void *param2);          int (*xvid_decore_func)(void *handle, int opt, void *param1, void *param2);
168          int ar_x, ar_y;          int ar_x, ar_y;
169            int interlaced;
170          bool forced_ar;          bool forced_ar;
171    
172          int rgb_flip;          int rgb_flip;
173          int out_stride;          int out_stride;
174    
175            clock_t m_startClock;
176            int m_tray_icon;
177    
178          /* mft stuff */          /* mft stuff */
179  #if defined(XVID_USE_MFT)  #if defined(XVID_USE_MFT)
180          BOOL HasPendingOutput() const { return m_frame.output.plane[1] != NULL; }          BOOL HasPendingOutput() const { return m_frame.output.plane[1] != NULL; }
# Line 176  Line 182 
182          HRESULT OnSetInputType(IMFMediaType *pmt);          HRESULT OnSetInputType(IMFMediaType *pmt);
183          HRESULT OnCheckInputType(IMFMediaType *pmt);          HRESULT OnCheckInputType(IMFMediaType *pmt);
184    
185          HRESULT OnSetOutputType(IMFMediaType *pmt);          HRESULT OnSetOutputType(IMFMediaType *pmt, int bitdepth);
186    
187          IMFMediaType *m_pInputType;          IMFMediaType *m_pInputType;
188          IMFMediaType *m_pOutputType;          IMFMediaType *m_pOutputType;
189            int m_pOutputTypeBPP;
190    
191          CRITICAL_SECTION m_mft_lock;          CRITICAL_SECTION m_mft_lock;
192          REFERENCE_TIME m_timestamp;          REFERENCE_TIME m_timestamp;
# Line 191  Line 198 
198          REFERENCE_TIME m_rtFrame;          REFERENCE_TIME m_rtFrame;
199          MFRatio m_frameRate;          MFRatio m_frameRate;
200          UINT64 m_duration;          UINT64 m_duration;
 #endif  
201    
202  #ifdef XVID_USE_TRAYICON          HANDLE m_thread_handle;
203          HWND MSG_hwnd; /* message handler window */  #endif
204  };  };
205  #define WM_ICONMESSAGE (WM_USER + 1)  #define WM_ICONMESSAGE (WM_USER + 1)
 #else  
 };  
 #endif  
206    
207  static const int PARS[][2] = {  static const int PARS[][2] = {
208          {1, 1},          {1, 1},

Legend:
Removed from v.1962  
changed lines
  Added in v.2131

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