• 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:avc_context

48 static int concatenate_packet(unsigned int* offset, AVCodecContext* avc_context, const ogg_packet* packet)
52 int newsize = avc_context->extradata_size + 2 + packet->bytes;
58 } else if (newsize < avc_context->extradata_size) {
61 newdata = av_realloc(avc_context->extradata, newsize);
67 av_log(avc_context, AV_LOG_ERROR, "concatenate_packet failed: %s\n", message);
71 avc_context->extradata = newdata;
72 avc_context->extradata_size = newsize;
73 AV_WB16(avc_context->extradata + (*offset), packet->bytes);
75 memcpy( avc_context->extradata + (*offset), packet->packet, packet->bytes );
80 static av_cold int encode_init(AVCodecContext* avc_context)
86 TheoraContext *h = avc_context->priv_data;
90 t_info.width = avc_context->width;
91 t_info.height = avc_context->height;
92 t_info.frame_width = avc_context->width;
93 t_info.frame_height = avc_context->height;
98 t_info.fps_numerator = avc_context->time_base.den;
99 t_info.fps_denominator = avc_context->time_base.num;
100 if (avc_context->sample_aspect_ratio.num != 0) {
101 t_info.aspect_numerator = avc_context->sample_aspect_ratio.num;
102 t_info.aspect_denominator = avc_context->sample_aspect_ratio.den;
109 t_info.target_bitrate = avc_context->bit_rate;
110 t_info.keyframe_frequency = avc_context->gop_size;
111 t_info.keyframe_frequency_force = avc_context->gop_size;
112 t_info.keyframe_mindistance = avc_context->keyint_min;
125 av_log(avc_context, AV_LOG_ERROR, "theora_encode_init failed\n");
143 if (concatenate_packet( &offset, avc_context, &o_packet ) != 0) {
150 if (concatenate_packet( &offset, avc_context, &o_packet ) != 0) {
156 if (concatenate_packet( &offset, avc_context, &o_packet ) != 0) {
164 avc_context->coded_frame= avcodec_alloc_frame();
170 AVCodecContext* avc_context,
176 TheoraContext *h = avc_context->priv_data;
181 assert(avc_context->pix_fmt == PIX_FMT_YUV420P);
185 av_log(avc_context, AV_LOG_ERROR, "U and V stride differ\n");
189 t_yuv_buffer.y_width = avc_context->width;
190 t_yuv_buffer.y_height = avc_context->height;
215 av_log(avc_context, AV_LOG_ERROR, "theora_encode_YUVin failed (%s) [%d]\n", message, result);
229 av_log(avc_context, AV_LOG_ERROR, "theora_encode_packetout failed [%d]\n", result);
235 av_log(avc_context, AV_LOG_ERROR, "encoded frame too large\n");
243 static av_cold int encode_close(AVCodecContext* avc_context)
246 TheoraContext *h = avc_context->priv_data;
264 av_log(avc_context, AV_LOG_ERROR, "theora_encode_packetout failed (%s) [%d]\n", message, result);