y4menc.h 899 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * Copyright (c) 2014 The WebM project authors. All Rights Reserved.
  3. *
  4. * Use of this source code is governed by a BSD-style license
  5. * that can be found in the LICENSE file in the root of the source
  6. * tree. An additional intellectual property rights grant can be found
  7. * in the file PATENTS. All contributing project authors may
  8. * be found in the AUTHORS file in the root of the source tree.
  9. */
  10. #ifndef Y4MENC_H_
  11. #define Y4MENC_H_
  12. #include "./tools_common.h"
  13. #include "vpx/vpx_decoder.h"
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17. #define Y4M_BUFFER_SIZE 128
  18. int y4m_write_file_header(char *buf, size_t len, int width, int height,
  19. const struct VpxRational *framerate,
  20. vpx_img_fmt_t fmt, unsigned int bit_depth);
  21. int y4m_write_frame_header(char *buf, size_t len);
  22. #ifdef __cplusplus
  23. } // extern "C"
  24. #endif
  25. #endif // Y4MENC_H_