• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/minidlna/ffmpeg-0.5.1/libavcodec/

Lines Matching defs:avccontext

53 static av_cold int oggvorbis_init_encoder(vorbis_info *vi, AVCodecContext *avccontext) {
56 if(avccontext->flags & CODEC_FLAG_QSCALE) {
58 if(vorbis_encode_setup_vbr(vi, avccontext->channels,
59 avccontext->sample_rate,
60 avccontext->global_quality / (float)FF_QP2LAMBDA / 10.0))
64 if(vorbis_encode_setup_managed(vi, avccontext->channels,
65 avccontext->sample_rate, -1, avccontext->bit_rate, -1))
76 if(avccontext->cutoff > 0) {
77 cfreq = avccontext->cutoff / 1000.0;
85 static av_cold int oggvorbis_encode_init(AVCodecContext *avccontext) {
86 OggVorbisContext *context = avccontext->priv_data ;
92 if(oggvorbis_init_encoder(&context->vi, avccontext) < 0) {
93 av_log(avccontext, AV_LOG_ERROR, "oggvorbis_encode_init: init_encoder failed") ;
106 avccontext->extradata_size= 64 + len + len/255;
107 p = avccontext->extradata= av_mallocz(avccontext->extradata_size);
118 avccontext->extradata_size = offset;
119 avccontext->extradata= av_realloc(avccontext->extradata, avccontext->extradata_size);
126 avccontext->frame_size = OGGVORBIS_FRAME_SIZE ;
128 avccontext->coded_frame= avcodec_alloc_frame();
129 avccontext->coded_frame->key_frame= 1;
135 static int oggvorbis_encode_frame(AVCodecContext *avccontext,
139 OggVorbisContext *context = avccontext->priv_data ;
178 // av_log(avccontext, AV_LOG_DEBUG, "e%d / %d\n", context->buffer_index, op.bytes);
188 avccontext->coded_frame->pts= av_rescale_q(op2->granulepos, (AVRational){1, avccontext->sample_rate}, avccontext->time_base);
194 // av_log(avccontext, AV_LOG_DEBUG, "E%d\n", l);
201 static av_cold int oggvorbis_encode_close(AVCodecContext *avccontext) {
202 OggVorbisContext *context = avccontext->priv_data ;
211 av_freep(&avccontext->coded_frame);
212 av_freep(&avccontext->extradata);