@@ -34,22 +34,23 @@ typedef struct _legacy_sv_t legacy_sv_t;
3434/**
3535 * @brief Creates a legacy signed video session.
3636 *
37- * Creates a legacy_sv_t object which the user should keep across the entire streaming session.
38- * The returned struct can be used for validating the authenticity of a legacy video.
37+ * Creates a legacy_sv_t object which the user should keep across the entire streaming
38+ * session. The returned struct can be used for validating the authenticity of a legacy
39+ * video.
3940 *
4041 * @param parent The parent session, i.e., a signed_video_t object.
4142 *
42- * @returns A pointer to legacy_sv_t struct, allocated and initialized. A null pointer is
43- * returned if memory could not be allocated.
43+ * @return A pointer to legacy_sv_t struct, allocated and initialized. A null pointer is
44+ * returned if memory could not be allocated.
4445 */
4546legacy_sv_t *
4647legacy_sv_create (signed_video_t * parent );
4748
4849/**
4950 * @brief Frees the memory of the legacy_sv_t object.
5051 *
51- * All memory allocated to and by the legacy_sv_t object will be freed. This will affectivly end
52- * the signed video session.
52+ * All memory allocated to and by the legacy_sv_t object will be freed. This will
53+ * affectivly end the signed video session.
5354 *
5455 * @param self Pointer to the object which memory to free.
5556 */
@@ -59,64 +60,66 @@ legacy_sv_free(legacy_sv_t *self);
5960/**
6061 * @brief Resets the legacy session to allow for, e.g., scrubbing signed video
6162 *
62- * Resets the session and puts it in a pre-stream state, that is, waiting for a new GOP. Once a new
63- * GOP is found the operations start over.
63+ * Resets the session and puts it in a pre-stream state, that is, waiting for a new GOP.
64+ * Once a new GOP is found the operations start over.
6465 *
6566 * For the signing part, this means starting to produce the required SEIs needed for
66- * authentication. For the authentication part, this should be used when scrubbing the video.
67- * Otherwise the lib will fail authentication due to skipped NALUs .
67+ * authentication. For the authentication part, this should be used when scrubbing the
68+ * video. Otherwise the lib will fail authentication due to skipped Bitstream Units .
6869 *
6970 * @param self Signed Video session in use
7071 *
71- * @returns A svrc_t
72+ * @return A svrc_t
7273 */
7374svrc_t
7475legacy_sv_reset (legacy_sv_t * self );
7576
7677/**
77- * @brief Add NALU data to the session and get an authentication report
78+ * @brief Add Bitstream Unit data to the session and get an authentication report
7879 *
79- * This function should be called for each H26x NALU the user receives. It is assumed that
80- * |nalu_data| consists of one single NALU including Start Code and NALU, so that NALU type can be
81- * parsed. That is, the format should look like this:
80+ * This function should be called for each Bitstream Unit the user receives. It is assumed
81+ * that |nalu_data| consists of one single Bitstream Unit including Start Code and
82+ * Bitstream Unit, so that Bitstream Unit type can be parsed. That is, the format should
83+ * look like this:
8284 *
8385 * |------------|------|
8486 * | Start Code | NALU |
8587 * |------------|------|
8688 * 3 or 4 bytes ^
8789 * Including stop bit
8890 *
89- * NOTE: NALUs sent into the API cannot be in packetized format (access units)!
90- * The access unit has to be split into NALUs if so.
91+ * @note: Bitstream Units sent into the API cannot be in packetized format (access units)!
92+ * The access unit has to be split into Bitstream Units if so.
9193 *
92- * The input |nalu_data| is not changed by this call. Note that it is assumed that ALL H26x NALUs
93- * are passed to this function. Otherwise, they will be treated as missing/lost packets which may
94- * affect the validation.
94+ * The input |nalu_data| is not changed by this call. Note that it is assumed that ALL
95+ * Bitstream Units are passed to this function. Otherwise, they will be treated as
96+ * missing/lost packets which may affect the validation.
9597 *
96- * Signatures are sent on regular basis. Currently this is done at the end of each GOP (Group Of
97- * Pictures). For every input |nalu_data| with a signature, or when a signature is expected,
98- * validation is performed and a copy of the |authenticity| result is provided. If a NALU does not
99- * trigger a validation, |authenticity| is a NULL pointer. If one NALU is lost or tampered with
100- * within a GOP, the whole GOP is marked as NOT OK, even if the other NALUs are correct.
98+ * Signatures are sent on regular basis. Currently this is done at the end of each GOP
99+ * (Group Of Pictures). For every input |nalu_data| with a signature, or when a signature
100+ * is expected, validation is performed and a copy of the |authenticity| result is
101+ * provided. If a Bitstream Unit does not trigger a validation, |authenticity| is a NULL
102+ * pointer. If one NALU is lost or tampered with within a GOP, the whole GOP is marked as
103+ * NOT OK, even if the other NALUs are correct.
101104 *
102105 * The user should continuously check the return value for errors and upon success check
103106 * |authenticity| for a new report.
104107 * Two typical use cases are; 1) live monitoring which could be screening the video until
105- * authenticity can no longer be validated OK, and 2) screening a recording and get a full report at
106- * the end. In the first case further operations can simply be aborted as soon as a validation
107- * fails, whereas in the latter case all the NALUs need to be screened.
108- * NOTE : Only the live monitoring use case is currently supported.
108+ * authenticity can no longer be validated OK, and 2) screening a recording and get a full
109+ * report at the end. In the first case further operations can simply be aborted as soon
110+ * as a validation fails, whereas in the latter case all the NALUs need to be screened.
111+ * @note : Only the live monitoring use case is currently supported.
109112 *
110113 * Example code of usage; See example code above.
111114 *
112115 * @param self Pointer to the legacy_sv_t object to update
113- * @param nalu_data Pointer to the H26x NALU data to be added
116+ * @param nalu_data Pointer to the Bitstream Unit data to be added
114117 * @param nalu_data_size Size of the nalu_data
115- * @param authenticity Pointer to the autenticity report. Passing in a NULL pointer will not provide
116- * latest validation results. The user is then responsible to get a report using
117- * signed_video_get_authenticity_report(...).
118+ * @param authenticity Pointer to the autenticity report. Passing in a NULL pointer will
119+ * not provide latest validation results. The user is then responsible to get a report
120+ * using signed_video_get_authenticity_report(...).
118121 *
119- * @returns A svrc_t
122+ * @return A svrc_t
120123 */
121124svrc_t
122125legacy_sv_add_nalu_and_authenticate (legacy_sv_t * self ,
@@ -125,14 +128,14 @@ legacy_sv_add_nalu_and_authenticate(legacy_sv_t *self,
125128 signed_video_authenticity_t * * authenticity );
126129
127130/**
128- * @brief Gets the size of the NAL Unit list
131+ * @brief Gets the size of the Bitstream Unit list
129132 *
130133 * This function is necessary to update the authenticity report from the parent Signed
131134 * Video session.
132135 *
133136 * @param self Pointer to the legacy_sv_t object
134137 *
135- * @return Number of NAL Units (items) in the nalu_list
138+ * @return Number of Bitstream Units (items) in the nalu_list
136139 */
137140int
138141legacy_get_nalu_list_items (legacy_sv_t * self );
0 commit comments