FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
AVFrame Struct Reference

This structure describes decoded (raw) audio or video data. More...

#include <frame.h>

Data Fields

uint8_tdata [AV_NUM_DATA_POINTERS]
 pointer to the picture/channel planes. More...
 
int linesize [AV_NUM_DATA_POINTERS]
 For video, size in bytes of each picture line. More...
 
uint8_t ** extended_data
 pointers to the data planes/channels. More...
 
int nb_samples
 number of audio samples (per channel) described by this frame More...
 
int format
 format of the frame, -1 if unknown or unset Values correspond to enum AVPixelFormat for video frames, enum AVSampleFormat for audio) More...
 
int key_frame
 1 -> keyframe, 0-> not More...
 
enum AVPictureType pict_type
 Picture type of the frame. More...
 
AVRational sample_aspect_ratio
 Sample aspect ratio for the video frame, 0/1 if unknown/unspecified. More...
 
int64_t pts
 Presentation timestamp in time_base units (time when frame should be shown to user). More...
 
attribute_deprecated int64_t pkt_pts
 PTS copied from the AVPacket that was decoded to produce this frame. More...
 
int64_t pkt_dts
 DTS copied from the AVPacket that triggered returning this frame. More...
 
int coded_picture_number
 picture number in bitstream order More...
 
int display_picture_number
 picture number in display order More...
 
int quality
 quality (between 1 (good) and FF_LAMBDA_MAX (bad)) More...
 
voidopaque
 for some private data of the user More...
 
attribute_deprecated uint64_t error [AV_NUM_DATA_POINTERS]
 
int repeat_pict
 When decoding, this signals how much the picture must be delayed. More...
 
int interlaced_frame
 The content of the picture is interlaced. More...
 
int top_field_first
 If the content is interlaced, is top field displayed first. More...
 
int palette_has_changed
 Tell user application that palette has changed from previous frame. More...
 
int64_t reordered_opaque
 reordered opaque 64 bits (generally an integer or a double precision float PTS but can be anything). More...
 
int sample_rate
 Sample rate of the audio data. More...
 
uint64_t channel_layout
 Channel layout of the audio data. More...
 
AVBufferRefbuf [AV_NUM_DATA_POINTERS]
 AVBuffer references backing the data for this frame. More...
 
AVBufferRef ** extended_buf
 For planar audio which requires more than AV_NUM_DATA_POINTERS AVBufferRef pointers, this array will hold all the references which cannot fit into AVFrame.buf. More...
 
int nb_extended_buf
 Number of elements in extended_buf. More...
 
AVFrameSideData ** side_data
 
int nb_side_data
 
int flags
 Frame flags, a combination of AV_FRAME_FLAGS. More...
 
enum AVColorRange color_range
 MPEG vs JPEG YUV range. More...
 
enum AVColorPrimaries color_primaries
 
enum AVColorTransferCharacteristic color_trc
 
enum AVColorSpace colorspace
 YUV colorspace type. More...
 
enum AVChromaLocation chroma_location
 
int64_t best_effort_timestamp
 frame timestamp estimated using various heuristics, in stream time base More...
 
int64_t pkt_pos
 reordered pos from the last AVPacket that has been input into the decoder More...
 
int64_t pkt_duration
 duration of the corresponding packet, expressed in AVStream->time_base units, 0 if unknown. More...
 
AVDictionarymetadata
 metadata. More...
 
int decode_error_flags
 decode error flags of the frame, set to a combination of FF_DECODE_ERROR_xxx flags if the decoder produced a frame, but there were errors during the decoding. More...
 
int channels
 number of audio channels, only used for audio. More...
 
int pkt_size
 size of the corresponding packet containing the compressed frame. More...
 
attribute_deprecated int8_t * qscale_table
 QP table. More...
 
attribute_deprecated int qstride
 QP store stride. More...
 
attribute_deprecated int qscale_type
 
attribute_deprecated AVBufferRefqp_table_buf
 
AVBufferRefhw_frames_ctx
 For hwaccel-format frames, this should be a reference to the AVHWFramesContext describing the frame. More...
 
AVBufferRefopaque_ref
 AVBufferRef for free use by the API user. More...
 
AVBufferRefprivate_ref
 AVBufferRef for internal use by a single libav* library. More...
 
Video dimensions

Video frames only.

The coded dimensions (in pixels) of the video frame, i.e. the size of the rectangle that contains some well-defined values.

Note
The part of the frame intended for display/presentation is further restricted by the Cropping rectangle.
int width
 
int height
 
Cropping

Video frames only. The number of pixels to discard from the the top/bottom/left/right border of the frame to obtain the sub-rectangle of the frame intended for presentation.

size_t crop_top
 
size_t crop_bottom
 
size_t crop_left
 
size_t crop_right
 

Detailed Description

This structure describes decoded (raw) audio or video data.

AVFrame must be allocated using av_frame_alloc(). Note that this only allocates the AVFrame itself, the buffers for the data must be managed through other means (see below). AVFrame must be freed with av_frame_free().

AVFrame is typically allocated once and then reused multiple times to hold different data (e.g. a single AVFrame to hold frames received from a decoder). In such a case, av_frame_unref() will free any references held by the frame and reset it to its original clean state before it is reused again.

The data described by an AVFrame is usually reference counted through the AVBuffer API. The underlying buffer references are stored in AVFrame.buf / AVFrame.extended_buf. An AVFrame is considered to be reference counted if at least one reference is set, i.e. if AVFrame.buf[0] != NULL. In such a case, every single data plane must be contained in one of the buffers in AVFrame.buf or AVFrame.extended_buf. There may be a single buffer for all the data, or one separate buffer for each plane, or anything in between.

sizeof(AVFrame) is not a part of the public ABI, so new fields may be added to the end with a minor bump.

Fields can be accessed through AVOptions, the name string used, matches the C structure field name for fields accessible through AVOptions. The AVClass for AVFrame can be obtained from avcodec_get_frame_class()

Examples:
decode_audio.c, decode_video.c, demuxing_decoding.c, encode_audio.c, encode_video.c, filter_audio.c, filtering_audio.c, filtering_video.c, hw_decode.c, muxing.c, qsvdec.c, transcode_aac.c, transcoding.c, vaapi_encode.c, and vaapi_transcode.c.

Definition at line 218 of file frame.h.

Field Documentation

uint8_t* AVFrame::data[AV_NUM_DATA_POINTERS]

pointer to the picture/channel planes.

This might be different from the first allocated byte

Some decoders access areas outside 0,0 - width,height, please see avcodec_align_dimensions2(). Some filters and swscale can read up to 16 bytes beyond the planes, if these filters are to be used, then 16 extra bytes must be allocated.

NOTE: Except for hwaccel formats, pointers not needed by the format MUST be set to NULL.

Examples:
decode_audio.c, decode_video.c, demuxing_decoding.c, encode_audio.c, encode_video.c, filtering_audio.c, filtering_video.c, hw_decode.c, muxing.c, qsvdec.c, transcode_aac.c, and vaapi_encode.c.

Definition at line 232 of file frame.h.

