upipe-framers/upipe_h26x_common.h header reference
Common framer functions for H.26x More
Header inclusion
Members
Type
- struct upipe_h26xf_stream
Functions
- struct ubuf * upipe_h26xf_alloc_annexb(struct ubuf_mgr *ubuf_mgr)
- int upipe_h26xf_convert_frame(struct uref *uref, enum uref_h26x_encaps encaps_input, enum uref_h26x_encaps encaps_output, struct ubuf_mgr *ubuf_mgr, struct ubuf *annexb_header)
- int upipe_h26xf_stream_get(struct ubuf_block_stream *s, uint8_t *octet_p)
Constant
- const struct urational upipe_h26xf_sar_from_idc[17]
Macro
Description
Common framer functions for H.26x
Members detail
This macro is declared in upipe-framers/upipe_h26x_common.h source file, line 26.
This function is declared in upipe-framers/upipe_h26x_common.h source file, line 95.
This function allocates a ubuf containing an annex B header.
Parameter list:
- ubuf_mgr: pointer to ubuf manager
The return value is pointer to ubuf containing an annex B header
int upipe_h26xf_convert_frame(struct uref *uref, enum uref_h26x_encaps encaps_input, enum uref_h26x_encaps encaps_output, struct ubuf_mgr *ubuf_mgr, struct ubuf *annexb_header)
This function is declared in upipe-framers/upipe_h26x_common.h source file, line 109.
This function converts a frame from an encapsulation to another.
Parameter list:
- upipe: description structure of the pipe
- uref: pointer to uref
- encaps_input: input H26x encapsulation
- encaps_output: output H26x encapsulation
- ubuf_mgr: ubuf manager
- annexb_header: pointer to ubuf containing an annex B startcode
The return value is an error code
const struct urational upipe_h26xf_sar_from_idc[17]
This variable is declared in upipe-framers/upipe_h26x_common.h source file, line 43.
This variable translates the h26x aspect_ratio_idc to urational
This struct is declared in upipe-framers/upipe_h26x_common.h source file, line 46.
This struct allows to skip escape words from NAL units.
Field | Description |
---|---|
uint8_t zeros; | positions of the 0s in the previous octets |
struct ubuf_block_stream s; | standard octet stream |
This macro is declared in upipe-framers/upipe_h26x_common.h source file, line 72.
This macro fills the bit stream cache with at least the given number of bits.
Parameter list:
- s: helper structure
- nb: number of bits to ensure
int upipe_h26xf_stream_get(struct ubuf_block_stream *s, uint8_t *octet_p)
This function is declared in upipe-framers/upipe_h26x_common.h source file, line 66.
This function gets the next octet in the ubuf while bypassing escape words.
Parameter list:
- s: helper structure
- ubuf: pointer to block ubuf
- octet_p: reference to returned value
The return value is an error code
void upipe_h26xf_stream_init(struct upipe_h26xf_stream *f)
This function is for internal use only.
This function is declared in upipe-framers/upipe_h26x_common.h source file, line 57.
This function initializes the helper structure for octet stream.
Parameter list:
- f: helper structure
int32_t upipe_h26xf_stream_se(struct ubuf_block_stream *s)
This function is for internal use only.
This function is declared in upipe-framers/upipe_h26x_common.h source file, line 88.
This function reads a signed exp-golomb code from a stream.
Parameter list:
- s: ubuf block stream
The return value is code read
uint32_t upipe_h26xf_stream_ue(struct ubuf_block_stream *s)
This function is for internal use only.
This function is declared in upipe-framers/upipe_h26x_common.h source file, line 81.
This function reads an unsigned exp-golomb code from a stream.
Parameter list:
- s: ubuf block stream
The return value is code read