Doxygen Book
_GstDataRepoSrc Struct Reference

GstDataRepoSrc data structure. More...

#include <gstdatareposrc.h>

Collaboration diagram for _GstDataRepoSrc:

Public Attributes

GstPushSrc parent
 
GstPad * src_pad
 
gboolean is_start
 
gboolean successful_read
 
gint fd
 
gint file_size
 
guint64 read_position
 
guint64 fd_offset
 
guint64 start_offset
 
guint64 last_offset
 
gsize tensors_size [NNS_TENSOR_SIZE_LIMIT]
 
gsize tensors_offset [NNS_TENSOR_SIZE_LIMIT]
 
gint current_sample_index
 
gboolean first_epoch_is_done
 
guint total_samples
 
guint num_samples
 
gsize sample_size
 
GstDataRepoDataType data_type
 
gchar * filename
 
gchar * json_filename
 
gchar * tensors_seq_str
 
guint start_sample_index
 
guint stop_sample_index
 
guint epochs
 
gboolean is_shuffle
 
GArray * shuffled_index_array
 
guint array_index
 
guint tensors_seq [NNS_TENSOR_SIZE_LIMIT]
 
guint tensors_seq_cnt
 
gboolean need_changed_caps
 
GstCaps * caps
 
GstTensorsConfig config
 
JsonArray * sample_offset_array
 
JsonArray * tensor_size_array
 
JsonArray * tensor_count_array
 
JsonParser * parser
 
guint sample_offset_array_len
 
guint tensor_size_array_len
 
guint tensor_count_array_len
 
GstClockTime running_time
 
gint rate_n
 
gint rate_d
 
guint64 n_frame
 

Detailed Description

GstDataRepoSrc data structure.

Definition at line 41 of file gstdatareposrc.h.

Member Data Documentation

◆ array_index

guint _GstDataRepoSrc::array_index

element index of shuffled_index_array

Definition at line 73 of file gstdatareposrc.h.

◆ caps

GstCaps* _GstDataRepoSrc::caps

optional property, datareposrc should get data format from JSON file caps field

Definition at line 78 of file gstdatareposrc.h.

◆ config

GstTensorsConfig _GstDataRepoSrc::config

tensors information from current caps

Definition at line 81 of file gstdatareposrc.h.

◆ current_sample_index

gint _GstDataRepoSrc::current_sample_index

current index of sample or file to read

Definition at line 56 of file gstdatareposrc.h.

◆ data_type

GstDataRepoDataType _GstDataRepoSrc::data_type

media type

Definition at line 61 of file gstdatareposrc.h.

◆ epochs

guint _GstDataRepoSrc::epochs

repetition of range of files or samples to read

Definition at line 69 of file gstdatareposrc.h.

◆ fd

gint _GstDataRepoSrc::fd

open file descriptor

Definition at line 48 of file gstdatareposrc.h.

◆ fd_offset

guint64 _GstDataRepoSrc::fd_offset

offset of fd

Definition at line 51 of file gstdatareposrc.h.

◆ file_size

gint _GstDataRepoSrc::file_size

file size, in bytes

Definition at line 49 of file gstdatareposrc.h.

◆ filename

gchar* _GstDataRepoSrc::filename

filename

Definition at line 64 of file gstdatareposrc.h.

◆ first_epoch_is_done

gboolean _GstDataRepoSrc::first_epoch_is_done

Definition at line 57 of file gstdatareposrc.h.

◆ is_shuffle

gboolean _GstDataRepoSrc::is_shuffle

shuffle the sample index

Definition at line 70 of file gstdatareposrc.h.

◆ is_start

gboolean _GstDataRepoSrc::is_start

check if datareposrc is started

Definition at line 46 of file gstdatareposrc.h.

◆ json_filename

gchar* _GstDataRepoSrc::json_filename

json filename containing meta information of the filename

Definition at line 65 of file gstdatareposrc.h.

◆ last_offset

guint64 _GstDataRepoSrc::last_offset

last offset to read

Definition at line 53 of file gstdatareposrc.h.

◆ n_frame

guint64 _GstDataRepoSrc::n_frame

Definition at line 92 of file gstdatareposrc.h.

◆ need_changed_caps

gboolean _GstDataRepoSrc::need_changed_caps

When tensors-sequence changes, caps need to be changed

Definition at line 77 of file gstdatareposrc.h.