Referenced by aac_decode_er_frame(), aac_decode_frame_int(), aac_encode_frame(), aasc_decode_frame(), ac3_decode_frame(), acolor(), acolor16(), add_frame_default(), adpcm_decode_frame(), adpcm_encode_frame(), adx_encode_frame(), aic_decode_slice(), alloc_frame(), alloc_frame_buffer(), alloc_frame_empty(), alloc_out_frame(), alloc_picture(), alpha_composite(), alpha_inverse_prediction(), amf_copy_surface(), amr_wb_encode_frame(), amrnb_decode_frame(), amrwb_decode_frame(), analyze_plane(), aom_decode(), aom_encode(), ape_decode_frame(), apng_do_inverse_blend(), apng_encode_frame(), apply_filter(), apply_loop_filter(), apply_motion_generic(), apply_palette(), apply_unsharp_c(), aptx_decode_frame(), aptx_encode_frame(), audio_decode_frame(), audio_get_buffer(), aura_decode_frame(), av_frame_apply_cropping(), av_frame_make_writable(), av_frame_move_ref(), av_frame_ref(), avcodec_encode_audio2(), avcodec_fill_audio_frame(), averageiir2d(), avgblur_opencl_filter_frame(), avs_decode_frame(), avui_decode_frame(), avui_encode_frame(), bethsoftvid_decode_frame(), bfi_decode_frame(), bink_decode_plane(), binkb_decode_plane(), bitpacked_decode_uyvy422(), bitpacked_decode_yuv422p10(), blend_image_packed_rgb(), blend_plane(), blur(), bmp_decode_frame(), bmp_encode_frame(), bmv_aud_decode_frame(), buffer_needs_copy(), buffer_offset(), burn_frame16(), burn_frame8(), calc_avgy16(), calc_avgy8(), calc_combed_score(), calc_cropping_offsets(), calc_diffs(), cavs_decode_frame(), cdg_border_preset(), cdg_decode_frame(), cdg_load_palette(), cdg_scroll(), cdg_tile_block(), cdxl_decode_ham6(), cdxl_decode_ham8(), cdxl_decode_raw(), cdxl_decode_rgb(), cfhd_decode(), channelmap_filter_frame(), chroma(), chroma_mc_bi(), cinaudio_decode_frame(), cinepak_decode_frame(), cinepak_decode_vectors(), cinepak_encode_init(), cinvideo_decode_frame(), clear_image(), clear_picture(), cmv_decode_frame(), cmv_decode_inter(), cmv_decode_intra(), cng_decode_frame(), cng_encode_frame(), color(), color16(), color_graticule(), color_graticule16(), common_uninit(), comp_block(), compare(), compare_fields(), compress_texture(), compute_crc_of_packets(), compute_sat_hue_metrics16(), compute_sat_hue_metrics8(), config_output(), config_video_output(), convert(), convolution_opencl_filter_frame(), copy_block(), copy_chroma(), copy_fields(), copy_frame(), copy_frame_default(), copy_from(), copy_output(), copy_pad(), copy_picture_field(), copy_processed_frame(), copyadd_block(), cover_rect(), cpia_decode_frame(), create_clusters(), create_cv_pixel_buffer(), cuda_get_buffer(), cuda_transfer_data_from(), cuda_transfer_data_to(), cuvid_output_frame(), cyuv_decode_frame(), d3d11va_get_buffer(), d3d11va_transfer_data(), dct_get(), dds_decode(), deband_16_c(), deband_16_coupling_c(), deband_8_c(), deband_8_coupling_c(), deblocking_filter_CTB(), debug_mean_error(), decimate_frame(), decode(), decode_argb(), decode_argb_frame(), decode_argbi(), decode_argx(), decode_argxi(), decode_aybr(), decode_aybri(), decode_block(), decode_byry(), decode_byryi(), decode_c82i(), decode_c82p(), decode_ca2i(), decode_ca2p(), decode_ca4i(), decode_ca4p(), decode_fctl_chunk(), decode_frame(), decode_frame_common(), decode_idat_chunk(), decode_mb(), decode_mb_row_no_filter(), decode_nal_units(), decode_packet(), decode_pic(), decode_plane(), decode_rgb(), decode_rgb24_frame(), decode_rgbi(), decode_rgbx(), decode_rgbxi(), decode_rle(), decode_rle16(), decode_rle_bpp2(), decode_rle_bpp4(), decode_slice(), decode_slice_thread(), decode_speedhq_field(), decode_tag(), decode_tiles(), decode_wmv9(), decode_write(), decode_ybr(), decode_ybr10(), decode_ybr10i(), decode_ybri(), decode_ybyr(), decode_yry10(), decode_yry10i(), decode_yuv_frame(), decompress_texture_thread(), decompress_texture_thread_internal(), DEFINE_BLEND8(), deint_vaapi_filter_frame(), deinterlace_slice(), deshake_transform_c(), detect_scene_change(), dfa_decode_frame(), dirac_decode_data_unit(), dirac_decode_frame(), dirac_decode_frame_internal(), dirac_decode_picture_header(), disp_palette(), displace_packed(), displace_planar(), display_frame(), dnxhd_decode_macroblock(), dnxhd_encode_picture(), do_chromakey_slice(), do_colorkey_slice(), do_despill_slice(), do_lumakey_slice16(), do_lumakey_slice8(), do_psnr(), do_ssim(), do_swap(), do_swizzle(), downscale(), dpcm_decode_frame(), draw_axis_rgb(), draw_axis_yuv(), draw_background(), draw_bar_rgb(), draw_bar_yuv(), draw_blank_frame(), draw_char(), draw_curves(), draw_dot(), draw_frame(), draw_glyphs(), draw_horiz_band(), draw_htext(), draw_htext16(), draw_line(), draw_max_line(), draw_scope(), draw_sono(), draw_text(), draw_vtext(), draw_vtext16(), drawline(), drawtext(), drm_get_buffer(), drm_map_frame(), dss_sp_decode_frame(), dv_decode_video_segment(), dv_encode_video_segment(), dx2_decode_slice_410(), dx2_decode_slice_420(), dx2_decode_slice_444(), dx2_decode_slice_5x5(), dx2_decode_slice_rgb(), dxtory_decode_v1_410(), dxtory_decode_v1_420(), dxtory_decode_v1_444(), dxtory_decode_v1_rgb(), dxva2_get_buffer(), dxva2_map_frame(), dxva2_transfer_data_from(), dxva2_transfer_data_to(), dxva2_unmap_frame(), eightsvx_decode_frame(), encode_apng(), encode_bitstream(), encode_frame(), encode_gbrp10(), encode_gbrp12(), encode_headers(), encode_mb_internal(), encode_picture_ls(), encode_q_branch(), encode_rgb48_10bit(), encode_slice(), encode_thread(), envelope_instant(), envelope_instant16(), envelope_peak(), envelope_peak16(), erase_line(), erase_screen(), escape124_decode_frame(), escape130_decode_frame(), estimate_best_b_count(), eval_motion_dist(), evrc_decode_frame(), execute_code(), extend_edges(), extract_field(), extract_line(), fade(), ff_alloc_picture(), ff_amf_send_frame(), ff_apply_vector_2x2(), ff_apply_vector_4x4(), ff_cavs_init_pic(), ff_cavs_next_mb(), ff_color_frame(), ff_dxva2_get_surface_index(), ff_er_frame_end(), ff_estimate_b_frame_motion(), ff_estimate_p_frame_motion(), ff_frame_pool_get(), ff_framequeue_skip_samples(), ff_h263_decode_frame(), ff_h264_remove_all_refs(), ff_hevc_hls_residual_coding(), ff_init_block_index(), ff_inlink_make_frame_writable(), ff_intra_pred_8_16x16_msa(), ff_intra_pred_8_32x32_msa(), ff_ivi_decode_frame(), ff_jpegls_decode_lse(), ff_jpegls_decode_picture(), ff_libwebp_get_frame(), ff_load_image(), ff_mediacodec_sw_buffer_copy_yuv420_packed_semi_planar(), ff_mediacodec_sw_buffer_copy_yuv420_packed_semi_planar_64x32Tile2m8ka(), ff_mediacodec_sw_buffer_copy_yuv420_planar(), ff_mediacodec_sw_buffer_copy_yuv420_semi_planar(), ff_mjpeg_decode_frame(), ff_mpeg4_encode_mb(), ff_mpv_encode_picture(), ff_mpv_frame_start(), ff_msmpeg4_pred_dc(), ff_opencl_filter_work_size_from_image(), ff_pre_estimate_p_frame_motion(), ff_print_debug_info2(), ff_rtjpeg_decode_frame_yuv420(), ff_rv34_decode_frame(), ff_snow_common_end(), ff_snow_frame_start(), ff_snow_get_buffer(), ff_snow_pred_block(), ff_snow_release_buffer(), ff_tlog_ref(), ff_v4l2_buffer_buf_to_avframe(), ff_vaapi_encode2(), ff_vaapi_get_surface_id(), ff_vc1_interp_mc(), ff_vc1_mc_1mv(), ff_vc1_mc_4mv_chroma(), ff_vc1_mc_4mv_chroma4(), ff_vc1_mc_4mv_luma(), ff_vdpau_get_surface_id(), ff_vmafmotion_process(), ff_vp9_decode_block(), ff_vp9_loopfilter_sb(), ff_xvmc_decode_mb(), ff_xvmc_field_end(), ff_xvmc_field_start(), ff_xvmc_init_block(), ffat_encode_callback(), ffmal_copy_frame(), ffmmal_set_ref(), fic_decode_slice(), fic_draw_cursor(), fill_frame_from_iplimage(), fill_iplimage_from_frame(), fill_picture(), fill_picture_monoblack(), fill_picture_rgb(), fill_yuv_image(), filter(), filter16_3x3(), filter16_5x5(), filter16_7x7(), filter16_brng(), filter16_prewitt(), filter16_roberts(), filter16_sobel(), filter16_tout(), filter16_vrep(), filter8_brng(), filter8_tout(), filter8_vrep(), filter_3x3(), filter_5x5(), filter_7x7(), filter_color2(), filter_frame(), filter_frame16(), filter_frame8(), filter_mb_row(), filter_prewitt(), filter_rgb(), filter_rgb24(), filter_rgb48(), filter_rgba(), filter_rgba64(), filter_roberts(), filter_slice(), filter_slice16(), filter_slice8(), filter_slice_alpha(), filter_slice_chroma(), filter_slice_luma(), filter_sobel(), filter_xyz(), finalize_frame(), find_slice_quant(), fits_encode_frame(), fixed_borders16(), fixed_borders8(), fixstride(), flac_decode_frame(), flac_encode_frame(), flashsv2_encode_frame(), flashsv_decode_block(), flashsv_decode_frame(), flashsv_encode_frame(), flat(), flic_decode_frame_15_16BPP(), flic_decode_frame_24BPP(), flic_decode_frame_8BPP(), flip(), flip_swap_frame(), frame_copy_video(), frame_end(), frame_start(), free_sequence_buffers(), g2m_decode_frame(), g722_decode_frame(), g722_encode_frame(), g723_1_decode_frame(), g723_1_encode_frame(), gather_data_for_cel(), gather_data_for_subcel(), gdv_decode_frame(), generate_missing_ref(), geq_filter_frame(), get_4block_rd(), get_audio_buffer(), get_audio_frame(), get_block_rd(), get_buffer_internal(), get_buffer_with_edge(), get_cv_pixel_info(), get_frame(), get_frame_defaults(), get_frame_mb(), get_input(), get_output(), get_pixel_uv(), get_sample(), get_scene_score(), get_surface(), get_video_buffer(), decklink_frame::GetBytes(), getpix(), gif_encode_frame(), gif_fill(), gif_fill_rect(), gif_image_write_image(), gif_read_image(), graticule16_column(), graticule16_row(), graticule_column(), graticule_row(), gray_frame(), green_graticule(), green_graticule16(), gsm_decode_frame(), guess_mv(), h263_mv4_search(), h264_field_start(), halfpel_interpol(), handle_p_frame_apng(), handle_p_frame_png(), handle_small_bpp(), headphone_convolute(), headphone_fast_convolute(), hl_decode_mb(), hls_pcm_sample(), hls_prediction_unit(), hls_transform_unit(), hnm_decode_frame(), horizontal_frame_pack(), hqx_filter(), hscroll(), idcin_decode_frame(), idcin_decode_vlcs(), idct_put(), ilbc_decode_frame(), ilbc_encode_frame(), image_copy_16_to_8(), init(), init_axis_color(), init_axis_from_file(), init_axis_from_font(), init_image(), inject_frame(), inter_pred(), interleave_cols_to_any(), interpolate(), interpolate_refplane(), intra_recon(), ipvideo_decode_format_06_opcodes(), ipvideo_decode_format_10_opcodes(), ipvideo_decode_format_11_opcodes(), ipvideo_decode_frame(), ir2_decode_frame(), irdft_horizontal16(), irdft_horizontal8(), is_intra_more_likely(), is_same1(), is_same1_16(), is_same3(), is_same3_16(), is_same4(), is_same4_16(), iterative_me(), jpeg2000_decode_frame(), kmsgrab_read_packet(), lag_decode_frame(), lavfi_read_packet(), libcelt_dec_decode(), libcodec2_decode(), libcodec2_encode(), libgsm_decode_frame(), libgsm_encode_frame(), libkvazaar_encode(), libopenjpeg_copy_packed12(), libopenjpeg_copy_packed16(), libopenjpeg_copy_packed8(), libopenjpeg_copy_to_packed16(), libopenjpeg_copy_to_packed8(), libopenjpeg_copy_unpacked16(), libopenjpeg_copy_unpacked8(), libopenjpeg_copyto16(), libopenjpeg_copyto8(), libopenjpeg_encode_frame(), libopus_decode(), libopus_encode(), librsvg_decode_frame(), libshine_encode_frame(), libspeex_decode_frame(), libx265_encode_frame(), ljpeg_decode_rgb_scan(), ljpeg_decode_yuv_scan(), ljpeg_encode_bgr(), ljpeg_encode_yuv_mb(), load_encode_and_write(), load_input_picture(), load_palette(), loop_filter(), lowpass16(), luma_abs_diff(), luma_mc_bi(), luma_mc_uni(), lut2_16bit(), lut2_8bit(), m101_decode_frame(), magy_decode_frame(), magy_decode_slice(), magy_decode_slice10(), magy_encode_frame(), main(), map_frame_to_surface(), mb_var_thread(), mc_dir_part(), mediacodec_wrap_hw_buffer(), mimic_decode_frame(), mirror_borders16(), mirror_borders8(), misc_vaapi_filter_frame(), mjpeg_decode_scan(), mjpeg_idct_scan_progressive_ac(), mlp_encode_frame(), mm_decode_frame(), mm_decode_inter(), mm_decode_intra(), mp3lame_encode_frame(), mp_decode_frame(), mp_get_yuv_from_rgb(), mp_read_changes_map(), mp_set_rgb_from_yuv(), MPA_encode_frame(), mpeg_er_decode_mb(), mpeg_field_start(), mpv_motion_internal(), MPV_motion_lowres(), mpv_reconstruct_mb_internal(), msrle_decode_8_16_24_32(), msrle_decode_frame(), msrle_decode_pal4(), mss1_decode_frame(), mss2_decode_frame(), mss3_decode_frame(), mss4_decode_frame(), msvideo1_decode_16bit(), msvideo1_decode_8bit(), mvc_decode_frame(), mxpeg_check_dimensions(), mxpeg_decode_frame(), ndi_write_video_packet(), normalize(), nppscale_deinterleave(), nppscale_interleave(), nppscale_resize(), nvenc_copy_frame(), nvenc_register_frame(), oggvorbis_decode_frame(), omx_encode_frame(), opencl_get_buffer(), opencl_map_frame(), opencl_transfer_data_from(), opencl_transfer_data_to(), opencl_unmap_frame(), oscilloscope_filter_frame(), output_data(), output_single_frame(), overlay_ass_image(), overlay_opencl_blend(), pack_yuv(), paf_audio_decode(), paf_video_decode(), pam_encode_frame(), parse_transform_color_indexing(), pcm_bluray_decode_frame(), pcm_decode_frame(), pcm_dvd_decode_frame(), pcm_encode_frame(), pcx_decode_frame(), pcx_encode_frame(), pick_color16(), pick_color8(), pick_pixel1(), pick_pixel1_16(), pick_pixel3(), pick_pixel3_16(), pick_pixel4(), pick_pixel4_16(), picmemset(), picmemset_8bpp(), pix_decode_frame(), pixscope_filter_frame(), plot_freqs(), plot_spectrum_column(), pnm_decode_frame(), pnm_encode_frame(), postprocess_chroma(), postprocess_luma(), pp_filter_frame(), predict_slice(), predict_slice_buffered(), prefetch_motion(), print_frame(), print_long_term(), print_short_term(), procamp_vaapi_filter_frame(), process_frame(), process_slice_uyvy422(), process_slice_yuv420p(), process_slice_yuv422p(), process_slice_yuv444p(), program_opencl_run(), ptx_decode_frame(), push_single_pic(), put_blocks(), qcelp_decode_frame(), qdm2_decode_frame(), qdmc_decode_frame(), qsv_decode(), qsv_frame_lock(), qsv_get_buffer(), qsv_map_from(), qsv_map_to(), qsv_transfer_data_child(), qsv_transfer_data_from(), qsv_transfer_data_to(), qsvscale_filter_frame(), qtrle_decode_16bpp(), qtrle_decode_1bpp(), qtrle_decode_24bpp(), qtrle_decode_2n4bpp(), qtrle_decode_32bpp(), qtrle_decode_8bpp(), qtrle_decode_frame(), qtrle_encode_line(), query_frame(), ra144_decode_frame(), ra144_encode_frame(), ra288_decode_frame(), raw_decode(), raw_encode(), rd_frame(), rdft_horizontal16(), rdft_horizontal8(), read16_fft_bin(), read8_fft_bin(), read_highpass(), ref_frame(), ref_from_h264pic(), reget_buffer_internal(), release_delayed_buffers(), remap_packed(), remap_packed16(), remap_planar(), remap_planar16(), render_default_font(), render_freetype(), render_slice(), request_frame(), rkmpp_retrieve_frame(), rl2_decode_frame(), roq_decode_frame(), roq_dpcm_encode_frame(), rpza_decode_stream(), rscc_decode_frame(), run_postproc(), run_test(), rv30_loop_filter(), rv34_mc(), rv40_loop_filter(), s302m_decode_frame(), s302m_encode2_frame(), sao_filter_CTB(), sbc_encode_frame(), sbc_synthesize_eight(), sbc_synthesize_four(), scale_slice(), scale_vaapi_filter_frame(), scalecuda_resize(), screenpresso_decode_frame(), select_input_picture(), seqvideo_decode(), set_frame(), set_frame_data(), set_palette(), set_pixel1(), set_pixel1_16(), set_pixel3(), set_pixel3_16(), set_pixel4(), set_pixel4_16(), set_processing_window(), sgirle_decode_frame(), shuffleplanes_filter_frame(), sipr_decode_frame(), skip_check(), smc_decode_stream(), smear_borders16(), smear_borders8(), smka_decode_frame(), smvjpeg_decode_frame(), sofalizer_convolute(), sofalizer_fast_convolute(), sse_mb(), sub2video_get_blank_frame(), sub2video_heartbeat(), sub2video_push_ref(), sub2video_update(), submit_frame(), sunrast_decode_frame(), sunrast_encode_frame(), svc_decode_frame(), svc_encode_frame(), svq1_decode_frame(), svq1_encode_frame(), svq1_encode_plane(), svq3_decode_frame(), svq3_mc_dir_part(), synth_superframe(), targa_encode_frame(), targa_encode_normal(), targa_encode_rle(), tdsc_decode_frame(), tdsc_decode_jpeg_tile(), tdsc_decode_tiles(), tdsc_parse_tdsf(), tgq_idct_put_mb(), tgq_idct_put_mb_dconly(), tgv_decode_frame(), tgv_decode_inter(), thumbnail(), tm2_decode_blocks(), tmv_decode_frame(), to_meta_with_crop(), tonemap(), tqi_idct_put(), truemotion1_decode_16bit(), truemotion1_decode_24bit(), truemotion2rt_decode_frame(), truespeech_decode_frame(), try_push_frame(), tscc2_decode_slice(), tta_decode_frame(), twolame_encode_frame(), txd_decode_frame(), ulti_convert_yuv(), uninit(), unpack_yuv(), unrefcount_frame(), unsharp_opencl_filter_frame(), update_histogram_diff(), update_histogram_frame(), update_sono_rgb(), update_sono_yuv(), upload_texture(), utvideo_encode_frame(), v308_decode_frame(), v308_encode_frame(), v408_decode_frame(), v408_encode_frame(), v410_decode_frame(), v410_encode_frame(), vaapi_encode_issue(), vaapi_get_buffer(), vaapi_map_frame(), vaapi_unmap_frame(), validate_avframe_allocation(), vble_restore_plane(), vc1_decode_skip_blocks(), vcr1_decode_frame(), vdpau_get_buffer(), vdpau_transfer_data_from(), vdpau_transfer_data_to(), vectorscope16(), vectorscope8(), verify_md5(), vertical_frame_pack(), video_decode(), video_decode_example(), video_get_buffer(), videotoolbox_postproc_frame(), videotoolbox_retrieve_data(), videotoolbox_set_frame(), vmd_decode(), vmdaudio_decode_frame(), vmdvideo_decode_frame(), vp56_render_mb(), vp7_fade_frame(), vp8_lossy_decode_alpha(), vp8_mc_chroma(), vp8_mc_luma(), vpx_decode(), vpx_encode(), vqa_decode_chunk(), vqa_decode_frame(), vt_get_buffer(), vt_map_frame(), vt_unmap(), vtenc_populate_extradata(), wavesynth_decode(), wavpack_encode_frame(), write_audio_frame(), write_palette(), ws_snd_decode_frame(), X264_frame(), x8_init_block_index(), xan_decode_chroma(), xan_decode_frame(), xan_decode_frame_type0(), xan_decode_frame_type1(), xan_wc3_copy_pixel_run(), xan_wc3_output_pixel_run(), XAVS_frame(), xbm_decode_frame(), xbm_encode_frame(), xbr_filter(), xface_decode_frame(), xface_encode_frame(), xpm_decode_frame(), xvid_encode_frame(), xvid_encode_init(), xwd_decode_frame(), xwd_encode_frame(), y216_decode_frame(), y41p_decode_frame(), y41p_encode_frame(), yop_decode_frame(), yuv4_decode_frame(), yuv4_encode_frame(), yuv4_write_packet(), zero12v_decode_frame(), and zerocodec_decode_frame().

