49 uint8_t reserved_000000;
50 uint8_t c_not_y_channel_flag;
52 uint16_t horizontal_offset;
56 uint16_t *user_data_words;
57 uint16_t checksum_word;
65 uint32_t packet_start_code_prefix;
67 uint16_t PES_packet_length;
69 uint8_t PES_scrambling_control;
71 uint8_t data_alignment_indicator;
73 uint8_t original_or_copy;
74 uint8_t PTS_DTS_flags;
77 uint8_t DSM_trick_mode_flag;
78 uint8_t additional_copy_info_flag;
80 uint8_t PES_extension_flag;
81 uint8_t PES_header_data_length;
82 uint8_t reserved_0010;
139 struct klbs_context_s *bs;
int klvanc_smpte2038_packetizer_begin(struct klvanc_smpte2038_packetizer_s *ctx)
Initialize state, typically done at the beginning of each incoming SDI frame must be done before att...
int klvanc_smpte2038_packetizer_end(struct klvanc_smpte2038_packetizer_s *ctx, uint64_t pts)
Finalize VANC collection state. Typically done when the last VANC line in a frame has been passed to...
int klvanc_smpte2038_parse_pes_payload(uint8_t *payload, unsigned int byteCount, struct klvanc_smpte2038_anc_data_packet_s **result)
Inspect a section payload. This function is identical to klvanc_smpte2038_parse_pes_packet(), except it takes just the payload section of a section, rather than the full section which would include the section headers (e.g. start code prefix, stream id, etc). This routine is for use in cases where the calling application is responsible for parsing the PES and only hands off the payload section to decoders (such as the mpegts demux in libavformat). Callers must release the returned struct using klvanc_smpte2038_anc_data_packet_free().
void klvanc_smpte2038_anc_data_packet_dump(struct klvanc_smpte2038_anc_data_packet_s *h)
Inspect structure and output textual information to console.
int klvanc_smpte2038_packetizer_alloc(struct klvanc_smpte2038_packetizer_s **ctx)
Allocate a context so we can use this with the rest of the library.
TODO - Brief description goes here.
Definition: smpte2038.h:133
int klvanc_smpte2038_packetizer_append(struct klvanc_smpte2038_packetizer_s *ctx, struct klvanc_packet_header_s *pkt)
TODO - Brief description goes here.
TODO - Brief description goes here.
Definition: smpte2038.h:63
TODO - Brief description goes here.
Definition: smpte2038.h:42
void klvanc_smpte2038_anc_data_packet_free(struct klvanc_smpte2038_anc_data_packet_s *pkt)
Deallocate and release a previously allocated pkt, see klvanc_smpte2038_parse_section().
int klvanc_smpte2038_parse_pes_packet(uint8_t *section, unsigned int byteCount, struct klvanc_smpte2038_anc_data_packet_s **result)
Inspect a section, if its deemed valid, create a VANC packet and return it to the caller...
void klvanc_smpte2038_packetizer_free(struct klvanc_smpte2038_packetizer_s **ctx)
Deallocate and release a previously allocated context, see klvanc_smpte2038_packetizer_alloc().
int klvanc_smpte2038_convert_line_to_words(struct klvanc_smpte2038_anc_data_line_s *l, uint16_t **words, uint16_t *wordCount)
Convert type struct klvanc_smpte2038_anc_data_line_s into a more traditional line of vanc words...
VANC Headers and packet structure.