saa6752hs.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /*
  2. saa6752hs.h - definition for saa6752hs MPEG encoder
  3. Copyright (C) 2003 Andrew de Quincey <adq@lidskialf.net>
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 2 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program; if not, write to the Free Software
  14. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  15. */
  16. #if 0 /* ndef _SAA6752HS_H */
  17. #define _SAA6752HS_H
  18. enum mpeg_video_bitrate_mode {
  19. MPEG_VIDEO_BITRATE_MODE_VBR = 0, /* Variable bitrate */
  20. MPEG_VIDEO_BITRATE_MODE_CBR = 1, /* Constant bitrate */
  21. MPEG_VIDEO_BITRATE_MODE_MAX
  22. };
  23. enum mpeg_audio_bitrate {
  24. MPEG_AUDIO_BITRATE_256 = 0, /* 256 kBit/sec */
  25. MPEG_AUDIO_BITRATE_384 = 1, /* 384 kBit/sec */
  26. MPEG_AUDIO_BITRATE_MAX
  27. };
  28. enum mpeg_video_format {
  29. MPEG_VIDEO_FORMAT_D1 = 0,
  30. MPEG_VIDEO_FORMAT_2_3_D1 = 1,
  31. MPEG_VIDEO_FORMAT_1_2_D1 = 2,
  32. MPEG_VIDEO_FORMAT_SIF = 3,
  33. MPEG_VIDEO_FORMAT_MAX
  34. };
  35. #define MPEG_VIDEO_TARGET_BITRATE_MAX 27000
  36. #define MPEG_VIDEO_MAX_BITRATE_MAX 27000
  37. #define MPEG_TOTAL_BITRATE_MAX 27000
  38. #define MPEG_PID_MAX ((1 << 14) - 1)
  39. struct mpeg_params {
  40. enum mpeg_video_bitrate_mode video_bitrate_mode;
  41. unsigned int video_target_bitrate;
  42. unsigned int video_max_bitrate; // only used for VBR
  43. enum mpeg_audio_bitrate audio_bitrate;
  44. unsigned int total_bitrate;
  45. unsigned int pmt_pid;
  46. unsigned int video_pid;
  47. unsigned int audio_pid;
  48. unsigned int pcr_pid;
  49. enum mpeg_video_format video_format;
  50. };
  51. #define MPEG_SETPARAMS _IOW('6',100,struct mpeg_params)
  52. #endif // _SAA6752HS_H
  53. /*
  54. * Local variables:
  55. * c-basic-offset: 8
  56. * End:
  57. */