encoder_disabled.c 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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 http://www.xiph.org/ *
  10. * *
  11. ********************************************************************
  12. function:
  13. last mod: $Id: encoder_disabled.c 16503 2009-08-22 18:14:02Z giles $
  14. ********************************************************************/
  15. #include "apiwrapper.h"
  16. #include "encint.h"
  17. th_enc_ctx *th_encode_alloc(const th_info *_info){
  18. return NULL;
  19. }
  20. void th_encode_free(th_enc_ctx *_enc){}
  21. int th_encode_ctl(th_enc_ctx *_enc,int _req,void *_buf,size_t _buf_sz){
  22. return OC_DISABLED;
  23. }
  24. int th_encode_flushheader(th_enc_ctx *_enc,th_comment *_tc,ogg_packet *_op){
  25. return OC_DISABLED;
  26. }
  27. int th_encode_ycbcr_in(th_enc_ctx *_enc,th_ycbcr_buffer _img){
  28. return OC_DISABLED;
  29. }
  30. int th_encode_packetout(th_enc_ctx *_enc,int _last_p,ogg_packet *_op){
  31. return OC_DISABLED;
  32. }
  33. int theora_encode_init(theora_state *_te,theora_info *_ci){
  34. return OC_DISABLED;
  35. }
  36. int theora_encode_YUVin(theora_state *_te,yuv_buffer *_yuv){
  37. return OC_DISABLED;
  38. }
  39. int theora_encode_packetout(theora_state *_te,int _last_p,ogg_packet *_op){
  40. return OC_DISABLED;
  41. }
  42. int theora_encode_header(theora_state *_te,ogg_packet *_op){
  43. return OC_DISABLED;
  44. }
  45. int theora_encode_comment(theora_comment *_tc,ogg_packet *_op){
  46. return OC_DISABLED;
  47. }
  48. int theora_encode_tables(theora_state *_te,ogg_packet *_op){
  49. return OC_DISABLED;
  50. }