video_decoder.h
上传用户:lgb322
上传日期:2013-02-24
资源大小:30529k
文件大小:1k
源码类别:

嵌入式Linux

开发平台:

Unix_Linux

  1. #ifndef _LINUX_VIDEO_DECODER_H
  2. #define _LINUX_VIDEO_DECODER_H
  3. struct video_decoder_capability { /* this name is too long */
  4. __u32 flags;
  5. #define VIDEO_DECODER_PAL 1 /* can decode PAL signal */
  6. #define VIDEO_DECODER_NTSC 2 /* can decode NTSC */
  7. #define VIDEO_DECODER_SECAM 4 /* can decode SECAM */
  8. #define VIDEO_DECODER_AUTO 8 /* can autosense norm */
  9. #define VIDEO_DECODER_CCIR 16 /* CCIR-601 pixel rate (720 pixels per line) instead of square pixel rate */
  10. int inputs; /* number of inputs */
  11. int outputs; /* number of outputs */
  12. };
  13. /*
  14. DECODER_GET_STATUS returns the following flags.  The only one you need is
  15. DECODER_STATUS_GOOD, the others are just nice things to know.
  16. */
  17. #define DECODER_STATUS_GOOD 1 /* receiving acceptable input */
  18. #define DECODER_STATUS_COLOR 2 /* receiving color information */
  19. #define DECODER_STATUS_PAL 4 /* auto detected */
  20. #define DECODER_STATUS_NTSC 8 /* auto detected */
  21. #define DECODER_STATUS_SECAM 16 /* auto detected */
  22. #define DECODER_GET_CAPABILITIES _IOR('d', 1, struct video_decoder_capability)
  23. #define DECODER_GET_STATUS     _IOR('d', 2, int)
  24. #define DECODER_SET_NORM _IOW('d', 3, int)
  25. #define DECODER_SET_INPUT _IOW('d', 4, int) /* 0 <= input < #inputs */
  26. #define DECODER_SET_OUTPUT _IOW('d', 5, int) /* 0 <= output < #outputs */
  27. #define DECODER_ENABLE_OUTPUT _IOW('d', 6, int) /* boolean output enable control */
  28. #define DECODER_SET_PICTURE    _IOW('d', 7, struct video_picture)
  29. #define DECODER_DUMP _IO('d', 192) /* debug hook */
  30. #endif