◆ num_samples

guint _GstDataRepoSrc::num_samples

The number of samples to be used out of the total samples in the file

Definition at line 59 of file gstdatareposrc.h.

◆ parent

GstPushSrc _GstDataRepoSrc::parent

parent object

Definition at line 43 of file gstdatareposrc.h.

◆ parser

JsonParser* _GstDataRepoSrc::parser

Keep JSON data after parsing JSON file

Definition at line 85 of file gstdatareposrc.h.

◆ rate_d

gint _GstDataRepoSrc::rate_d

Definition at line 91 of file gstdatareposrc.h.

◆ rate_n

gint _GstDataRepoSrc::rate_n

Definition at line 91 of file gstdatareposrc.h.

◆ read_position

guint64 _GstDataRepoSrc::read_position

position of fd

Definition at line 50 of file gstdatareposrc.h.

◆ running_time

GstClockTime _GstDataRepoSrc::running_time

one frame running time

Definition at line 90 of file gstdatareposrc.h.

◆ sample_offset_array

JsonArray* _GstDataRepoSrc::sample_offset_array

offset array of sample

Definition at line 82 of file gstdatareposrc.h.

◆ sample_offset_array_len

guint _GstDataRepoSrc::sample_offset_array_len

Definition at line 86 of file gstdatareposrc.h.

◆ sample_size

gsize _GstDataRepoSrc::sample_size

size of one sample

Definition at line 60 of file gstdatareposrc.h.

◆ shuffled_index_array

GArray* _GstDataRepoSrc::shuffled_index_array

shuffled sample index array

Definition at line 72 of file gstdatareposrc.h.

◆ src_pad

GstPad* _GstDataRepoSrc::src_pad

Definition at line 44 of file gstdatareposrc.h.

◆ start_offset

guint64 _GstDataRepoSrc::start_offset

start offset to read

Definition at line 52 of file gstdatareposrc.h.

◆ start_sample_index

guint _GstDataRepoSrc::start_sample_index

start index of sample to read, in case of image, the starting index of the numbered files

Definition at line 67 of file gstdatareposrc.h.

◆ stop_sample_index

guint _GstDataRepoSrc::stop_sample_index

stop index of sample to read, in case of image, the stoppting index of the numbered files

Definition at line 68 of file gstdatareposrc.h.

◆ successful_read

gboolean _GstDataRepoSrc::successful_read

used for checking EOS when reading more than one images(multi-files) from a path

Definition at line 47 of file gstdatareposrc.h.

◆ tensor_count_array

JsonArray* _GstDataRepoSrc::tensor_count_array

array for the number of cumulative tensors

Definition at line 84 of file gstdatareposrc.h.

◆ tensor_count_array_len

guint _GstDataRepoSrc::tensor_count_array_len

Definition at line 88 of file gstdatareposrc.h.

◆ tensor_size_array

JsonArray* _GstDataRepoSrc::tensor_size_array

size array of flexible tensor to be stored in a Gstbuffer

Definition at line 83 of file gstdatareposrc.h.

◆ tensor_size_array_len

guint _GstDataRepoSrc::tensor_size_array_len

Definition at line 87 of file gstdatareposrc.h.

◆ tensors_offset

gsize _GstDataRepoSrc::tensors_offset[NNS_TENSOR_SIZE_LIMIT]

each tensors offset in a sample

Definition at line 55 of file gstdatareposrc.h.

◆ tensors_seq

guint _GstDataRepoSrc::tensors_seq[NNS_TENSOR_SIZE_LIMIT]

tensors sequence in a sample that will be read into gstbuffer

Definition at line 75 of file gstdatareposrc.h.

◆ tensors_seq_cnt

guint _GstDataRepoSrc::tensors_seq_cnt

Definition at line 76 of file gstdatareposrc.h.

◆ tensors_seq_str

gchar* _GstDataRepoSrc::tensors_seq_str

tensors in a sample are read into gstBuffer according to tensors_sequence

Definition at line 66 of file gstdatareposrc.h.

◆ tensors_size

gsize _GstDataRepoSrc::tensors_size[NNS_TENSOR_SIZE_LIMIT]

each tensors size in a sample

Definition at line 54 of file gstdatareposrc.h.

◆ total_samples

guint _GstDataRepoSrc::total_samples

The number of total samples

Definition at line 58 of file gstdatareposrc.h.


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