• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/ffmpeg/libavcodec/

Lines Matching defs:pic

230 int avcodec_default_get_buffer(AVCodecContext *s, AVFrame *pic){
237 if(pic->data[0]!=NULL) {
238 av_log(s, AV_LOG_ERROR, "pic->data[0]!=NULL in avcodec_default_get_buffer\n");
272 pic->age= *picture_number - buf->last_pic_num;
337 pic->age= 256*256*256*64;
339 pic->type= FF_BUFFER_TYPE_INTERNAL;
342 pic->base[i]= buf->base[i];
343 pic->data[i]= buf->data[i];
344 pic->linesize[i]= buf->linesize[i];
348 pic->reordered_opaque= s->reordered_opaque;
351 av_log(s, AV_LOG_DEBUG, "default_get_buffer called on pic %p, %d buffers used\n", pic, s->internal_buffer_count);
356 void avcodec_default_release_buffer(AVCodecContext *s, AVFrame *pic){
360 assert(pic->type==FF_BUFFER_TYPE_INTERNAL);
366 if(buf->data[0] == pic->data[0])
376 pic->data[i]=NULL;
377 // pic->base[i]=NULL;
379 //printf("R%X\n", pic->opaque);
382 av_log(s, AV_LOG_DEBUG, "default_release_buffer called on pic %p, %d buffers used\n", pic, s->internal_buffer_count);
385 int avcodec_default_reget_buffer(AVCodecContext *s, AVFrame *pic){
390 if(pic->data[0] == NULL) {
392 pic->buffer_hints |= FF_BUFFER_HINTS_READABLE;
393 return s->get_buffer(s, pic);
397 if(pic->type == FF_BUFFER_TYPE_INTERNAL) {
398 pic->reordered_opaque= s->reordered_opaque;
405 temp_pic = *pic;
407 pic->data[i] = pic->base[i] = NULL;
408 pic->opaque = NULL;
410 if (s->get_buffer(s, pic))
413 av_picture_copy((AVPicture*)pic, (AVPicture*)&temp_pic, s->pix_fmt, s->width,
445 void avcodec_get_frame_defaults(AVFrame *pic){
446 memset(pic, 0, sizeof(AVFrame));
448 pic->pts= AV_NOPTS_VALUE;
449 pic->key_frame= 1;
453 AVFrame *pic= av_malloc(sizeof(AVFrame));
455 if(pic==NULL) return NULL;
457 avcodec_get_frame_defaults(pic);
459 return pic;