int AVFrame::linesize[AV_NUM_DATA_POINTERS]

For video, size in bytes of each picture line.

For audio, size in bytes of each plane.

For audio, only linesize[0] may be set. For planar audio, each channel plane must be the same size.

For video the linesizes should be multiples of the CPUs alignment preference, this is 16 or 32 for modern desktop CPUs. Some code requires such alignment other code can be slower without correct alignment, for yet other it makes no difference.

Note
The linesize may be larger than the size of usable data – there may be extra padding present for performance reasons.
Examples:
decode_video.c, demuxing_decoding.c, encode_video.c, filtering_video.c, hw_decode.c, muxing.c, and qsvdec.c.

Definition at line 249 of file frame.h.

Referenced by aasc_decode_frame(), acolor(), acolor16(), add_frame_default(), aic_decode_slice(), alloc_frame(), alloc_frame_buffer(), alloc_frame_empty(), alloc_out_frame(), alloc_picture(), alpha_composite(), alpha_inverse_prediction(), amf_copy_surface(), analyze_plane(), aom_decode(), aom_encode(), apng_do_inverse_blend(), apng_encode_frame(), apply_color_indexing_transform(), apply_filter(), apply_loop_filter(), apply_motion_generic(), apply_unsharp_c(), audio_get_buffer(), aura_decode_frame(), av_frame_ref(), available_samples(), avcodec_fill_audio_frame(), averageiir2d(), avresample_convert_frame(), avs_decode_frame(), avui_decode_frame(), avui_encode_frame(), bethsoftvid_decode_frame(), bfi_decode_frame(), bink_decode_plane(), binkb_decode_plane(), bitpacked_decode_uyvy422(), bitpacked_decode_yuv422p10(), blend_image_packed_rgb(), blend_plane(), blur(), bmp_decode_frame(), bmp_encode_frame(), buffer_needs_copy(), buffer_offset(), burn_frame16(), burn_frame8(), calc_avgy16(), calc_avgy8(), calc_combed_score(), calc_cropping_offsets(), calc_diffs(), cdg_border_preset(), cdg_decode_frame(), cdg_scroll(), cdg_tile_block(), cdxl_decode_ham6(), cdxl_decode_ham8(), cdxl_decode_raw(), cdxl_decode_rgb(), cfhd_decode(), checkstride(), chroma(), chroma_mc_bi(), cinepak_decode_vectors(), cinepak_encode_init(), cinvideo_decode_frame(), clear_image(), clear_picture(), cmv_decode_inter(), cmv_decode_intra(), color(), color16(), color_graticule(), color_graticule16(), comp_block(), compare(), compare_fields(), compress_texture(), compute_crc_of_packets(), compute_sat_hue_metrics16(), compute_sat_hue_metrics8(), config_output(), config_video_output(), convert_frame(), copy_block(), copy_chroma(), copy_fields(), copy_frame(), copy_frame_default(), copy_from(), copy_output(), copy_pad(), copy_picture_field(), copy_processed_frame(), copyadd_block(), cover_rect(), cpia_decode_frame(), create_clusters(), cuda_get_buffer(), cuda_transfer_data_from(), cuda_transfer_data_to(), cuvid_output_frame(), cyuv_decode_frame(), d3d11va_transfer_data(), dct_get(), dds_decode(), deband_16_c(), deband_16_coupling_c(), deband_8_c(), deband_8_coupling_c(), deblocking_filter_CTB(), debug_mean_error(), decimate_frame(), decode(), decode_argb(), decode_argb_frame(), decode_argbi(), decode_argx(), decode_argxi(), decode_aybr(), decode_aybri(), decode_block(), decode_byry(), decode_byryi(), decode_c82i(), decode_c82p(), decode_ca2i(), decode_ca2p(), decode_ca4i(), decode_ca4p(), decode_frame(), decode_idat_chunk(), decode_mb(), decode_nal_units(), decode_packet(), decode_pic(), decode_plane(), decode_rgb(), decode_rgb24_frame(), decode_rgbi(), decode_rgbx(), decode_rgbxi(), decode_rle(), decode_rle16(), decode_rle_bpp2(), decode_rle_bpp4(), decode_sb(), decode_sb_mem(), decode_slice(), decode_slice_thread(), decode_speedhq_field(), decode_tiles(), decode_wmv9(), decode_write(), decode_ybr(), decode_ybr10(), decode_ybr10i(), decode_ybri(), decode_ybyr(), decode_yry10(), decode_yry10i(), decode_yuv_frame(), decompress_texture_thread(), decompress_texture_thread_internal(), DEFINE_BLEND8(), deinterlace_slice(), deshake_transform_c(), dfa_decode_frame(), dirac_decode_data_unit(), disp_palette(), displace_packed(), displace_planar(), display_frame(), dnxhd_decode_macroblock(), dnxhd_encode_picture(), dnxhd_load_picture(), do_chromakey_slice(), do_colorkey_slice(), do_despill_slice(), do_lumakey_slice16(), do_lumakey_slice8(), do_psnr(), do_ssim(), do_swap(), do_swizzle(), downscale(), draw_axis_rgb(), draw_axis_yuv(), draw_background(), draw_bar_rgb(), draw_bar_yuv(), draw_blank_frame(), draw_char(), draw_curves(), draw_dot(), draw_frame(), draw_glyphs(), draw_horiz_band(), draw_htext(), draw_htext16(), draw_line(), draw_max_line(), draw_scope(), draw_slice(), draw_sono(), draw_text(), draw_vtext(), draw_vtext16(), drawline(), drawtext(), drm_map_frame(), dv_decode_video_segment(), dv_encode_video_segment(), dx2_decode_slice_410(), dx2_decode_slice_420(), dx2_decode_slice_444(), dx2_decode_slice_5x5(), dx2_decode_slice_rgb(), dxtory_decode_v1_410(), dxtory_decode_v1_420(), dxtory_decode_v1_444(), dxtory_decode_v1_rgb(), dxva2_map_frame(), dxva2_transfer_data_from(), dxva2_transfer_data_to(), encode_apng(), encode_bitstream(), encode_frame(), encode_gbrp10(), encode_gbrp12(), encode_picture_ls(), encode_q_branch(), encode_rgb48_10bit(), encode_slice(), envelope_instant(), envelope_instant16(), envelope_peak(), envelope_peak16(), erase_line(), erase_screen(), escape124_decode_frame(), escape130_decode_frame(), estimate_best_b_count(), eval_motion_dist(), execute_code(), extend_edges(), extract_field(), extract_line(), fade(), ff_alloc_picture(), ff_apply_vector_2x2(), ff_apply_vector_4x4(), ff_cavs_init_pic(), ff_color_frame(), ff_draw_horiz_band(), ff_er_frame_end(), ff_frame_pool_get(), ff_framequeue_skip_samples(), ff_h263_decode_frame(), ff_h264_draw_horiz_band(), ff_hevc_hls_residual_coding(), ff_init_block_index(), ff_inlink_make_frame_writable(), ff_intra_pred_8_16x16_msa(), ff_intra_pred_8_32x32_msa(), ff_ivi_decode_frame(), ff_jpegls_decode_picture(), ff_libwebp_get_frame(), ff_load_image(), ff_mediacodec_sw_buffer_copy_yuv420_packed_semi_planar(), ff_mediacodec_sw_buffer_copy_yuv420_packed_semi_planar_64x32Tile2m8ka(), ff_mediacodec_sw_buffer_copy_yuv420_planar(), ff_mediacodec_sw_buffer_copy_yuv420_semi_planar(), ff_mjpeg_decode_frame(), ff_mjpeg_decode_sof(), ff_mpv_frame_start(), ff_print_debug_info2(), ff_rtjpeg_decode_frame_yuv420(), ff_snow_common_init_after_header(), ff_snow_get_buffer(), ff_snow_release_buffer(), ff_tlog_ref(), ff_v4l2_buffer_buf_to_avframe(), ff_vc1_interp_mc(), ff_vc1_mc_1mv(), ff_vc1_mc_4mv_chroma(), ff_vc1_mc_4mv_luma(), ff_vmafmotion_process(), ff_vp56_decode_mbs(), ff_vp9_decode_block(), ff_vp9_loopfilter_sb(), ffmal_copy_frame(), fic_decode_slice(), fic_draw_cursor(), fill_frame_from_iplimage(), fill_iplimage_from_frame(), fill_picture(), fill_picture_monoblack(), fill_picture_rgb(), fill_yuv_image(), filter(), filter16_3x3(), filter16_5x5(), filter16_7x7(), filter16_brng(), filter16_prewitt(), filter16_roberts(), filter16_sobel(), filter16_tout(), filter16_vrep(), filter8_brng(), filter8_tout(), filter8_vrep(), filter_3x3(), filter_5x5(), filter_7x7(), filter_color2(), filter_frame(), filter_frame16(), filter_frame8(), filter_prewitt(), filter_rgb(), filter_rgb24(), filter_rgb48(), filter_rgba(), filter_rgba64(), filter_roberts(), filter_slice(), filter_slice16(), filter_slice8(), filter_slice_alpha(), filter_slice_chroma(), filter_slice_luma(), filter_sobel(), filter_xyz(), finalize_frame(), find_slice_quant(), fits_encode_frame(), fixed_borders16(), fixed_borders8(), fixstride(), flashsv2_encode_frame(), flashsv_decode_block(), flashsv_decode_frame(), flashsv_encode_frame(), flat(), flic_decode_frame_15_16BPP(), flic_decode_frame_24BPP(), flic_decode_frame_8BPP(), flip(), flip_swap_frame(), frame_copy_video(), frame_end(), frame_start(), g2m_decode_frame(), gather_data_for_cel(), gather_data_for_subcel(), gdv_decode_frame(), generate_missing_ref(), geq_filter_frame(), get_4block_rd(), get_audio_buffer(), get_block_rd(), get_buffer(), get_buffer_with_edge(), get_cv_pixel_info(), get_dc(), get_frame(), get_frame_mb(), get_input(), get_output(), get_pixel_uv(), get_scene_score(), get_video_buffer(), decklink_frame::GetBytes(), decklink_frame::GetFlags(), getpix(), decklink_frame::GetRowBytes(), gif_encode_frame(), gif_fill(), gif_fill_rect(), gif_image_write_image(), gif_read_image(), graticule16_column(), graticule16_row(), graticule_column(), graticule_row(), gray_frame(), green_graticule(), green_graticule16(), guess_mv(), h264_field_start(), h264_fill_mbaff_ref_list(), h264_frame_start(), halfpel_interpol(), hl_decode_mb(), hls_pcm_sample(), hls_prediction_unit(), hls_transform_unit(), horizontal_frame_pack(), hqx_filter(), hscroll(), idcin_decode_vlcs(), idct_put(), image_copy_16_to_8(), init(), init_axis_color(), init_axis_from_file(), init_axis_from_font(), init_block_index(), inject_frame(), inter_pred(), interleave_cols_to_any(), interpolate(), interpolate_refplane(), intra_recon(), ipvideo_decode_format_06_opcodes(), ipvideo_decode_format_10_opcodes(), ipvideo_decode_format_11_opcodes(), ipvideo_format_06_secondpass(), ipvideo_format_10_secondpass(), ir2_decode_frame(), irdft_horizontal16(), irdft_horizontal8(), is_intra_more_likely(), is_same1(), is_same1_16(), is_same3(), is_same3_16(), is_same4(), is_same4_16(), iterative_me(), lag_decode_frame(), lavfi_read_packet(), libkvazaar_encode(), libopenjpeg_copy_packed12(), libopenjpeg_copy_packed16(), libopenjpeg_copy_packed8(), libopenjpeg_copy_to_packed16(), libopenjpeg_copy_to_packed8(), libopenjpeg_copy_unpacked16(), libopenjpeg_copy_unpacked8(), libopenjpeg_copyto16(), libopenjpeg_copyto8(), libopenjpeg_encode_frame(), librsvg_decode_frame(), libx265_encode_frame(), ljpeg_encode_bgr(), ljpeg_encode_yuv_mb(), load_input_picture(), load_palette(), lowpass16(), luma_abs_diff(), luma_mc_bi(), luma_mc_uni(), lut2_16bit(), lut2_8bit(), m101_decode_frame(), magy_decode_frame(), magy_decode_slice(), magy_decode_slice10(), magy_encode_frame(), main(), map_frame_to_surface(), mediacodec_wrap_sw_buffer(), mirror_borders16(), mirror_borders8(), mm_decode_inter(), mm_decode_intra(), mp3lame_encode_frame(), mp_get_yuv_from_rgb(), mp_read_changes_map(), mp_set_rgb_from_yuv(), mpeg_field_start(), mpeg_motion_internal(), mpeg_motion_lowres(), mpv_reconstruct_mb_internal(), msrle_decode_8_16_24_32(), msrle_decode_frame(), msrle_decode_pal4(), mss1_decode_frame(), mss2_decode_frame(), mss3_decode_frame(), mss4_decode_dct_block(), mss4_decode_frame(), mss4_decode_image_block(), msvideo1_decode_16bit(), msvideo1_decode_8bit(), mvc_decode_frame(), mxpeg_check_dimensions(), ndi_write_video_packet(), normalize(), nppscale_deinterleave(), nppscale_interleave(), nppscale_resize(), nvenc_copy_frame(), nvenc_register_frame(), nvenc_upload_frame(), omx_encode_frame(), opencl_transfer_data_from(), opencl_transfer_data_to(), opus_decode_packet(), oscilloscope_filter_frame(), output_single_frame(), overlay_ass_image(), pack_yuv(), paf_video_decode(), pam_encode_frame(), pcx_decode_frame(), pcx_encode_frame(), pick_color16(), pick_color8(), pick_pixel1(), pick_pixel1_16(), pick_pixel3(), pick_pixel3_16(), pick_pixel4(), pick_pixel4_16(), picmemset(), picmemset_8bpp(), pix_decode_frame(), pixscope_filter_frame(), plot_freqs(), plot_spectrum_column(), pnm_decode_frame(), pnm_encode_frame(), postprocess_chroma(), postprocess_luma(), pp_filter_frame(), predict_slice(), predict_slice_buffered(), process_frame(), process_slice_uyvy422(), process_slice_yuv420p(), process_slice_yuv422p(), process_slice_yuv444p(), ptx_decode_frame(), push_single_pic(), put_blocks(), put_dc(), qsv_frame_lock(), qsv_transfer_data_from(), qsv_transfer_data_to(), qtrle_decode_16bpp(), qtrle_decode_1bpp(), qtrle_decode_24bpp(), qtrle_decode_2n4bpp(), qtrle_decode_32bpp(), qtrle_decode_8bpp(), qtrle_decode_frame(), qtrle_encode_line(), raw_decode(), raw_encode(), rd_frame(), rdft_horizontal16(), rdft_horizontal8(), read16_fft_bin(), read8_fft_bin(), read_highpass(), ref_from_h264pic(), remap_packed(), remap_packed16(), remap_planar(), remap_planar16(), render_default_font(), render_freetype(), render_slice(), request_frame(), rl2_decode_frame(), rpza_decode_stream(), rscc_decode_frame(), run_postproc(), run_test(), sao_filter_CTB(), scale_slice(), scalecuda_resize(), screenpresso_decode_frame(), seq_decode_op1(), seq_decode_op2(), seq_decode_op3(), seqvideo_decode(), set_frame(), set_frame_data(), set_pixel1(), set_pixel1_16(), set_pixel3(), set_pixel3_16(), set_pixel4(), set_pixel4_16(), set_processing_window(), sgirle_decode_frame(), shuffleplanes_filter_frame(), skip_check(), smc_decode_stream(), smear_borders16(), smear_borders8(), smvjpeg_decode_frame(), sub2video_get_blank_frame(), sub2video_update(), submit_frame(), sunrast_decode_frame(), sunrast_encode_frame(), svc_decode_frame(), svc_encode_frame(), svq1_decode_frame(), svq1_encode_frame(), svq1_encode_plane(), svq3_decode_frame(), svq3_mc_dir_part(), swr_convert_frame(), targa_encode_normal(), targa_encode_rle(), tdsc_decode_frame(), tdsc_decode_jpeg_tile(), tdsc_decode_tiles(), tgq_idct_put_mb(), tgq_idct_put_mb_dconly(), tgv_decode_frame(), tgv_decode_inter(), thumbnail(), tm2_decode_blocks(), tmv_decode_frame(), to_meta_with_crop(), tonemap(), tqi_idct_put(), truemotion1_decode_16bit(), truemotion1_decode_24bit(), truemotion2rt_decode_frame(), try_push_frame(), tscc2_decode_slice(), txd_decode_frame(), ulti_convert_yuv(), unpack_yuv(), unrefcount_frame(), update_histogram_diff(), update_histogram_frame(), update_sono_rgb(), update_sono_yuv(), upload_texture(), utvideo_encode_frame(), v308_decode_frame(), v308_encode_frame(), v408_decode_frame(), v408_encode_frame(), v410_decode_frame(), v410_encode_frame(), vaapi_map_frame(), vble_restore_plane(), vc1_decode_frame(), vcr1_decode_frame(), vdpau_transfer_data_from(), vdpau_transfer_data_to(), vectorscope16(), vectorscope8(), verify_md5(), vertical_frame_pack(), video_decode(), video_decode_example(), video_get_buffer(), video_image_display(), videotoolbox_retrieve_data(), vmd_decode(), vp3_draw_horiz_band(), vp7_fade_frame(), vp8_lossy_decode_alpha(), vpx_decode(), vpx_encode(), vqa_decode_chunk(), vt_map_frame(), vtenc_populate_extradata(), write_palette(), X264_frame(), x8_decode_intra_mb(), x8_init_block_index(), x8_setup_spatial_predictor(), xan_decode_chroma(), xan_decode_frame(), xan_decode_frame_type0(), xan_decode_frame_type1(), xan_wc3_copy_pixel_run(), xan_wc3_output_pixel_run(), XAVS_frame(), xbm_decode_frame(), xbm_encode_frame(), xbr_filter(), xface_decode_frame(), xface_encode_frame(), xpm_decode_frame(), xvid_encode_frame(), xwd_decode_frame(), xwd_encode_frame(), y216_decode_frame(), y41p_decode_frame(), y41p_encode_frame(), yop_decode_frame(), yuv4_decode_frame(), yuv4_encode_frame(), yuv4_write_packet(), zero12v_decode_frame(), and zerocodec_decode_frame().

