preprocif.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /****************************************************************************
  2. *
  3. * Module Title : preproc_if.h
  4. *
  5. * Description : Pre-processor interface header file.
  6. *
  7. ****************************************************************************/
  8. #ifndef __PREPROC_IF_H
  9. #define __PREPROC_IF_H
  10. /****************************************************************************
  11. * Header Files
  12. ****************************************************************************/
  13. #include "type_aliases.h"
  14. /****************************************************************************
  15. * Types
  16. ****************************************************************************/
  17. typedef struct
  18. {
  19. UINT8 * Yuv0ptr;
  20. UINT8 * Yuv1ptr;
  21. UINT8 *FragInfo; // blocks coded : passed in
  22. UINT32 FragInfoElementSize; // size of each element
  23. UINT32 FragInfoCodedMask; // mask to get at whether fragment is coded
  24. UINT32 * RegionIndex; // Gives pixel index for top left of each block
  25. UINT32 VideoFrameHeight;
  26. UINT32 VideoFrameWidth;
  27. UINT8 HFragPixels;
  28. UINT8 VFragPixels;
  29. } SCAN_CONFIG_DATA;
  30. typedef enum
  31. { SCP_FILTER_ON_OFF,
  32. SCP_SET_SRF_OFFSET,
  33. SCP_SET_EBO_ON_OFF,
  34. SCP_SET_VCAP_LEVEL_OFFSET,
  35. SCP_SET_SHOW_LOCAL
  36. } SCP_SETTINGS;
  37. typedef struct PP_INSTANCE * xPP_INST;
  38. /****************************************************************************
  39. * Module statics
  40. ****************************************************************************/
  41. /* Controls whether Early break out is on or off in default case */
  42. #define EARLY_BREAKOUT_DEFAULT TRUE
  43. /****************************************************************************
  44. * Functions
  45. ****************************************************************************/
  46. extern void SetScanParam ( xPP_INST ppi, UINT32 ParamId, INT32 ParamValue );
  47. extern UINT32 YUVAnalyseFrame ( xPP_INST ppi, UINT32 * KFIndicator );
  48. extern xPP_INST CreatePPInstance ( void );
  49. extern void DeletePPInstance ( xPP_INST * );
  50. extern BOOL ScanYUVInit ( xPP_INST, SCAN_CONFIG_DATA *ScanConfigPtr );
  51. #endif