set.h 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /*****************************************************************************
  2. * set.h: header writing
  3. *****************************************************************************
  4. * Copyright (C) 2003-2018 x264 project
  5. *
  6. * Authors: Laurent Aimar <fenrir@via.ecp.fr>
  7. * Loren Merritt <lorenm@u.washington.edu>
  8. *
  9. * This program is free software; you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License as published by
  11. * the Free Software Foundation; either version 2 of the License, or
  12. * (at your option) any later version.
  13. *
  14. * This program is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU General Public License
  20. * along with this program; if not, write to the Free Software
  21. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111, USA.
  22. *
  23. * This program is also available under a commercial proprietary license.
  24. * For more information, contact us at licensing@x264.com.
  25. *****************************************************************************/
  26. #ifndef X264_ENCODER_SET_H
  27. #define X264_ENCODER_SET_H
  28. #define x264_sps_init x264_template(sps_init)
  29. void x264_sps_init( x264_sps_t *sps, int i_id, x264_param_t *param );
  30. #define x264_sps_init_reconfigurable x264_template(sps_init_reconfigurable)
  31. void x264_sps_init_reconfigurable( x264_sps_t *sps, x264_param_t *param );
  32. #define x264_sps_init_scaling_list x264_template(sps_init_scaling_list)
  33. void x264_sps_init_scaling_list( x264_sps_t *sps, x264_param_t *param );
  34. #define x264_sps_write x264_template(sps_write)
  35. void x264_sps_write( bs_t *s, x264_sps_t *sps );
  36. #define x264_pps_init x264_template(pps_init)
  37. void x264_pps_init( x264_pps_t *pps, int i_id, x264_param_t *param, x264_sps_t *sps );
  38. #define x264_pps_write x264_template(pps_write)
  39. void x264_pps_write( bs_t *s, x264_sps_t *sps, x264_pps_t *pps );
  40. #define x264_sei_recovery_point_write x264_template(sei_recovery_point_write)
  41. void x264_sei_recovery_point_write( x264_t *h, bs_t *s, int recovery_frame_cnt );
  42. #define x264_sei_version_write x264_template(sei_version_write)
  43. int x264_sei_version_write( x264_t *h, bs_t *s );
  44. #define x264_validate_levels x264_template(validate_levels)
  45. int x264_validate_levels( x264_t *h, int verbose );
  46. #define x264_sei_buffering_period_write x264_template(sei_buffering_period_write)
  47. void x264_sei_buffering_period_write( x264_t *h, bs_t *s );
  48. #define x264_sei_pic_timing_write x264_template(sei_pic_timing_write)
  49. void x264_sei_pic_timing_write( x264_t *h, bs_t *s );
  50. #define x264_sei_dec_ref_pic_marking_write x264_template(sei_dec_ref_pic_marking_write)
  51. void x264_sei_dec_ref_pic_marking_write( x264_t *h, bs_t *s );
  52. #define x264_sei_frame_packing_write x264_template(sei_frame_packing_write)
  53. void x264_sei_frame_packing_write( x264_t *h, bs_t *s );
  54. #define x264_sei_alternative_transfer_write x264_template(sei_alternative_transfer_write)
  55. void x264_sei_alternative_transfer_write( x264_t *h, bs_t *s );
  56. #define x264_sei_avcintra_umid_write x264_template(sei_avcintra_umid_write)
  57. int x264_sei_avcintra_umid_write( x264_t *h, bs_t *s );
  58. #define x264_sei_avcintra_vanc_write x264_template(sei_avcintra_vanc_write)
  59. int x264_sei_avcintra_vanc_write( x264_t *h, bs_t *s, int len );
  60. #define x264_sei_write x264_template(sei_write)
  61. void x264_sei_write( bs_t *s, uint8_t *payload, int payload_size, int payload_type );
  62. #define x264_filler_write x264_template(filler_write)
  63. void x264_filler_write( x264_t *h, bs_t *s, int filler );
  64. #endif