uint8_t** AVFrame::extended_data

pointers to the data planes/channels.

For video, this should simply point to data[].

For planar audio, each channel has a separate data pointer, and linesize[0] contains the size of each channel buffer. For packed audio, there is just one data pointer, and linesize[0] contains the total size of the buffer for all channels.

Note: Both data and extended_data should always be set in a valid frame, but for planar audio with more channels that can fit in data, extended_data must be used in order to access all channels.

Examples:
demuxing_decoding.c, filter_audio.c, and transcode_aac.c.

Definition at line 265 of file frame.h.

Referenced by activate(), adpcm_decode_frame(), adpcm_encode_frame(), adx_decode_frame(), alac_encode_frame(), amplify_frame(), apply_window_and_mdct(), atrac1_decode_frame(), atrac3_decode_frame(), atrac3al_decode_frame(), atrac3p_decode_frame(), audio_decode_frame(), audio_frame_cksum(), audio_get_buffer(), av_frame_alloc(), av_frame_get_plane_buffer(), av_frame_make_writable(), av_frame_move_ref(), av_frame_ref(), avcodec_encode_audio2(), avcodec_fill_audio_frame(), binkaudio_receive_frame(), buffer_offset(), calc_ptr_alignment(), celt_frame_setup_input(), channelmap_filter_frame(), compand_delay(), compand_nodelay(), compute_frame_rms(), compute_frame_std_dev(), connect_ports(), convert_coeffs(), convert_frame(), cook_decode_frame(), copy_input_samples(), decode_element(), decode_frame(), decode_packet(), decode_simple_internal(), encode_frame(), fdk_aac_decode_frame(), ff_dca_lbr_filter_frame(), ff_dca_xll_filter_frame(), ff_default_get_audio_buffer(), ff_frame_pool_get(), ff_framequeue_skip_samples(), ff_inlink_make_frame_writable(), ff_twinvq_decode_frame(), fft_channel(), filter_2_1(), filter_5_0_side(), filter_5_1_back(), filter_5_1_side(), filter_frame(), filter_frame_fixed(), filter_frame_float(), filter_stereo(), filter_surround(), find_peak_magnitude(), fir_channel(), fir_frame(), flush_buffer(), flush_frame(), frame_configure_elements(), frame_copy_audio(), get_audio_buffer(), get_frame_defaults(), get_input(), get_video_buffer(), headphone_frame(), ifft_channel(), imc_decode_frame(), libvorbis_encode_frame(), mace_decode_frame(), mcompand_channel(), move_audio(), mp_decode_frame(), mpc7_decode_frame(), mpc8_decode_frame(), on2avc_reconstruct_channel(), on2avc_reconstruct_channel_ext(), opus_decode_packet(), output_frame(), pad_last_frame(), pcm_decode_frame(), pcm_encode_frame(), perform_compression(), perform_dc_correction(), plot_freqs(), process_output(), push_samples(), read_decode_convert_and_store(), read_ir(), release_delayed_buffers(), request_frame(), return_audio_frame(), run_channel_fft(), send_silence(), shorten_decode_frame(), smvjpeg_decode_frame(), spawn_empty_frame(), step_collect_psy_metrics(), tak_decode_frame(), take_samples(), try_push_frame(), unrefcount_frame(), upmix_1_0(), upmix_2_1(), upmix_3_0(), upmix_3_1(), upmix_3_1_surround(), upmix_4_0(), upmix_4_1(), upmix_5_0_back(), upmix_5_1_back(), upmix_5_1_back_2_1(), upmix_5_1_back_surround(), upmix_7_0(), upmix_7_1(), upmix_7_1_5_0_side(), upmix_7_1_5_1(), upmix_stereo(), video_get_buffer(), vorbis_decode_frame(), wavpack_decode_block(), wavpack_encode_frame(), wma_decode_superframe(), and xma_decode_packet().

