# context_t Struct Reference

`#include <video_decode.h>`

List of all members.

## Public Attributes

NvVideoDecoder * | dec
NvVideoConverter * | conv
uint32_t | decoder_pixfmt
NvEglRenderer * | renderer
char * | in_file_path
std::ifstream * | in_file
char * | out_file_path
std::ofstream * | out_file
bool | disable_rendering
bool | fullscreen
uint32_t | window_height
uint32_t | window_width
uint32_t | window_x
uint32_t | window_y
uint32_t | out_pixfmt
float | fps
bool | disable_dpb
bool | input_nalu
bool | stats
bool | enable_metadata
enum v4l2_skip_frames_type | skip_frames
std::queue< NvBuffer * > * | conv_output_plane_buf_queue
pthread_mutex_t | queue_lock
pthread_cond_t | queue_cond
pthread_t | dec_capture_loop
bool | got_error
bool | got_eos
NvVideoEncoder * | enc
uint32_t | encoder_pixfmt
uint32_t | width
uint32_t | height
char * | ROI_Param_file_path
std::ifstream * | roi_Param_file
uint32_t | bitrate
uint32_t | profile
enum v4l2_mpeg_video_bitrate_mode | ratecontrol
uint32_t | iframe_interval
uint32_t | idr_interval
enum v4l2_mpeg_video_h264_level | level
uint32_t | fps_n
uint32_t | fps_d
enum v4l2_enc_temporal_tradeoff_level_type | temporal_tradeoff_level
v4l2_enc_slice_length_type | slice_length_type
uint32_t | slice_length
uint32_t | virtual_buffer_size
uint32_t | num_reference_frames
uint32_t | slice_intrarefresh_interval
uint32_t | num_b_frames
uint32_t | nMinQpI
uint32_t | nMaxQpI
uint32_t | nMinQpP
uint32_t | nMaxQpP
uint32_t | nMinQpB
uint32_t | nMaxQpB
bool | insert_sps_pps_at_idr
bool | report_metadata
bool | dump_mv
std::stringstream * | runtime_params_str
uint32_t | next_param_change_frame
void * | nvosd_context
EGLDisplay | egl_display
EGLImageKHR | egl_image
uint32_t | dec_width
uint32_t | dec_height
bool | enable_osd
char * | osd_file_path
std::ifstream * | osd_file
NvOSD_RectParams | g_rect [MAX_RECT_NUM]
int | g_rect_num
EGLDisplay | eglDisplay
EGLImageKHR | eglimg
queue< Shared_Buffer > * | gie_buf_queue
pthread_mutex_t | gie_lock
pthread_cond_t | gie_cond
int | gie_stop
pthread_t | gie_thread_handle
GIE_Context * | gie_ctx
string | deployfile
string | modelfile
NvJPEGEncoder * | jpegenc
uint32_t | in_width
uint32_t | in_height
uint32_t | in_pixfmt
bool | use_fd
uint32_t | crop_left
uint32_t | crop_top
uint32_t | crop_width
uint32_t | crop_height
NvJPEGDecoder * | jpegdec
uint64_t | in_file_size
unsigned char * | in_buffer
int | out_fd
NvVideoConverter * | conv0
NvVideoConverter * | conv1
uint32_t | in_buftype
uint32_t | out_width
uint32_t | out_height
uint32_t | out_buftype
std::queue< NvBuffer * > * | conv1_output_plane_buf_queue
enum v4l2_flip_method | flip_method
enum v4l2_interpolation_method | interpolation_method
enum v4l2_tnr_algorithm | tnr_algorithm
struct v4l2_rect | crop_rect
uint32_t | channel
uint32_t | dec_status
bool | do_stat
uint32_t | cpu_occupation_option
map< uint64_t, frame_info_t * > * | frame_info_map
window_t | window [WINDOW_NUM]
pthread_mutex_t | fps_lock
pthread_cond_t | fps_cond
pthread_t | dec_feed_handle
pthread_t | render_feed_handle
std::queue< Shared_Buffer > * | render_buf_queue
int | stop_render
pthread_mutex_t | render_lock
pthread_cond_t | render_cond
sem_t | dec_run_sem

## Detailed Description

Definition at line 36 of file video_decode.h.

## Member Data Documentation

uint32_t context_t::bitrate

Definition at line 51 of file video_encode.h.

uint32_t context_t::channel

Definition at line 132 of file v4l2_backend_test.h.

NvVideoConverter * context_t::conv

Definition at line 39 of file video_decode.h.

NvVideoConverter* context_t::conv0

Definition at line 40 of file video_convert.h.

NvVideoConverter* context_t::conv1

Definition at line 41 of file video_convert.h.

std::queue< NvBuffer * >* context_t::conv1_output_plane_buf_queue

Definition at line 57 of file video_convert.h.

std::queue< NvBuffer * > * context_t::conv_output_plane_buf_queue

Definition at line 68 of file video_decode.h.

uint32_t context_t::cpu_occupation_option

Definition at line 155 of file v4l2_backend_test.h.

uint32_t context_t::crop_height

Definition at line 55 of file jpeg_encode.h.

