encoder_disabled.c 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /********************************************************************
  2. * *
  3. * THIS FILE IS PART OF THE OggTheora SOFTWARE CODEC SOURCE CODE. *
  4. * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
  5. * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
  6. * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
  7. * *
  8. * THE Theora SOURCE CODE IS COPYRIGHT (C) 2002-2009 *
  9. * by the Xiph.Org Foundation https://www.xiph.org/ *
  10. * *
  11. ********************************************************************
  12. function:
  13. ********************************************************************/
  14. #include "apiwrapper.h"
  15. #include "encint.h"
  16. const th_quant_info TH_VP31_QUANT_INFO = {};
  17. const th_huff_code TH_VP31_HUFF_CODES[TH_NHUFFMAN_TABLES][TH_NDCT_TOKENS];
  18. th_enc_ctx *th_encode_alloc(const th_info *_info){
  19. return NULL;
  20. }
  21. void th_encode_free(th_enc_ctx *_enc){}
  22. int th_encode_ctl(th_enc_ctx *_enc,int _req,void *_buf,size_t _buf_sz){
  23. return OC_DISABLED;
  24. }
  25. int th_encode_flushheader(th_enc_ctx *_enc,th_comment *_tc,ogg_packet *_op){
  26. return OC_DISABLED;
  27. }
  28. int th_encode_ycbcr_in(th_enc_ctx *_enc,th_ycbcr_buffer _img){
  29. return OC_DISABLED;
  30. }
  31. int th_encode_packetout(th_enc_ctx *_enc,int _last_p,ogg_packet *_op){
  32. return OC_DISABLED;
  33. }
  34. int theora_encode_init(theora_state *_te,theora_info *_ci){
  35. return OC_DISABLED;
  36. }
  37. int theora_encode_YUVin(theora_state *_te,yuv_buffer *_yuv){
  38. return OC_DISABLED;
  39. }
  40. int theora_encode_packetout(theora_state *_te,int _last_p,ogg_packet *_op){
  41. return OC_DISABLED;
  42. }
  43. int theora_encode_header(theora_state *_te,ogg_packet *_op){
  44. return OC_DISABLED;
  45. }
  46. int theora_encode_comment(theora_comment *_tc,ogg_packet *_op){
  47. return OC_DISABLED;
  48. }
  49. int theora_encode_tables(theora_state *_te,ogg_packet *_op){
  50. return OC_DISABLED;
  51. }