int AVFrame::width
Examples:
decode_video.c, demuxing_decoding.c, encode_video.c, filtering_video.c, hw_decode.c, muxing.c, qsvdec.c, and vaapi_encode.c.

Definition at line 276 of file frame.h.

Referenced by acolor(), acolor16(), activate(), alloc_frame(), alloc_frame_buffer(), alloc_frame_empty(), alloc_out_frame(), alloc_picture(), alpha_inverse_prediction(), apng_do_inverse_blend(), apng_encode_frame(), apply_color_indexing_transform(), apply_color_transform(), apply_cropping(), apply_filter(), apply_palette(), apply_predictor_transform(), apply_subtract_green_transform(), av_buffersrc_add_frame_internal(), av_frame_apply_cropping(), av_frame_copy(), av_frame_get_buffer(), av_frame_make_writable(), av_frame_move_ref(), av_frame_ref(), avcodec_default_get_buffer2(), avcodec_encode_video2(), avgblur_opencl_filter_frame(), bidirectional_obmc(), bilateral_obmc(), blend_frame(), blend_image_packed_rgb(), blend_image_planar_rgb(), blend_image_yuv(), blur(), buffer_needs_copy(), calc_combed_score(), calc_diffs(), cfhd_decode(), chroma(), clear_image(), color(), color16(), color_graticule(), color_graticule16(), compare(), config_input(), convert(), convolution_opencl_filter_frame(), cover_rect(), create_cv_pixel_buffer(), cuda_get_buffer(), cudaupload_filter_frame(), cuvid_output_frame(), d3d11va_get_buffer(), d3d11va_transfer_data(), dds_decode(), debug_mean_error(), decimate_frame(), decklink_write_video_packet(), decode(), decode_entropy_coded_image(), decode_entropy_image(), decode_frame(), decode_frame_common(), decode_frame_header(), decode_packet(), decode_simple_internal(), decode_speedhq_field(), decode_video(), decode_write(), DEFINE_BLEND8(), deint_vaapi_filter_frame(), describe_frame_to_str(), display_frame(), do_blend(), do_chromakey_slice(), do_colorkey_slice(), do_despill_slice(), do_lumakey_slice16(), do_lumakey_slice8(), do_psnr(), downscale(), draw_axis_rgb(), draw_axis_yuv(), draw_bar_rgb(), draw_bar_yuv(), draw_frame(), draw_text(), drm_get_buffer(), drm_map_frame(), drm_transfer_data_from(), drm_transfer_data_to(), dump_spherical(), dx2_decode_slice_410(), dx2_decode_slice_420(), dx2_decode_slice_444(), dx2_decode_slice_5x5(), dx2_decode_slice_rgb(), dxva2_get_buffer(), dxva2_transfer_data_from(), dxva2_transfer_data_to(), encode_apng(), encode_frame(), envelope_instant(), envelope_instant16(), envelope_peak(), envelope_peak16(), extend_edges(), extract_line(), ff_amf_send_frame(), ff_color_frame(), ff_decode_frame_props(), ff_er_frame_end(), ff_filter_frame(), ff_frame_pool_get(), ff_get_buffer(), ff_inlink_make_frame_writable(), ff_libwebp_get_frame(), ff_load_image(), ff_mediacodec_sw_buffer_copy_yuv420_packed_semi_planar_64x32Tile2m8ka(), ff_mjpeg_decode_frame(), ff_mjpeg_decode_sos(), ff_mpv_encode_init(), ff_snow_get_buffer(), ff_tlog_ref(), ff_v4l2_buffer_buf_to_avframe(), ff_vaapi_encode2(), ff_videotoolbox_alloc_frame(), fill_iplimage_from_frame(), fill_picture_parameters(), filter(), filter16_brng(), filter16_tout(), filter16_vrep(), filter8_brng(), filter8_tout(), filter8_vrep(), filter_frame(), filter_rgb(), filter_slice(), filter_slice_alpha(), filter_slice_chroma(), filter_slice_luma(), finalize_frame(), fixstride(), flat(), format_init(), frame_copy_props(), frame_copy_video(), get_buffer_internal(), get_buffer_with_edge(), get_pixel_uv(), get_scene_score(), get_video_buffer(), get_width(), getpix(), graticule16_column(), graticule_column(), gray_frame(), green_graticule(), green_graticule16(), h264_field_start(), horizontal_frame_pack(), hqx_filter(), hwdownload_filter_frame(), hwmap_filter_frame(), hwupload_filter_frame(), ifilter_parameters_from_frame(), ifilter_send_frame(), init(), init_axis_from_file(), init_axis_from_font(), init_stage(), inter_pred(), interpolate(), inverse_prediction(), ipvideo_decode_init(), kmsgrab_read_packet(), lavfi_read_packet(), libkvazaar_encode(), libopenjpeg_copy_to_packed16(), libopenjpeg_copy_to_packed8(), librsvg_decode_frame(), ljpeg_encode_bgr(), load_palette(), lowpass16(), luma_abs_diff(), magy_encode_frame(), main(), mc_chroma_scaled(), mc_luma_scaled(), mediacodec_wrap_hw_buffer(), mediacodec_wrap_sw_buffer(), misc_vaapi_filter_frame(), mismatches_ref(), ndi_write_video_packet(), normalize(), nppscale_deinterleave(), nppscale_interleave(), nvdec_mjpeg_start_frame(), nvdec_mpeg12_start_frame(), nvdec_mpeg4_start_frame(), nvdec_vc1_start_frame(), nvdec_vp8_start_frame(), nvdec_vp9_start_frame(), opencl_get_buffer(), opencl_map_frame(), opencl_transfer_data_from(), opencl_transfer_data_to(), oscilloscope_filter_frame(), output_single_frame(), overlay_ass_image(), overlay_opencl_blend(), parse_transform_color_indexing(), pixscope_filter_frame(), pp_filter_frame(), procamp_vaapi_filter_frame(), process_slice_uyvy422(), process_slice_yuv420p(), process_slice_yuv422p(), process_slice_yuv444p(), program_opencl_run(), qsv_frame_lock(), qsv_get_buffer(), qsv_map_from(), qsv_map_to(), qsv_transfer_data_child(), qsvscale_filter_frame(), query_frame(), queue_picture(), raw_encode(), reget_buffer_internal(), remap_packed(), remap_packed16(), remap_planar(), remap_planar16(), rkmpp_retrieve_frame(), scale_vaapi_filter_frame(), scalecuda_resize(), sender_thread(), set_frame_data(), set_processing_window(), show_frame(), shuffleplanes_filter_frame(), smvjpeg_decode_frame(), sub2video_get_blank_frame(), sub2video_update(), submit_frame(), svq1_decode_frame(), tdsc_parse_tdsf(), thumbnail(), transfer_data_alloc(), unrefcount_frame(), unsharp_opencl_filter_frame(), update_frame_pool(), update_histogram_diff(), update_histogram_frame(), update_sono_rgb(), update_sono_yuv(), upload_texture(), vaapi_get_buffer(), vaapi_map_frame(), vaapi_transfer_data_from(), vaapi_transfer_data_to(), var_size_bmc(), vdpau_get_buffer(), vectorscope16(), vectorscope8(), vertical_frame_pack(), video_thread(), videotoolbox_retrieve_data(), vp9_decode_frame(), vt_get_buffer(), vt_transfer_data_from(), vt_transfer_data_to(), vtenc_populate_extradata(), write_palette(), and xbr_filter().

int AVFrame::height
Examples:
decode_video.c, demuxing_decoding.c, encode_video.c, filtering_video.c, hw_decode.c, muxing.c, qsvdec.c, and vaapi_encode.c.

Definition at line 276 of file frame.h.

