UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
Loading...
Searching...
No Matches
video_frame Struct Reference

Struct video_frame represents a video frame and contains video description. More...

#include <types.h>

Collaboration diagram for video_frame:
Collaboration graph

Public Attributes

union { 
 
   uint32_t   duration 
 used by file cap More...
 
   uint32_t   timecode 
 BCD timecode (hrs, min, sec, frm num) More...
 
};  
 
struct video_frame_callbacks callbacks
 
codec_t color_spec
 
int64_t compress_end
 in ns from epoch
 
int64_t compress_start
 in ns from epoch
 
unsigned int decoder_overrides_data_len:1
 
struct fec_desc fec_params
 
int flags
 
double fps
 
frame_type_t frame_type
 
enum interlacing_t interlacing
 
enum mem_location_t mem_location
 
uint32_t seq
 seq num, used internally by JPEG enc, file cap
 
uint32_t ssrc
 
unsigned int tile_count
 
struct tile tiles [FLEXIBLE_ARRAY_MEMBER]
 
int64_t timestamp
 
Fragment Stuff
unsigned int fragment:1
 Indicates that the tile is fragmented. Normally not used (only for Bluefish444).
 
unsigned int last_fragment:1
 Used only if (fragment == 1). Indicates this is the last fragment.
 
unsigned int frame_fragment_id:14
 Used only if (fragment == 1). ID of the frame. Fragments of same frame must have the same ID.
 

Detailed Description

Struct video_frame represents a video frame and contains video description.

Definition at line 305 of file types.h.

Member Data Documentation

◆ [union]

union { ... } video_frame

◆ callbacks

struct video_frame_callbacks video_frame::callbacks

◆ color_spec

codec_t video_frame::color_spec

Definition at line 306 of file types.h.

Referenced by border_postprocess(), buf_get_linesizes(), buf_get_planes(), cf_crop_filter(), cf_deinterlace_filter(), cf_text_filter(), check_for_slave_format_change(), check_in_format(), common_get_out_desc(), common_postprocess_reconfigure(), convert_memcpy(), crop_postprocess(), deinterlace_postprocess(), delay_postprocess(), display_aggregate_reconfigure(), display_aja_putf(), display_decklink_putf(), display_deltacast_reconfigure(), display_drm_putf(), display_dummy_putf(), display_dump_getf(), display_dvs_init(), display_dvs_reconfigure(), display_frame(), display_frame(), display_sage_reconfigure(), display_sage_run(), display_sdl2_putf(), draw_frame(), drm_fb_from_frame(), fec_thread(), filter(), filter(), filter(), filter(), filter(), filter(), filter(), filter(), filter(), format_video_header(), get_16_bit_pnm_data(), get_copy(), get_packet_sizes(), get_splashscreen(), initialize(), interlace_get_out_desc(), interlace_postprocess(), interlaced_3d_get_out_desc(), interlaced_3d_postprocess(), interlaced_3d_postprocess_reconfigure(), ipc_frame_from_ug_frame(), ipc_frame_from_ug_frame_hq(), ipc_frame_new(), load_texture(), master_worker(), parallel_conv(), parse_config_string(), perform_bob(), perform_df(), perform_linear(), process_video_pkt(), FrameUploader::put_frame(), pw_frame_to_uv_frame_memcpy(), reconfigure_if_needed(), save_video_frame(), save_video_frame_as_pnm(), save_video_frame_as_y4m(), scale_get_out_desc(), scale_postprocess(), scale_reconfigure(), set_display_mode_properties(), slave_worker(), split_get_out_desc(), split_postprocess_reconfigure(), text_postprocess(), upload_to_cuda_buf(), vf_alloc_desc(), vf_clear(), vf_split(), vidcap_aggregate_grab(), vidcap_deltacast_init(), vidcap_dshow_grab(), vidcap_dvs_init(), vidcap_rtsp_grab(), vidcap_screen_osx_grab(), vidcap_swmix_init(), vidcap_testcard_init(), video_desc_from_frame(), video_export(), vo_postprocess(), wait_for_channel(), and worker().

◆ compress_end

int64_t video_frame::compress_end

in ns from epoch

Definition at line 339 of file types.h.

Referenced by j2k_compress_pop().

◆ compress_start

int64_t video_frame::compress_start

in ns from epoch

Definition at line 338 of file types.h.

Referenced by compress_frame().

◆ decoder_overrides_data_len

unsigned int video_frame::decoder_overrides_data_len

Definition at line 322 of file types.h.

Referenced by decompress_thread(), and display_dump_reconfigure().

◆ duration

uint32_t video_frame::duration

used by file cap

Definition at line 336 of file types.h.

Referenced by get_audio(), process_video_pkt(), vidcap_file_process_audio_pkt(), and vidcap_file_worker().

◆ fec_params

struct fec_desc video_frame::fec_params

◆ flags

int video_frame::flags

◆ fps

◆ fragment

unsigned int video_frame::fragment

Indicates that the tile is fragmented. Normally not used (only for Bluefish444).

Definition at line 315 of file types.h.

Referenced by tx_send(), tx_send_h264(), tx_send_jpeg(), vidcap_bluefish444_grab(), and worker().

◆ frame_fragment_id

unsigned int video_frame::frame_fragment_id

Used only if (fragment == 1). ID of the frame. Fragments of same frame must have the same ID.

Definition at line 319 of file types.h.

Referenced by tx_send(), vidcap_bluefish444_grab(), and worker().

◆ frame_type

frame_type_t video_frame::frame_type