uint32_t context_t::crop_left

Definition at line 52 of file jpeg_encode.h.

struct v4l2_rect context_t::crop_rect `[read]`

Definition at line 65 of file video_convert.h.

uint32_t context_t::crop_top

Definition at line 53 of file jpeg_encode.h.

uint32_t context_t::crop_width

Definition at line 54 of file jpeg_encode.h.

NvVideoDecoder * context_t::dec

Definition at line 38 of file video_decode.h.

pthread_t context_t::dec_capture_loop

Definition at line 72 of file video_decode.h.

pthread_t context_t::dec_feed_handle

Definition at line 191 of file v4l2_backend_test.h.

uint32_t context_t::dec_height

Definition at line 62 of file videodec.h.

sem_t context_t::dec_run_sem

Definition at line 200 of file v4l2_backend_test.h.

uint32_t context_t::dec_status

Definition at line 133 of file v4l2_backend_test.h.

uint32_t context_t::dec_width

Definition at line 61 of file videodec.h.

uint32_t context_t::decoder_pixfmt

Definition at line 40 of file video_decode.h.

string context_t::deployfile

Definition at line 80 of file video_dec_gie.h.

bool context_t::disable_dpb

Definition at line 59 of file video_decode.h.

bool context_t::disable_rendering

Definition at line 50 of file video_decode.h.

bool context_t::do_stat

Definition at line 152 of file v4l2_backend_test.h.

bool context_t::dump_mv

Definition at line 76 of file video_encode.h.

EGLDisplay context_t::egl_display

Definition at line 56 of file videodec.h.

EGLImageKHR context_t::egl_image

Definition at line 57 of file videodec.h.

EGLDisplay context_t::eglDisplay

Definition at line 53 of file video_cuda_enc.h.

EGLImageKHR context_t::eglimg

Definition at line 54 of file video_cuda_enc.h.

bool context_t::enable_metadata

Definition at line 65 of file video_decode.h.

bool context_t::enable_osd

Definition at line 72 of file videodec.h.

NvVideoEncoder * context_t::enc

Definition at line 36 of file video_encode.h.

uint32_t context_t::encoder_pixfmt

Definition at line 37 of file video_encode.h.

enum v4l2_flip_method context_t::flip_method

Definition at line 61 of file video_convert.h.

float context_t::fps

Definition at line 57 of file video_decode.h.

pthread_cond_t context_t::fps_cond

Definition at line 181 of file v4l2_backend_test.h.

uint32_t context_t::fps_d

Definition at line 58 of file video_encode.h.

pthread_mutex_t context_t::fps_lock

Definition at line 180 of file v4l2_backend_test.h.

uint32_t context_t::fps_n

Definition at line 57 of file video_encode.h.

map< uint64_t, frame_info_t* >* context_t::frame_info_map

Definition at line 171 of file v4l2_backend_test.h.

bool context_t::fullscreen

Definition at line 51 of file video_decode.h.

NvOSD_RectParams context_t::g_rect[MAX_RECT_NUM]

Definition at line 75 of file videodec.h.

int context_t::g_rect_num

Definition at line 76 of file videodec.h.

queue<Shared_Buffer>* context_t::gie_buf_queue

Definition at line 61 of file video_dec_gie.h.

pthread_cond_t context_t::gie_cond

Definition at line 63 of file video_dec_gie.h.

GIE_Context* context_t::gie_ctx

Definition at line 66 of file video_dec_gie.h.

pthread_mutex_t context_t::gie_lock

Definition at line 62 of file video_dec_gie.h.

int context_t::gie_stop

Definition at line 64 of file video_dec_gie.h.

pthread_t context_t::gie_thread_handle

Definition at line 65 of file video_dec_gie.h.

bool context_t::got_eos

Definition at line 74 of file video_decode.h.

bool context_t::got_error

Definition at line 73 of file video_decode.h.

uint32_t context_t::height

Definition at line 43 of file video_encode.h.

uint32_t context_t::idr_interval

Definition at line 55 of file video_encode.h.

uint32_t context_t::iframe_interval

Definition at line 54 of file video_encode.h.

unsigned char* context_t::in_buffer

Definition at line 43 of file jpeg_decode.h.

uint32_t context_t::in_buftype

Definition at line 48 of file video_convert.h.

std::ifstream * context_t::in_file

Definition at line 45 of file video_decode.h.

char * context_t::in_file_path

Definition at line 44 of file video_decode.h.

uint64_t context_t::in_file_size

Definition at line 42 of file jpeg_decode.h.

uint32_t context_t::in_height

Definition at line 43 of file jpeg_encode.h.

uint32_t context_t::in_pixfmt

Definition at line 44 of file jpeg_encode.h.

uint32_t context_t::in_width

Definition at line 42 of file jpeg_encode.h.

bool context_t::input_nalu

Definition at line 61 of file video_decode.h.

bool context_t::insert_sps_pps_at_idr

Definition at line 73 of file video_encode.h.

enum v4l2_interpolation_method context_t::interpolation_method

Definition at line 62 of file video_convert.h.

NvJPEGDecoder* context_t::jpegdec

