search for: codec_setup

Displaying 6 results from an estimated 6 matches for "codec_setup".

2005 Jun 25
0
Accessing codec_setup members through a vorbis_info variable
...o instead of babbling an explanation basiclly what I am looking for from the vorbis encoder_example.c: vorbis_info_init(&vi); ret=vorbis_encode_init_vbr(&vi,2,44100,.5); printf( "long bitrate_nominal = %ld", vi.bitrate_nominal ); printf( "long blocksizes[0] = %ld", vi.codec_setup.blocksizes[0] ); printf( "long blocksizes[1] = %ld", vi.codec_setup.blocksizes[1] ); printf( "int modes = %d", vi.codec_setup.modes ); ... ... I know this is more of a C syntax question involving void * struct pointers, but me and C-style pointers never got along much, I am a...
2005 Aug 05
1
debugging question.
...debug and can single step through the program. However i am facing the following problem (which I think is more of C than vorbis) 1. after single steppig I finally arrive at the function shown below (in file lib/info.c) static int _vorbis_unpack_info(vorbis_info *vi,oggpack_buffer *opb){ 196 codec_setup_info *ci=vi->codec_setup; 197 if(!ci)return(OV_EFAULT); 198 199 vi->version=oggpack_read(opb,32); 200 if(vi->version!=0)return(OV_EVERSION); 201 202 vi->channels=oggpack_read(opb,8); 203 vi->rate=oggpack_read(opb,32); 204 205 vi->bitrate_upper=oggpack_read(opb,32);...
2008 Jan 07
0
uninitialised theora_info values
...struct ... ---- + Freeing encoder context ... PASS: noop Tracing this through, the theora_info structure seen by theora_encode_init is created by th_info2theora_info in encapiwrapper.c. This in turn does not set the following members of the theora_info struct it creates: /* decode */ _ci->codec_setup /* encode */ _ci->quick_p _ci->dropframes_p _ci->keyframe_auto_p _ci->keyframe_frequency _ci->keyframe_data_target_bitrate _ci->keyframe_auto_threshold _ci->keyframe_mindistance _ci->noise_sensitivity _ci->sharpness The values of some of these are su...
2003 Oct 09
0
Vorbis plugin for RealOne Player
...an access violation. I did some debugging and narrowed it down to the following function in the Vorbis source.. int vorbis_synthesis(vorbis_block *vb,ogg_packet *op){ vorbis_dsp_state *vd=vb->vd; backend_lookup_state *b=vd->backend_state; vorbis_info *vi=vd->vi; codec_setup_info *ci=vi->codec_setup; oggpack_buffer *opb=&vb->opb; int type,mode,i; /* first things first. Make sure decode is ready */ _vorbis_block_ripcord(vb); oggpack_readinit(opb,op->packet,op->bytes); /* Check the packet type */ if(oggpa...
2004 Jul 26
1
theora_info struct question
...wing struct members (from the theora_info structure) do and what values one should pass to them: If there is some documentation somewhere that I've missed, please direct me to it. ===== Extract from theora.h ===== int quality; int quick_p; /* quick encode/decode */ void *codec_setup; /* encode only */ int dropframes_p; int keyframe_auto_p; ogg_uint32_t keyframe_frequency; ogg_uint32_t keyframe_frequency_force; /* also used for decode init to get granpos shift correct */ ogg_uint32_t keyframe_data_target_bitrate; ogg_int32_t keyframe_auto_threshold; o...
2004 Aug 24
5
MMX/mmxext optimisations
quite some speed improvement indeed. attached the updated patch to apply to svn/trunk. j -------------- next part -------------- A non-text attachment was scrubbed... Name: theora-mmx.patch.gz Type: application/x-gzip Size: 8648 bytes Desc: not available Url : http://lists.xiph.org/pipermail/theora-dev/attachments/20040824/5a5f2731/theora-mmx.patch-0001.bin