Definition at line 309 of file types.h.

Referenced by decode_frame_h264(), and process_nal().

◆ interlacing

◆ last_fragment

unsigned int video_frame::last_fragment

Used only if (fragment == 1). Indicates this is the last fragment.

Definition at line 317 of file types.h.

Referenced by tx_send(), vidcap_bluefish444_grab(), and worker().

◆ mem_location

enum mem_location_t video_frame::mem_location

Definition at line 310 of file types.h.

◆ seq

uint32_t video_frame::seq

seq num, used internally by JPEG enc, file cap

Definition at line 333 of file types.h.

Referenced by get_audio(), process_video_pkt(), vidcap_file_process_audio_pkt(), and vidcap_file_worker().

◆ ssrc

uint32_t video_frame::ssrc

◆ tile_count

◆ tiles

struct tile video_frame::tiles[FLEXIBLE_ARRAY_MEMBER]

Definition at line 345 of file types.h.

Referenced by av_frame::av_frame(), av_frame::~av_frame(), allocate_result_frame(), border_postprocess(), cf_deinterlace_filter(), cf_text_filter(), check_in_format(), cineform_compress_push(), common_getf(), common_postprocess(), convert_BGRA_RGBA(), convert_memcpy(), convert_P216_Y216(), create_jpeg_frame(), crop_postprocess(), video_frame_pool::impl::deallocate_frame(), decode_frame_h264(), decode_frame_jpeg(), decode_video_frame(), decompress_thread(), deinterlace_postprocess(), delay_postprocess(), delete_frame(), display_aggregate_getf(), display_aja_putf(), display_blend_run(), display_decklink_getf(), display_decklink_putf(), display_dummy_putf(), display_dump_getf(), display_dump_reconfigure(), display_file_getf(), display_frame(), display_frame(), display_gl_init_opengl(), display_multiplier_worker(), display_ndi_putf(), display_sdl2_putf(), display_unix_sock_run(), display_v4l2_getf(), do_gpu_copy(), download_stitched(), draw_frame(), rs::encode(), fill_coded_frame_from_sps(), filter(), filter(), filter(), filter(), filter(), filter(), filter(), filter(), filter(), filter(), filter(), filter(), filter(), filter(), format_video_header(), get_16_bit_pnm_data(), get_copy(), get_copy(), video_frame_pool::impl::get_frame(), get_packet_rate(), get_packet_sizes(), video_frame_pool::impl::get_pod_frame(), get_splashscreen(), get_sps_pps_frame(), display_bluefish444_state::getf(), gl_process_frames(), hw_drm_recycle_callback(), hw_vdpau_copy_callback(), hw_vdpau_recycle_callback(), init_slave_data(), interlace_postprocess(), ipc_frame_from_ug_frame(), ipc_frame_from_ug_frame_hq(), j2k_compress_pop(), j2k_compressed_frame_dispose(), Texture::load_frame(), load_texture(), load_video_frame(), loadSplashscreen(), map_new_buffer(), master_worker(), ndi_disp_convert_Y216_to_P216(), ndi_disp_convert_Y416_to_PA16(), parallel_conv(), perform_bob(), perform_df(), perform_linear(), postprocess_frame(), ultragrid::aja::display::process_frames(), process_video_pkt(), FrameUploader::put_frame(), display_bluefish444_state::putf(), pw_frame_to_uv_frame_memcpy(), ihdtv_video_rxtx::receiver_loop(), loopback_video_rxtx::receiver_loop(), reconfigure_if_needed(), recreate_textures(), recycle_frame(), render_slave(), result_data_delete(), save_video_frame(), save_video_frame_as_pnm(), save_video_frame_as_y4m(), scale_done(), scale_postprocess(), scale_reconfigure(), sage_video_rxtx::send_frame(), set_display_mode_properties(), slave_worker(), text_postprocess(), tx_send_base(), tx_send_h264(), tx_send_jpeg(), tx_update(), upload_to_cuda_buf(), vf_aligned_data_deleter(), vf_alloc(), vf_alloc_desc(), vf_alloc_desc_data(), vf_clear(), vf_data_deleter(), vf_get_copy(), vf_get_data_len(), vf_get_tile(), vf_separate_tiles(), vf_split(), vidcap_bitflow_grab(), vidcap_bluefish444_grab(), vidcap_decklink_grab(), vidcap_deltacast_dvi_grab(), vidcap_dshow_grab(), vidcap_import_grab(), vidcap_ndi_grab(), vidcap_rtsp_grab(), vidcap_spout_grab(), vidcap_swmix_grab(), vidcap_swmix_init(), vidcap_testcard2_grab(), vidcap_testcard_init(), vidcap_v4l2_dispose_video_frame(), vidcap_v4l2_grab(), vidcap_ximea_grab(), video_desc_from_frame(), video_export(), vo_postprocess(), worker(), worker(), worker(), write_sps_pps(), and write_video_frame().

◆ timecode

uint32_t video_frame::timecode

BCD timecode (hrs, min, sec, frm num)

Definition at line 335 of file types.h.

Referenced by vidcap_decklink_grab().

◆ timestamp

int64_t video_frame::timestamp

frame timestamp, monotonous on the sender, wraps-around at 2^32 on receiver

Definition at line 331 of file types.h.

Referenced by audio_play_alsa_put_frame(), decode_video_frame(), decompress_thread(), display_decklink_putf(), sdi_capture_new_incoming_frame(), tx_send(), vidcap_decklink_grab(), vidcap_file_grab(), and vidcap_rtsp_thread().


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