Referenced by acolor(), acolor16(), activate(), alloc_frame(), alloc_frame_buffer(), alloc_frame_empty(), alloc_out_frame(), alloc_picture(), alpha_inverse_prediction(), apng_do_inverse_blend(), apng_encode_frame(), apply_color_indexing_transform(), apply_color_transform(), apply_cropping(), apply_filter(), apply_palette(), apply_predictor_transform(), apply_subtract_green_transform(), av_buffersrc_add_frame_internal(), av_frame_apply_cropping(), av_frame_copy(), av_frame_get_buffer(), av_frame_make_writable(), av_frame_move_ref(), av_frame_ref(), avcodec_default_get_buffer2(), avcodec_encode_video2(), avgblur_opencl_filter_frame(), bidirectional_obmc(), bilateral_obmc(), blend_frame(), blend_image_packed_rgb(), blend_image_planar_rgb(), blend_image_yuv(), blur(), buffer_needs_copy(), calc_combed_score(), calc_diffs(), cfhd_decode(), chroma(), clear_image(), color(), color16(), color_graticule(), color_graticule16(), compare(), config_input(), convert(), convolution_opencl_filter_frame(), cover_rect(), cpia_decode_frame(), create_cv_pixel_buffer(), cuda_get_buffer(), cuda_transfer_data_from(), cuda_transfer_data_to(), cudaupload_filter_frame(), cuvid_output_frame(), d3d11va_get_buffer(), d3d11va_transfer_data(), dds_decode(), debug_mean_error(), decimate_frame(), decklink_write_video_packet(), decode(), decode_entropy_coded_image(), decode_entropy_image(), decode_frame(), decode_frame_common(), decode_frame_header(), decode_packet(), decode_simple_internal(), decode_speedhq_field(), decode_video(), decode_write(), DEFINE_BLEND8(), deint_vaapi_filter_frame(), describe_frame_to_str(), display_frame(), do_blend(), do_chromakey_slice(), do_colorkey_slice(), do_despill_slice(), do_lumakey_slice16(), do_lumakey_slice8(), do_psnr(), do_swizzle(), downscale(), draw_axis_rgb(), draw_axis_yuv(), draw_frame(), draw_sono(), draw_text(), drm_get_buffer(), drm_map_frame(), drm_transfer_data_from(), drm_transfer_data_to(), dump_spherical(), dxva2_get_buffer(), dxva2_transfer_data_from(), dxva2_transfer_data_to(), encode_apng(), encode_frame(), envelope_instant(), envelope_instant16(), envelope_peak(), envelope_peak16(), extend_edges(), ff_amf_send_frame(), ff_color_frame(), ff_decode_frame_props(), ff_er_frame_end(), ff_filter_frame(), ff_frame_pool_get(), ff_get_buffer(), ff_h263_decode_frame(), ff_inlink_make_frame_writable(), ff_libwebp_get_frame(), ff_load_image(), ff_mediacodec_sw_buffer_copy_yuv420_packed_semi_planar_64x32Tile2m8ka(), ff_mjpeg_decode_frame(), ff_mjpeg_decode_sos(), ff_mpv_encode_init(), ff_mpv_export_qp_table(), ff_snow_get_buffer(), ff_tlog_ref(), ff_v4l2_buffer_buf_to_avframe(), ff_vaapi_encode2(), ff_videotoolbox_alloc_frame(), fill_iplimage_from_frame(), fill_picture_parameters(), filter(), filter16_brng(), filter16_tout(), filter16_vrep(), filter8_brng(), filter8_tout(), filter8_vrep(), filter_frame(), filter_slice(), filter_slice_alpha(), filter_slice_chroma(), filter_slice_luma(), filter_slice_rgb(), finalize_frame(), fixstride(), flat(), flip_swap_frame(), format_init(), frame_copy_props(), frame_copy_video(), get_buffer_internal(), get_buffer_with_edge(), get_height(), get_pixel_uv(), get_scene_score(), get_video_buffer(), decklink_frame::GetBytes(), getpix(), gif_fill(), gif_read_image(), graticule16_row(), graticule_row(), gray_frame(), green_graticule(), green_graticule16(), guess_mv(), h264_field_start(), horizontal_frame_pack(), hqx_filter(), hwdownload_filter_frame(), hwmap_filter_frame(), hwupload_filter_frame(), ifilter_parameters_from_frame(), ifilter_send_frame(), init(), init_axis_from_file(), init_axis_from_font(), init_stage(), inter_pred(), interpolate(), ipvideo_decode_init(), kmsgrab_read_packet(), lavfi_read_packet(), libkvazaar_encode(), libopenjpeg_copy_to_packed16(), libopenjpeg_copy_to_packed8(), librsvg_decode_frame(), ljpeg_encode_bgr(), load_palette(), lowpass16(), luma_abs_diff(), magy_encode_frame(), main(), mc_chroma_scaled(), mc_luma_scaled(), mediacodec_wrap_hw_buffer(), mediacodec_wrap_sw_buffer(), misc_vaapi_filter_frame(), mismatches_ref(), ndi_write_video_packet(), normalize(), nppscale_deinterleave(), nppscale_interleave(), nvdec_mjpeg_start_frame(), nvdec_mpeg12_start_frame(), nvdec_mpeg4_start_frame(), nvdec_vc1_start_frame(), nvdec_vp8_start_frame(), nvdec_vp9_start_frame(), opencl_get_buffer(), opencl_map_frame(), opencl_transfer_data_from(), opencl_transfer_data_to(), oscilloscope_filter_frame(), output_single_frame(), overlay_ass_image(), overlay_opencl_blend(), pixscope_filter_frame(), pp_filter_frame(), procamp_vaapi_filter_frame(), process_slice_uyvy422(), process_slice_yuv420p(), process_slice_yuv422p(), process_slice_yuv444p(), program_opencl_run(), qsv_frame_lock(), qsv_get_buffer(), qsv_map_from(), qsv_map_to(), qsv_transfer_data_child(), qsvscale_filter_frame(), query_frame(), queue_picture(), raw_encode(), reget_buffer_internal(), remap_packed(), remap_packed16(), remap_planar(), remap_planar16(), rkmpp_retrieve_frame(), run_postproc(), scale_vaapi_filter_frame(), scalecuda_resize(), sender_thread(), set_frame_data(), set_processing_window(), show_frame(), shuffleplanes_filter_frame(), smvjpeg_decode_frame(), sub2video_get_blank_frame(), sub2video_update(), submit_frame(), svq1_decode_frame(), tdsc_parse_tdsf(), thumbnail(), transfer_data_alloc(), unrefcount_frame(), unsharp_opencl_filter_frame(), update_frame_pool(), update_histogram_diff(), update_histogram_frame(), upload_texture(), vaapi_get_buffer(), vaapi_map_frame(), vaapi_transfer_data_from(), vaapi_transfer_data_to(), var_size_bmc(), vdpau_get_buffer(), vectorscope16(), vectorscope8(), vertical_frame_pack(), video_thread(), videotoolbox_retrieve_data(), vp9_decode_frame(), vpx_encode(), vt_get_buffer(), vt_transfer_data_from(), vt_transfer_data_to(), vtenc_populate_extradata(), write_palette(), and xbr_filter().

int AVFrame::nb_samples

number of audio samples (per channel) described by this frame

Examples:
decode_audio.c, demuxing_decoding.c, encode_audio.c, filter_audio.c, filtering_audio.c, muxing.c, and transcode_aac.c.

Definition at line 284 of file frame.h.

Referenced by aac_decode_er_frame(), aac_decode_frame_int(), aac_encode_frame(), ac3_decode_frame(), activate(), adpcm_decode_frame(), adpcm_encode_frame(), adx_decode_frame(), alac_encode_frame(), alloc_audio_frame(), amplify_frame(), amrnb_decode_frame(), amrwb_decode_frame(), ape_decode_frame(), apply_window_and_mdct(), aptx_decode_frame(), aptx_encode_frame(), atrac1_decode_frame(), atrac3_decode_frame(), atrac3al_decode_frame(), atrac3p_decode_frame(), audio_decode_frame(), audio_frame_cksum(), audio_thread(), av_frame_copy(), av_frame_get_buffer(), av_frame_get_plane_buffer(), av_frame_make_writable(), av_frame_ref(), avcodec_encode_audio2(), avcodec_fill_audio_frame(), avresample_convert_frame(), binkaudio_receive_frame(), bmv_aud_decode_frame(), buffer_offset(), celt_frame_setup_input(), check_consistency(), cinaudio_decode_frame(), cng_decode_frame(), cng_encode_frame(), compand_delay(), compand_drain(), compand_nodelay(), compute_frame_rms(), compute_frame_std_dev(), config_input(), config_output(), convert_frame(), cook_decode_frame(), copy_input_samples(), decode(), decode_audio(), decode_element(), decode_frame(), decode_packet(), decode_simple_internal(), decode_tag(), decoder_decode_frame(), describe_frame_to_str(), do_audio_out(), dpcm_decode_frame(), dss_sp_decode_frame(), eightsvx_decode_frame(), encode_audio_frame(), encode_frame(), evrc_decode_frame(), fdk_aac_decode_frame(), ff_af_queue_add(), ff_dca_lbr_filter_frame(), ff_dca_xll_filter_frame(), ff_default_get_audio_buffer(), ff_frame_pool_get(), ff_framequeue_add(), ff_framequeue_skip_samples(), ff_framequeue_take(), ff_inlink_consume_frame(), ff_inlink_make_frame_writable(), ff_tlog_ref(), ff_twinvq_decode_frame(), ffat_decode(), ffat_encode_callback(), filter_frame(), filter_frame_fixed(), filter_frame_float(), find_peak_magnitude(), fir_channel(), fir_frame(), flac_decode_frame(), flac_encode_frame(), flush(), flush_buffer(), flush_frame(), frame_configure_elements(), frame_copy_audio(), g722_decode_frame(), g722_encode_frame(), g723_1_decode_frame(), g723_1_encode_frame(), get_audio_buffer(), get_input(), gsm_decode_frame(), headphone_convolute(), headphone_fast_convolute(), headphone_frame(), ilbc_decode_frame(), imc_decode_frame(), lavfi_read_packet(), libcelt_dec_decode(), libcodec2_decode(), libgsm_decode_frame(), libopus_decode(), libopus_encode(), libspeex_decode_frame(), libvorbis_encode_frame(), mace_decode_frame(), main(), move_audio(), mp3lame_encode_frame(), mp_decode_frame(), mpc7_decode_frame(), mpc8_decode_frame(), oggvorbis_decode_frame(), on2avc_decode_frame(), opus_decode_packet(), output_data(), pad_last_frame(), paf_audio_decode(), pcm_bluray_decode_frame(), pcm_decode_frame(), pcm_dvd_decode_frame(), pcm_encode_frame(), perform_compression(), perform_dc_correction(), plot_freqs(), print_frame(), process_output(), push_frame(), push_samples(), push_single_pic(), qcelp_decode_frame(), qdm2_decode_frame(), qdmc_decode_frame(), ra144_decode_frame(), ra144_encode_frame(), ra288_decode_frame(), read_decode_convert_and_store(), read_ir(), request_frame(), return_audio_frame(), run_test(), s302m_decode_frame(), s302m_encode2_frame(), sbc_decode_frame(), sbc_encode_frame(), select_frame(), shorten_decode_frame(), show_frame(), sipr_decode_frame(), smka_decode_frame(), sofalizer_convolute(), sofalizer_fast_convolute(), spawn_empty_frame(), step_collect_psy_metrics(), swr_convert_frame(), synth_superframe(), tak_decode_frame(), take_samples(), truespeech_decode_frame(), try_push_frame(), tta_decode_frame(), tta_encode_frame(), twolame_encode_frame(), unrefcount_frame(), update_frame_pool(), vmdaudio_decode_frame(), vorbis_decode_frame(), wavesynth_decode(), wavpack_decode_block(), wavpack_encode_frame(), wma_decode_superframe(), wmapro_decode_packet(), write_audio_frame(), ws_snd_decode_frame(), xma_decode_init(), and xma_decode_packet().

int AVFrame::format

format of the frame, -1 if unknown or unset Values correspond to enum AVPixelFormat for video frames, enum AVSampleFormat for audio)

Examples:
demuxing_decoding.c, encode_audio.c, encode_video.c, filter_audio.c, hw_decode.c, muxing.c, and vaapi_encode.c.

Definition at line 291 of file frame.h.

