aspect.h
上传用户:poi891205
上传日期:2013-07-15
资源大小:9745k
文件大小:2k
源码类别:

DVD

开发平台:

C/C++

  1. #ifndef __ASPECT_H
  2. #define __ASPECT_H
  3. //
  4. // tell TV which kind of signal we are sending now.
  5. //
  6. #define OUTPUT_TV_ASPECT_4_3    (0<<4)
  7. #define OUTPUT_TV_ASPECT_16_9   (1<<4)
  8. #define OUTPUT_TV_ASPECT_14_9   (2<<4)
  9. #define OUTPUT_TV_ASPECT_MASK   (0x0f<<4)
  10. #define OUTPUT_SRC_ASPECT_4_3   (0<<0)
  11. #define OUTPUT_SRC_ASPECT_16_9  (1<<0)
  12. #define OUTPUT_SRC_ASPECT_MASK  (0x03<<0)
  13. #define OUTPUT_ENLARGE          (1<<7)
  14. //
  15. // only following 4 combinations are allowed.
  16. // OUTPUT_ASPECT_NORMAL     4:3 source, output to 4:3 TV
  17. // OUTPUT_ASPECT_ANAMORPHIC 16:9 source, output to 16:9 TV
  18. // OUTPUT_ASPECT_LETTERBOX  16:9 source output to 4:3 TV with letterbox
  19. // OUTPUT_ASPECT_PANSCAN    16:9 source output to 4:3 TV with pan-scan
  20. //
  21. #define OUTPUT_ASPECT_NORMAL            (OUTPUT_TV_ASPECT_4_3|OUTPUT_SRC_ASPECT_4_3)
  22. #define OUTPUT_ASPECT_ANAMORPHIC        (OUTPUT_TV_ASPECT_16_9|OUTPUT_SRC_ASPECT_16_9)
  23. #define OUTPUT_ASPECT_LETTERBOX         (OUTPUT_TV_ASPECT_4_3|OUTPUT_SRC_ASPECT_16_9)
  24. #define OUTPUT_ASPECT_PANSCAN           (OUTPUT_TV_ASPECT_4_3|OUTPUT_SRC_ASPECT_16_9|OUTPUT_ENLARGE)
  25. #define OUTPUT_ASPECT_COMPRESSED        (OUTPUT_TV_ASPECT_16_9|OUTPUT_SRC_ASPECT_4_3)
  26. extern  UINT8   output_aspect;
  27. #define set_output_aspect(v)    (output_aspect=(v))
  28. #define get_output_aspect(v)    (output_aspect)
  29. //
  30. // in NTSC, the WSS should send:
  31. // OUTPUT_ASPECT_NORMAL     00: normal
  32. // OUTPUT_ASPECT_ANAMORPHIC 01: anamorphic
  33. // OUTPUT_ASPECT_LETTERBOX  10: letterbox
  34. // OUTPUT_ASPECT_PANSCAN    00: normal (pan-scan enlarged)
  35. //
  36. // in PAL, the WSS should send:
  37. // OUTPUT_ASPECT_NORMAL     1000: normal
  38. // OUTPUT_ASPECT_ANAMORPHIC 0111: anamorphic
  39. // OUTPUT_ASPECT_LETTERBOX  1011: letterbox
  40. // OUTPUT_ASPECT_PANSCAN    1000: normal (pan-scan enlarged)
  41. //
  42. //
  43. #endif/*__ASPECT_H*/