Definition at line 38 of file jpeg_decode.h.

NvJPEGEncoder* context_t::jpegenc

Definition at line 38 of file jpeg_encode.h.

enum v4l2_mpeg_video_h264_level context_t::level

Definition at line 56 of file video_encode.h.

string context_t::modelfile

Definition at line 81 of file video_dec_gie.h.

uint32_t context_t::next_param_change_frame

Definition at line 79 of file video_encode.h.

uint32_t context_t::nMaxQpB

Definition at line 72 of file video_encode.h.

uint32_t context_t::nMaxQpI

Definition at line 68 of file video_encode.h.

uint32_t context_t::nMaxQpP

Definition at line 70 of file video_encode.h.

uint32_t context_t::nMinQpB

Definition at line 71 of file video_encode.h.

uint32_t context_t::nMinQpI

Definition at line 67 of file video_encode.h.

uint32_t context_t::nMinQpP

Definition at line 69 of file video_encode.h.

uint32_t context_t::num_b_frames

Definition at line 66 of file video_encode.h.

uint32_t context_t::num_reference_frames

Definition at line 64 of file video_encode.h.

void * context_t::nvosd_context

Definition at line 47 of file videodec.h.

std::ifstream* context_t::osd_file

Definition at line 74 of file videodec.h.

char* context_t::osd_file_path

Definition at line 73 of file videodec.h.

uint32_t context_t::out_buftype

Definition at line 55 of file video_convert.h.

int context_t::out_fd

Definition at line 48 of file jpeg_decode.h.

std::ofstream * context_t::out_file

Definition at line 48 of file video_decode.h.

char * context_t::out_file_path

Definition at line 47 of file video_decode.h.

uint32_t context_t::out_height

Definition at line 53 of file video_convert.h.

uint32_t context_t::out_pixfmt

Definition at line 56 of file video_decode.h.

uint32_t context_t::out_width

Definition at line 52 of file video_convert.h.

uint32_t context_t::profile

Definition at line 52 of file video_encode.h.

pthread_cond_t context_t::queue_cond

Definition at line 70 of file video_decode.h.

pthread_mutex_t context_t::queue_lock

Definition at line 69 of file video_decode.h.

enum v4l2_mpeg_video_bitrate_mode context_t::ratecontrol

Definition at line 53 of file video_encode.h.

std::queue<Shared_Buffer>* context_t::render_buf_queue

Definition at line 193 of file v4l2_backend_test.h.

pthread_cond_t context_t::render_cond

Definition at line 197 of file v4l2_backend_test.h.

pthread_t context_t::render_feed_handle

Definition at line 192 of file v4l2_backend_test.h.

pthread_mutex_t context_t::render_lock

Definition at line 196 of file v4l2_backend_test.h.

NvEglRenderer * context_t::renderer

Definition at line 42 of file video_decode.h.

bool context_t::report_metadata

Definition at line 75 of file video_encode.h.

std::ifstream* context_t::roi_Param_file

Definition at line 49 of file video_encode.h.

char* context_t::ROI_Param_file_path

Definition at line 48 of file video_encode.h.

std::stringstream* context_t::runtime_params_str

Definition at line 78 of file video_encode.h.

enum v4l2_skip_frames_type context_t::skip_frames

Definition at line 66 of file video_decode.h.

uint32_t context_t::slice_intrarefresh_interval

Definition at line 65 of file video_encode.h.

uint32_t context_t::slice_length

Definition at line 62 of file video_encode.h.

v4l2_enc_slice_length_type context_t::slice_length_type

Definition at line 61 of file video_encode.h.

bool context_t::stats

Definition at line 63 of file video_decode.h.

int context_t::stop_render

Definition at line 194 of file v4l2_backend_test.h.

enum v4l2_enc_temporal_tradeoff_level_type context_t::temporal_tradeoff_level

Definition at line 60 of file video_encode.h.

enum v4l2_tnr_algorithm context_t::tnr_algorithm

Definition at line 63 of file video_convert.h.

bool context_t::use_fd

Definition at line 50 of file jpeg_encode.h.

uint32_t context_t::virtual_buffer_size

Definition at line 63 of file video_encode.h.

uint32_t context_t::width

Definition at line 42 of file video_encode.h.

window_t context_t::window[WINDOW_NUM]

Definition at line 172 of file v4l2_backend_test.h.

uint32_t context_t::window_height

Definition at line 52 of file video_decode.h.

uint32_t context_t::window_width

Definition at line 53 of file video_decode.h.

uint32_t context_t::window_x

Definition at line 54 of file video_decode.h.

uint32_t context_t::window_y

Definition at line 55 of file video_decode.h.

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

- samples/00_video_decode/video_decode.h
- samples/01_video_encode/video_encode.h
- samples/02_video_dec_cuda/videodec.h
- samples/03_video_cuda_enc/video_cuda_enc.h
- samples/04_video_dec_gie/video_dec_gie.h
- samples/05_jpeg_encode/jpeg_encode.h
- samples/06_jpeg_decode/jpeg_decode.h
- samples/07_video_convert/video_convert.h
- samples/backend/v4l2_backend_test.h