onyxd.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /*
  2. * Copyright (c) 2010 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 VPX_VP8_COMMON_ONYXD_H_
  11. #define VPX_VP8_COMMON_ONYXD_H_
  12. /* Create/destroy static data structures. */
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. #include "vpx_scale/yv12config.h"
  17. #include "ppflags.h"
  18. #include "vpx_ports/mem.h"
  19. #include "vpx/vpx_codec.h"
  20. #include "vpx/vp8.h"
  21. struct VP8D_COMP;
  22. struct VP8Common;
  23. typedef struct {
  24. int Width;
  25. int Height;
  26. int Version;
  27. int postprocess;
  28. int max_threads;
  29. int error_concealment;
  30. } VP8D_CONFIG;
  31. typedef enum { VP8D_OK = 0 } VP8D_SETTING;
  32. void vp8dx_initialize(void);
  33. void vp8dx_set_setting(struct VP8D_COMP *comp, VP8D_SETTING oxst, int x);
  34. int vp8dx_get_setting(struct VP8D_COMP *comp, VP8D_SETTING oxst);
  35. int vp8dx_receive_compressed_data(struct VP8D_COMP *pbi, size_t size,
  36. const uint8_t *source, int64_t time_stamp);
  37. int vp8dx_get_raw_frame(struct VP8D_COMP *pbi, YV12_BUFFER_CONFIG *sd,
  38. int64_t *time_stamp, int64_t *time_end_stamp,
  39. vp8_ppflags_t *flags);
  40. int vp8dx_references_buffer(struct VP8Common *oci, int ref_frame);
  41. vpx_codec_err_t vp8dx_get_reference(struct VP8D_COMP *pbi,
  42. enum vpx_ref_frame_type ref_frame_flag,
  43. YV12_BUFFER_CONFIG *sd);
  44. vpx_codec_err_t vp8dx_set_reference(struct VP8D_COMP *pbi,
  45. enum vpx_ref_frame_type ref_frame_flag,
  46. YV12_BUFFER_CONFIG *sd);
  47. int vp8dx_get_quantizer(const struct VP8D_COMP *pbi);
  48. #ifdef __cplusplus
  49. }
  50. #endif
  51. #endif // VPX_VP8_COMMON_ONYXD_H_