Referenced by alloc_audio_frame(), alloc_frame(), alloc_frame_buffer(), alloc_frame_empty(), alloc_picture(), amf_copy_surface(), apng_do_inverse_blend(), apng_encode_frame(), aptx_decode_frame(), audio_decode_frame(), audio_frame_cksum(), audio_thread(), av_buffersrc_add_frame_internal(), av_frame_apply_cropping(), av_frame_copy(), av_frame_get_buffer(), av_frame_get_plane_buffer(), av_frame_make_writable(), av_frame_ref(), av_hwframe_get_buffer(), av_hwframe_map(), available_samples(), avcodec_encode_video2(), avgblur_opencl_filter_frame(), avresample_config(), bmp_decode_frame(), calc_ptr_alignment(), celt_frame_setup_input(), config_changed(), config_input(), config_output(), convolution_opencl_filter_frame(), copy_frame(), create_cv_pixel_buffer(), create_filtergraph(), cuda_get_buffer(), cuvid_output_frame(), d3d11va_get_buffer(), d3d11va_transfer_data(), decode_entropy_coded_image(), decode_frame(), decode_frame_common(), decode_frame_header(), decode_packet(), decode_simple_internal(), decode_video(), decode_write(), deint_vaapi_filter_frame(), downscale(), draw_axis_yuv(), draw_bar_yuv(), draw_sono(), drm_get_buffer(), drm_map_from(), drm_transfer_data_from(), drm_transfer_data_to(), dxva2_get_buffer(), dxva2_map_frame(), dxva2_map_from(), dxva2_transfer_data_from(), dxva2_transfer_data_to(), encode_apng(), encode_frame(), ff_amf_send_frame(), ff_color_frame(), ff_dca_xll_filter_frame(), ff_decode_frame_props(), ff_er_frame_end(), ff_filter_frame(), ff_frame_pool_get(), ff_framequeue_skip_samples(), ff_h263_decode_frame(), ff_hevc_output_frame(), ff_inlink_make_frame_writable(), ff_jpegls_decode_lse(), ff_libwebp_get_frame(), ff_load_image(), ff_mjpeg_decode_frame(), ff_mjpeg_decode_sos(), ff_mpv_encode_init(), ff_opencl_filter_work_size_from_image(), ff_snow_common_init_after_header(), ff_v4l2_buffer_buf_to_avframe(), ff_videotoolbox_alloc_frame(), ffmmal_set_ref(), filter(), filter_frame(), finalize_frame(), fixstride(), frame_copy_audio(), frame_copy_video(), get_audio_buffer(), get_buffer(), get_cv_pixel_info(), get_frame_defaults(), get_input(), get_surface(), get_video_buffer(), gray_frame(), h264_field_start(), handle_p_frame_png(), horizontal_frame_pack(), hwaccel_retrieve_data(), hwmap_filter_frame(), hwupload_filter_frame(), ifilter_parameters_from_frame(), ifilter_send_frame(), image_copy_16_to_8(), init(), init_axis_from_file(), init_axis_from_font(), ipvideo_decode_init(), jpeg2000_decode_tile(), kmsgrab_read_packet(), lavfi_read_packet(), libkvazaar_encode(), libopenjpeg_copy_to_packed16(), libopenjpeg_copyto16(), main(), map_frame_to_surface(), mediacodec_wrap_hw_buffer(), mediacodec_wrap_sw_buffer(), misc_vaapi_filter_frame(), mismatches_ref(), movie_push_frame(), mss2_decode_frame(), ndi_write_video_packet(), nvenc_copy_frame(), opencl_get_buffer(), opencl_map_frame(), opencl_map_from(), opencl_map_to(), opencl_transfer_data_from(), opencl_transfer_data_to(), output_frame(), output_single_frame(), overlay_opencl_blend(), pad_last_frame(), procamp_vaapi_filter_frame(), process_output(), program_opencl_run(), qsv_frame_lock(), qsv_get_buffer(), qsv_map_from(), qsv_transfer_data_child(), queue_picture(), raw_encode(), reget_buffer_internal(), request_frame(), rkmpp_retrieve_frame(), run_test(), sbc_decode_frame(), scale_vaapi_filter_frame(), sender_thread(), show_frame(), smvjpeg_decode_frame(), spawn_empty_frame(), sub2video_get_blank_frame(), submit_frame(), swr_config_frame(), tdsc_init(), tiff_unpack_strip(), transfer_data_alloc(), try_push_frame(), unrefcount_frame(), unsharp_opencl_filter_frame(), update_frame_pool(), update_sono_yuv(), upload_texture(), vaapi_get_buffer(), vaapi_map_frame(), vaapi_map_from(), vaapi_map_to(), vaapi_map_to_memory(), vaapi_transfer_data_from(), vaapi_transfer_data_to(), validate_avframe_allocation(), vdpau_get_buffer(), vdpau_transfer_data_from(), vdpau_transfer_data_to(), verify_md5(), vertical_frame_pack(), video_get_buffer(), video_thread(), videotoolbox_retrieve_data(), vt_get_buffer(), vt_map_frame(), vt_transfer_data_from(), vt_transfer_data_to(), and vtenc_populate_extradata().

int AVFrame::key_frame

1 -> keyframe, 0-> not

Definition at line 296 of file frame.h.

Referenced by aic_decode_frame(), avs_decode_frame(), avui_decode_frame(), bfi_decode_frame(), bitpacked_decode(), bmp_decode_frame(), bmp_encode_frame(), cinepak_decode(), cllc_decode_frame(), clv_decode_frame(), cmv_decode_frame(), cpia_decode_frame(), cuvid_output_frame(), dds_decode(), decode_frame(), decode_idat_chunk(), decode_slice(), decode_video(), dirac_decode_data_unit(), dnxhd_decode_frame(), dnxhd_encode_init(), do_video_out(), dvvideo_decode_frame(), dvvideo_encode_frame(), dxv_decode(), encode_frame(), encode_init(), encode_init_ls(), encode_picture(), ff_h263_decode_frame(), ff_mjpeg_decode_sof(), ff_mpv_encode_picture(), ff_mpv_frame_start(), ff_snow_frame_start(), ff_tlog_ref(), ff_v4l2_buffer_buf_to_avframe(), ff_vp56_decode_mbs(), fic_decode_frame(), filter_frame(), fits_decode_frame(), flashsv_encode_frame(), frame_copy_props(), frame_start(), g2m_decode_frame(), get_frame_defaults(), gif_decode_frame(), gif_encode_init(), h261_decode_frame(), h264_field_start(), h264_frame_start(), h264_select_output_frame(), hap_decode(), hevc_frame_start(), hnm_decode_frame(), hq_hqa_decode_frame(), hqx_decode_frame(), jpeg2000_decode_frame(), lag_decode_frame(), libopenjpeg_decode_frame(), librsvg_decode_frame(), ljpeg_encode_init(), m101_decode_frame(), magy_decode_frame(), mpeg1_decode_picture(), mpeg1_encode_sequence_header(), mpeg_decode_picture_coding_extension(), mss1_decode_frame(), mss2_decode_frame(), mss3_decode_frame(), mss4_decode_frame(), mvc_decode_frame(), mxpeg_decode_frame(), output_frame(), paf_video_decode(), pam_encode_init(), pcx_encode_init(), pix_decode_frame(), pixlet_decode_frame(), png_enc_init(), pnm_decode_frame(), pnm_encode_init(), qsv_decode(), qtrle_encode_frame(), raw_decode(), request_frame(), rscc_decode_frame(), screenpresso_decode_frame(), select_frame(), send_next_delayed_frame(), sgirle_decode_frame(), show_frame(), speedhq_decode_frame(), storeframe(), svq1_encode_frame(), svq3_decode_frame(), targa_encode_init(), tdsc_decode_frame(), tgq_decode_frame(), tgv_decode_frame(), tmv_decode_frame(), truemotion2rt_decode_frame(), utvideo_encode_frame(), v308_decode_frame(), v408_decode_frame(), v410_decode_frame(), v410_encode_frame(), vble_decode_frame(), vc1_decode_frame(), vcr1_decode_frame(), vp8_lossless_decode_frame(), vp9_decode_frame(), XAVS_frame(), xbm_decode_frame(), xpm_decode_frame(), xvid_encode_frame(), xwd_decode_frame(), xwd_encode_frame(), y216_decode_frame(), y41p_decode_frame(), yuv4_decode_frame(), zero12v_decode_frame(), and zerocodec_decode_frame().

enum AVPictureType AVFrame::pict_type

Picture type of the frame.

Examples:
transcoding.c.

Definition at line 301 of file frame.h.

Referenced by aic_decode_frame(), aom_encode(), avs_decode_frame(), avui_decode_frame(), bfi_decode_frame(), bitpacked_decode(), bmp_decode_frame(), bmp_encode_frame(), cavs_decode_frame(), cdxl_decode_frame(), cllc_decode_frame(), clv_decode_frame(), cmv_decode_frame(), cpia_decode_frame(), create_encoder_dict_h264(), dds_decode(), decode_frame(), decode_idat_chunk(), decode_mb_i(), decode_pic(), decode_slice_header(), decode_video(), dirac_decode_data_unit(), dnxhd_decode_frame(), dnxhd_encode_init(), do_video_out(), dvvideo_decode_frame(), dvvideo_encode_frame(), dxv_decode(), encode_frame(), encode_init(), encode_init_ls(), encode_picture(), estimate_best_b_count(), execute_code(), ff_draw_horiz_band(), ff_er_frame_end(), ff_h263_decode_frame(), ff_h264_execute_ref_pic_marking(), ff_mjpeg_decode_sof(), ff_mpeg4_encode_mb(), ff_mpv_encode_picture(), ff_mpv_frame_start(), ff_nvenc_send_frame(), ff_print_debug_info2(), ff_tlog_ref(), ff_vaapi_encode2(), ff_vc1_parse_frame_header_adv(), ff_vp56_decode_mbs(), fic_decode_frame(), filter_encode_write_frame(), filter_frame(), fits_decode_frame(), flashsv_encode_frame(), frame_copy_props(), frame_start(), g2m_decode_frame(), gif_decode_frame(), gif_encode_init(), h261_decode_frame(), h264_frame_start(), h264_select_output_frame(), hap_decode(), hevc_frame_start(), hnm_decode_frame(), hq_hqa_decode_frame(), hqx_decode_frame(), is_intra_more_likely(), jpeg2000_decode_frame(), libopenjpeg_decode_frame(), librsvg_decode_frame(), libx265_encode_frame(), ljpeg_encode_init(), m101_decode_frame(), magy_decode_frame(), mimic_decode_frame(), mpeg1_decode_picture(), mpeg_decode_picture_coding_extension(), mss1_decode_frame(), mss2_decode_frame(), mss3_decode_frame(), mss4_decode_frame(), mvc_decode_frame(), mxpeg_decode_frame(), paf_video_decode(), pam_encode_init(), pcx_decode_frame(), pcx_encode_init(), pix_decode_frame(), pixlet_decode_frame(), png_enc_init(), pnm_decode_frame(), pnm_encode_init(), pp_filter_frame(), process_output_surface(), ptx_decode_frame(), qsv_decode(), qtrle_encode_frame(), queue_picture(), ratecontrol_1pass(), raw_decode(), raw_encode_init(), request_frame(), rscc_decode_frame(), rv10_decode_packet(), screenpresso_decode_frame(), select_frame(), select_input_picture(), set_direct_mv(), set_mv_intra(), sgirle_decode_frame(), show_frame(), storeframe(), sunrast_decode_frame(), svc_encode_frame(), svq1_decode_frame(), svq1_decode_frame_header(), svq1_encode_frame(), svq3_decode_frame(), targa_encode_init(), tdsc_decode_frame(), tgq_decode_frame(), tgv_decode_frame(), tmv_decode_frame(), truemotion2rt_decode_frame(), txd_decode_frame(), utvideo_encode_frame(), v308_decode_frame(), v408_decode_frame(), v410_decode_frame(), v410_encode_frame(), vaapi_mpeg4_start_frame(), vble_decode_frame(), vc1_decode_frame(), vcr1_decode_frame(), vp8_lossless_decode_frame(), vp9_decode_frame(), vpx_encode(), X264_frame(), XAVS_frame(), xbm_decode_frame(), xpm_decode_frame(), xvid_encode_frame(), xwd_decode_frame(), xwd_encode_frame(), y216_decode_frame(), y41p_decode_frame(), yuv4_decode_frame(), zero12v_decode_frame(), and zerocodec_decode_frame().

AVRational AVFrame::sample_aspect_ratio
int64_t AVFrame::pts

Presentation timestamp in time_base units (time when frame should be shown to user).

Examples:
demuxing_decoding.c, encode_video.c, filter_audio.c, filtering_video.c, muxing.c, transcode_aac.c, and transcoding.c.

Definition at line 311 of file frame.h.

