Lines Matching defs:frame

120 int ff_side_data_update_matrix_encoding(AVFrame *frame,
126 side_data = av_frame_get_side_data(frame, AV_FRAME_DATA_MATRIXENCODING);
128 side_data = av_frame_new_side_data(frame, AV_FRAME_DATA_MATRIXENCODING,
336 // H.264 uses edge emulation for out of frame motion vectors, for this
388 int avcodec_fill_audio_frame(AVFrame *frame, int nb_channels,
395 frame->nb_samples, sample_fmt,
402 if (!FF_ALLOCZ_TYPED_ARRAY(frame->extended_data, nb_channels))
405 frame->extended_data = frame->data;
408 if ((ret = av_samples_fill_arrays(frame->extended_data, &frame->linesize[0],
409 (uint8_t *)(intptr_t)buf, nb_channels, frame->nb_samples,
411 if (frame->extended_data != frame->data)
412 av_freep(&frame->extended_data);
415 if (frame->extended_data != frame->data) {
417 frame->data[ch] = frame->extended_data[ch];
423 void ff_color_frame(AVFrame *frame, const int c[4])
425 const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(frame->format);
431 uint8_t *dst = frame->data[p];
433 int bytes = is_chroma ? AV_CEIL_RSHIFT(frame->width, desc->log2_chroma_w) : frame->width;
434 int height = is_chroma ? AV_CEIL_RSHIFT(frame->height, desc->log2_chroma_h) : frame->height;
438 dst += frame->linesize[p];
440 memcpy(dst, frame->data[p], 2*bytes);
441 dst += frame->linesize[p];
446 dst += frame->linesize[p];
650 case AV_CODEC_ID_AVS3DA: return 1024; // avs3p3/audio vivid fixed frame size
1082 int ff_alloc_timecode_sei(const AVFrame *frame, AVRational rate, size_t prefix_len,
1091 if (frame)
1092 sd = av_frame_get_side_data(frame, AV_FRAME_DATA_S12M_TIMECODE);
1118 /* Calculate frame number of HEVC by SMPTE ST 12-1:2014 Sec 12.2 if rate > 30FPS */