onyxd.h 1.8 KB

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