Referenced by a64multi_encode_frame(), activate(), alloc_out_frame(), amr_wb_encode_frame(), aom_encode(), audio_thread(), av_write_uncoded_frame_internal(), avcodec_encode_audio2(), avcodec_encode_video2(), avgblur_opencl_filter_frame(), buffer_offset(), compand_delay(), compand_drain(), compute_crc_of_packets(), consume_update(), convolution_opencl_filter_frame(), copy_frame(), create_subcc_packet(), cuvid_output_frame(), decode_audio(), decode_packet(), decode_simple_internal(), decode_video(), decoder_decode_frame(), DEFINE_BLEND8(), deint_vaapi_filter_frame(), describe_frame_to_str(), display_frame(), do_audio_out(), do_blend(), do_video_out(), draw_text(), encode(), encode_apng(), encode_audio_frame(), encode_frame(), encode_superframe(), ff_af_queue_add(), ff_amf_send_frame(), ff_decode_frame_props(), ff_framequeue_skip_samples(), ff_framesync_dualinput_get(), ff_inlink_evaluate_timeline_at_frame(), ff_inlink_process_commands(), ff_mpv_encode_picture(), ff_nvenc_send_frame(), ff_qsvvpp_filter_frame(), ff_rate_estimate_qscale(), ff_tlog_ref(), ff_v4l2_buffer_avframe_to_buf(), ff_v4l2_buffer_buf_to_avframe(), ff_vaapi_encode2(), ffat_decode(), ffmal_copy_frame(), filter(), filter_callback(), filter_frame(), fir_frame(), flac_encode_frame(), flush(), flush_frame(), frame_copy_props(), framesync_inject_frame(), g722_encode_frame(), geq_filter_frame(), get_best_frame(), get_frame_defaults(), get_input(), get_palette_frame(), get_video_frame(), gif_decode_frame(), headphone_frame(), hwmap_filter_frame(), interpolate(), lavfi_read_packet(), libkvazaar_encode(), libwebp_anim_encode_frame(), libx265_encode_frame(), load_input_picture(), main(), mediacodec_wrap_hw_buffer(), mediacodec_wrap_sw_buffer(), misc_vaapi_filter_frame(), movie_push_frame(), MPA_encode_frame(), mpeg4_encode_gop_header(), omx_encode_frame(), output_frame(), output_single_frame(), overlay_opencl_blend(), plot_cqt(), plot_freqs(), plot_spectrum_column(), procamp_vaapi_filter_frame(), process_frame(), process_work_frame(), program_opencl_run(), push_frame(), push_samples(), qsv_decode(), read_frame(), reap_filters(), request_frame(), return_audio_frame(), return_frame(), rkmpp_retrieve_frame(), roq_dpcm_encode_frame(), scale_vaapi_filter_frame(), select_frame(), send_silence(), set_frame_distances(), shift_frame(), show_frame(), source_request_frame(), storeframe(), sub2video_push_ref(), submit_frame(), svc_decode_frame(), svc_encode_frame(), take_samples(), try_push_frame(), tta_encode_frame(), twolame_encode_frame(), unsharp_opencl_filter_frame(), update(), update_context(), video_decode_example(), video_thread(), vpx_encode(), vtenc_frame(), vtenc_populate_extradata(), vtenc_send_frame(), wavpack_encode_frame(), write_audio_frame(), write_frame(), X264_frame(), and XAVS_frame().

attribute_deprecated int64_t AVFrame::pkt_pts
int64_t AVFrame::pkt_dts

DTS copied from the AVPacket that triggered returning this frame.

(if frame threading isn't used) This is also the Presentation time of this AVFrame calculated from only AVPacket.dts values without pts values.

Definition at line 327 of file frame.h.

Referenced by decode_simple_internal(), decoder_decode_frame(), ff_thread_decode_frame(), ffmal_copy_frame(), frame_copy_props(), get_frame_defaults(), gif_decode_frame(), mediacodec_wrap_hw_buffer(), mediacodec_wrap_sw_buffer(), show_frame(), svc_decode_frame(), and video_decode_example().

int AVFrame::coded_picture_number
int AVFrame::display_picture_number
int AVFrame::quality
void* AVFrame::opaque

for some private data of the user

Definition at line 346 of file frame.h.

Referenced by ff_print_debug_info2(), and frame_copy_props().

attribute_deprecated uint64_t AVFrame::error[AV_NUM_DATA_POINTERS]
Deprecated:
unused

Definition at line 353 of file frame.h.

Referenced by do_swap(), encode_frame(), frame_copy_props(), frame_end(), and storeframe().

int AVFrame::repeat_pict

When decoding, this signals how much the picture must be delayed.

extra_delay = repeat_pict / (2*fps)

Definition at line 360 of file frame.h.

Referenced by filter_frame(), frame_copy_props(), h264_export_frame_props(), mpeg_field_start(), qsv_decode(), show_frame(), submit_frame(), and vc1_decode_frame().

int AVFrame::interlaced_frame
int AVFrame::top_field_first
int AVFrame::palette_has_changed
int64_t AVFrame::reordered_opaque

reordered opaque 64 bits (generally an integer or a double precision float PTS but can be anything).

The user sets AVCodecContext.reordered_opaque to represent the input at that time, the decoder reorders values as needed and sets AVFrame.reordered_opaque to exactly one of the values provided by the user through AVCodecContext.reordered_opaque

Deprecated:
in favor of pkt_pts

Definition at line 386 of file frame.h.

Referenced by ff_decode_frame_props(), and frame_copy_props().

int AVFrame::sample_rate
uint64_t AVFrame::channel_layout

AVBuffer references backing the data for this frame.

If all elements of this array are NULL, then this frame is not reference counted. This array must be filled contiguously – if buf[i] is non-NULL then buf[j] must also be non-NULL for all j < i.

There may be at most one AVBuffer per data plane, so for video this array always contains all the references. For planar audio with more than AV_NUM_DATA_POINTERS channels, there may be more buffers than can fit in this array. Then the extra AVBufferRef pointers are stored in the extended_buf array.

Definition at line 410 of file frame.h.

Referenced by alloc_frame(), audio_get_buffer(), av_buffersrc_add_frame_internal(), av_frame_get_plane_buffer(), av_frame_is_writable(), av_frame_make_writable(), av_frame_ref(), av_frame_unref(), av_hwframe_map(), av_hwframe_transfer_data(), avcodec_receive_frame(), avcodec_send_packet(), bitpacked_decode_uyvy422(), common_uninit(), cuda_get_buffer(), d3d11va_get_buffer(), decode_frame_header(), decode_nal_units(), decode_receive_frame_internal(), decode_simple_receive_frame(), do_swap(), drm_get_buffer(), dxva2_get_buffer(), ff_alloc_picture(), ff_frame_pool_get(), ff_h264_build_ref_list(), ff_h264_ref_picture(), ff_h264_unref_picture(), ff_hevc_output_frame(), ff_hevc_set_new_ref(), ff_hevc_unref_frame(), ff_hwframe_map_create(), ff_mpeg_ref_picture(), ff_mpv_frame_start(), ff_thread_release_buffer(), ff_tlog_ref(), ff_v4l2_buffer_avframe_to_buf(), ff_v4l2_buffer_buf_to_avframe(), ff_videotoolbox_alloc_frame(), ffmmal_set_ref(), fill_picture_parameters(), find_ref_idx(), find_unused_picture(), frame_add_buf(), frame_needs_copy(), frame_start(), frame_worker_thread(), generate_missing_ref(), get_audio_buffer(), get_video_buffer(), h264_decode_frame(), h264_field_start(), h264_initialise_ref_list(), h264_slice_init(), hevc_decode_frame(), hevc_update_thread_context(), kmsgrab_read_packet(), load_input_picture(), mediacodec_wrap_hw_buffer(), opencl_get_buffer(), pic_is_unused(), qsv_frame_lock(), qsv_get_buffer(), qsv_map_from(), qsv_transfer_data_child(), raw_decode(), release_unused_pictures(), rkmpp_retrieve_frame(), try_push_frame(), vaapi_get_buffer(), vaapi_vp9_start_frame(), vdpau_get_buffer(), video_get_buffer(), videotoolbox_postproc_frame(), videotoolbox_set_frame(), vp78_decode_frame(), vp8_find_free_buffer(), vp9_decode_frame(), vp9_decode_free(), vt_get_buffer(), and vtenc_populate_extradata().

AVBufferRef** AVFrame::extended_buf

For planar audio which requires more than AV_NUM_DATA_POINTERS AVBufferRef pointers, this array will hold all the references which cannot fit into AVFrame.buf.

Note that this is different from AVFrame.extended_data, which always contains all the pointers. This array only contains the extra pointers, which cannot fit into AVFrame.buf.

This array is always allocated using av_malloc() by whoever constructs the frame. It is freed in av_frame_unref().

Definition at line 424 of file frame.h.

Referenced by audio_get_buffer(), av_frame_get_plane_buffer(), av_frame_is_writable(), av_frame_ref(), av_frame_unref(), ff_frame_pool_get(), get_audio_buffer(), and try_push_frame().

int AVFrame::nb_extended_buf
AVFrameSideData** AVFrame::side_data
int AVFrame::nb_side_data
int AVFrame::flags
enum AVColorRange AVFrame::color_range
enum AVColorPrimaries AVFrame::color_primaries
enum AVColorTransferCharacteristic AVFrame::color_trc
enum AVColorSpace AVFrame::colorspace
enum AVChromaLocation AVFrame::chroma_location
int64_t AVFrame::best_effort_timestamp

frame timestamp estimated using various heuristics, in stream time base

  • encoding: unused
  • decoding: set by libavcodec, read by user.
Examples:
filtering_video.c, and transcoding.c.

Definition at line 483 of file frame.h.

Referenced by decode_simple_internal(), decode_video(), decoder_decode_frame(), frame_copy_props(), get_frame_defaults(), main(), movie_push_frame(), and show_frame().

int64_t AVFrame::pkt_pos
int64_t AVFrame::pkt_duration

duration of the corresponding packet, expressed in AVStream->time_base units, 0 if unknown.

  • encoding: unused
  • decoding: Read by user.

Definition at line 498 of file frame.h.

Referenced by av_write_uncoded_frame_internal(), compute_crc_of_packets(), copy_frame(), cuvid_output_frame(), decode_simple_internal(), decode_video(), do_video_out(), ff_decode_frame_props(), frame_copy_props(), get_frame_defaults(), gif_decode_frame(), raw_decode(), show_frame(), and video_decode_example().

AVDictionary* AVFrame::metadata
int AVFrame::decode_error_flags

decode error flags of the frame, set to a combination of FF_DECODE_ERROR_xxx flags if the decoder produced a frame, but there were errors during the decoding.

  • encoding: unused
  • decoding: set by libavcodec, read by user.

Definition at line 514 of file frame.h.

Referenced by ac3_decode_frame(), check_decode_result(), cpia_decode_frame(), decode_picture(), ff_v4l2_buffer_buf_to_avframe(), and frame_copy_props().

int AVFrame::channels
int AVFrame::pkt_size

size of the corresponding packet containing the compressed frame.

It is set to a negative value if unknown.

  • encoding: unused
  • decoding: set by libavcodec, read by user.

Definition at line 532 of file frame.h.

Referenced by copy_frame(), cuvid_output_frame(), ff_decode_frame_props(), frame_copy_props(), get_frame_defaults(), and show_frame().

attribute_deprecated int8_t* AVFrame::qscale_table

QP table.

Definition at line 539 of file frame.h.

Referenced by av_frame_set_qp_table(), and frame_copy_props().

attribute_deprecated int AVFrame::qstride

QP store stride.

Definition at line 544 of file frame.h.

Referenced by av_frame_get_qp_table(), av_frame_set_qp_table(), and frame_copy_props().

attribute_deprecated int AVFrame::qscale_type

Definition at line 547 of file frame.h.

Referenced by av_frame_get_qp_table(), av_frame_set_qp_table(), and frame_copy_props().

attribute_deprecated AVBufferRef* AVFrame::qp_table_buf
AVBufferRef* AVFrame::hw_frames_ctx
AVBufferRef* AVFrame::opaque_ref

AVBufferRef for free use by the API user.

FFmpeg will never check the contents of the buffer ref. FFmpeg calls av_buffer_unref() on it when the frame is unreferenced. av_frame_copy_props() calls create a new reference with av_buffer_ref() for the target frame's opaque_ref field.

This is unrelated to the opaque field, although it serves a similar purpose.

Definition at line 567 of file frame.h.

Referenced by av_frame_unref(), and frame_copy_props().

size_t AVFrame::crop_top
size_t AVFrame::crop_bottom
size_t AVFrame::crop_left
size_t AVFrame::crop_right
AVBufferRef* AVFrame::private_ref

AVBufferRef for internal use by a single libav* library.

Must not be used to transfer data between libraries. Has to be NULL when ownership of the frame leaves the respective library.

Code outside the FFmpeg libs should never check or change the contents of the buffer ref.

FFmpeg calls av_buffer_unref() on it when the frame is unreferenced. av_frame_copy_props() calls create a new reference with av_buffer_ref() for the target frame's private_ref field.

Definition at line 596 of file frame.h.

Referenced by av_frame_unref(), decode_receive_frame_internal(), dpb_add(), ff_attach_decode_data(), ff_nvdec_get_ref_idx(), ff_nvdec_start_frame(), ff_videotoolbox_alloc_frame(), frame_copy_props(), nvdec_h264_start_frame(), nvdec_hevc_start_frame(), nvdec_mjpeg_start_frame(), nvdec_mpeg12_start_frame(), nvdec_mpeg4_start_frame(), nvdec_retrieve_data(), nvdec_vc1_start_frame(), nvdec_vp8_start_frame(), and nvdec_vp9_start_frame().


The documentation for this struct was generated from the following file: