Lines Matching refs:writer
34 GstByteWriter writer, *writer2; in GST_START_TEST() local
38 gst_byte_writer_init_with_size (&writer, 24, FALSE); in GST_START_TEST()
39 fail_unless_equals_int (gst_byte_writer_get_pos (&writer), 0); in GST_START_TEST()
40 fail_unless_equals_int (gst_byte_writer_get_size (&writer), 0); in GST_START_TEST()
41 fail_unless_equals_int (gst_byte_writer_get_remaining (&writer), -1); in GST_START_TEST()
43 (&writer)), 0); in GST_START_TEST()
44 gst_byte_writer_reset (&writer); in GST_START_TEST()
47 gst_byte_writer_init_with_data (&writer, data, sizeof (sdata), FALSE); in GST_START_TEST()
48 fail_unless_equals_int (gst_byte_writer_get_pos (&writer), 0); in GST_START_TEST()
49 fail_unless_equals_int (gst_byte_writer_get_size (&writer), 0); in GST_START_TEST()
50 fail_unless_equals_int (gst_byte_writer_get_remaining (&writer), in GST_START_TEST()
53 (&writer)), 0) in GST_START_TEST()
54 tmp = gst_byte_writer_reset_and_get_data (&writer); in GST_START_TEST()
61 gst_byte_writer_init_with_data (&writer, data, sizeof (sdata), TRUE); in GST_START_TEST()
62 fail_unless_equals_int (gst_byte_writer_get_pos (&writer), 0); in GST_START_TEST()
63 fail_unless_equals_int (gst_byte_writer_get_size (&writer), sizeof (sdata)); in GST_START_TEST()
64 fail_unless_equals_int (gst_byte_writer_get_remaining (&writer), in GST_START_TEST()
67 (&writer)), sizeof (sdata)); in GST_START_TEST()
68 tmp = gst_byte_writer_reset_and_get_data (&writer); in GST_START_TEST()
84 GstByteWriter writer; in GST_START_TEST() local
92 gst_byte_writer_init_with_size (&writer, 8, TRUE); in GST_START_TEST()
93 fail_unless_equals_int (gst_byte_writer_get_remaining (&writer), 8); in GST_START_TEST()
95 fail_unless (gst_byte_writer_put_uint8 (&writer, 0x12)); in GST_START_TEST()
96 fail_unless (gst_byte_writer_put_uint16_be (&writer, 0x3456)); in GST_START_TEST()
97 fail_unless (gst_byte_writer_put_uint16_le (&writer, 0x9078)); in GST_START_TEST()
98 fail_unless_equals_int (gst_byte_writer_get_pos (&writer), 5); in GST_START_TEST()
99 fail_unless_equals_int (gst_byte_writer_get_size (&writer), 5); in GST_START_TEST()
100 fail_unless_equals_int (gst_byte_writer_get_remaining (&writer), 8 - 5); in GST_START_TEST()
102 (&writer)), 0); in GST_START_TEST()
103 fail_if (gst_byte_reader_get_uint8 (GST_BYTE_READER (&writer), &b)); in GST_START_TEST()
104 fail_unless (gst_byte_writer_put_uint24_be (&writer, 0xabcdef)); in GST_START_TEST()
105 fail_unless_equals_int (gst_byte_writer_get_pos (&writer), 8); in GST_START_TEST()
106 fail_unless_equals_int (gst_byte_writer_get_size (&writer), 8); in GST_START_TEST()
107 fail_unless_equals_int (gst_byte_writer_get_remaining (&writer), 8 - 8); in GST_START_TEST()
109 (&writer)), 0); in GST_START_TEST()
110 fail_if (gst_byte_writer_put_uint8 (&writer, 0x12)); in GST_START_TEST()
111 fail_unless (gst_byte_writer_set_pos (&writer, 0)); in GST_START_TEST()
112 fail_unless (gst_byte_reader_peek_uint64_be (GST_BYTE_READER (&writer), &l)); in GST_START_TEST()
114 fail_unless (gst_byte_writer_put_uint8 (&writer, 0xff)); in GST_START_TEST()
115 fail_unless (gst_byte_writer_set_pos (&writer, 0)); in GST_START_TEST()
116 fail_unless (gst_byte_reader_get_uint64_be (GST_BYTE_READER (&writer), &l)); in GST_START_TEST()
118 fail_if (gst_byte_writer_put_uint64_be (&writer, in GST_START_TEST()
121 data = gst_byte_writer_reset_and_get_data (&writer); in GST_START_TEST()
131 GstByteWriter writer; in GST_START_TEST() local
138 gst_byte_writer_init_with_size (&writer, 6, FALSE); in GST_START_TEST()
139 fail_unless_equals_int (gst_byte_writer_get_remaining (&writer), -1); in GST_START_TEST()
141 fail_unless (gst_byte_writer_put_uint8 (&writer, 0x12)); in GST_START_TEST()
142 fail_unless (gst_byte_writer_put_uint16_be (&writer, 0x3456)); in GST_START_TEST()
143 fail_unless (gst_byte_writer_put_uint16_le (&writer, 0x9078)); in GST_START_TEST()
144 fail_unless_equals_int (gst_byte_writer_get_pos (&writer), 5); in GST_START_TEST()
145 fail_unless_equals_int (gst_byte_writer_get_size (&writer), 5); in GST_START_TEST()
146 fail_unless_equals_int (gst_byte_writer_get_remaining (&writer), -1); in GST_START_TEST()
148 (&writer)), 0); in GST_START_TEST()
149 fail_unless (gst_byte_writer_put_uint24_be (&writer, 0xabcdef)); in GST_START_TEST()
150 fail_unless_equals_int (gst_byte_writer_get_pos (&writer), 8); in GST_START_TEST()
151 fail_unless_equals_int (gst_byte_writer_get_size (&writer), 8); in GST_START_TEST()
152 fail_unless_equals_int (gst_byte_writer_get_remaining (&writer), -1); in GST_START_TEST()
154 (&writer)), 0); in GST_START_TEST()
155 fail_unless (gst_byte_writer_set_pos (&writer, 0)); in GST_START_TEST()
156 fail_unless (gst_byte_reader_peek_uint64_be (GST_BYTE_READER (&writer), &l)); in GST_START_TEST()
158 fail_unless (gst_byte_writer_put_uint8 (&writer, 0xff)); in GST_START_TEST()
159 fail_unless (gst_byte_writer_set_pos (&writer, 0)); in GST_START_TEST()
160 fail_unless (gst_byte_reader_get_uint64_be (GST_BYTE_READER (&writer), &l)); in GST_START_TEST()
162 fail_unless (gst_byte_writer_set_pos (&writer, 8)); in GST_START_TEST()
163 fail_unless (gst_byte_writer_put_uint64_be (&writer, in GST_START_TEST()
166 data = gst_byte_writer_reset_and_get_data (&writer); in GST_START_TEST()
178 GstByteWriter writer; in GST_START_TEST() local
184 gst_byte_writer_init_with_data (&writer, data, sizeof (data), TRUE); in GST_START_TEST()
185 fail_unless_equals_int (gst_byte_writer_get_remaining (&writer), 8); in GST_START_TEST()
186 fail_unless (gst_byte_writer_put_uint8 (&writer, 0xff)); in GST_START_TEST()
188 fail_unless_equals_int (gst_byte_writer_get_remaining (&writer), 7); in GST_START_TEST()
189 fail_unless_equals_int (gst_byte_writer_get_pos (&writer), 1); in GST_START_TEST()
190 fail_if (gst_byte_writer_put_uint64_be (&writer, in GST_START_TEST()
192 data2 = gst_byte_writer_reset_and_get_data (&writer); in GST_START_TEST()
203 GstByteWriter writer; in GST_START_TEST() local
209 gst_byte_writer_init (&writer); in GST_START_TEST()
210 fail_unless (gst_byte_writer_put_data (&writer, data, 8)); in GST_START_TEST()
211 fail_unless (gst_byte_writer_put_string (&writer, "somerandomteststring")); in GST_START_TEST()
212 fail_unless_equals_int (gst_byte_writer_get_pos (&writer), in GST_START_TEST()
215 data2 = gst_byte_writer_reset_and_get_data (&writer); in GST_START_TEST()
225 GstByteWriter writer; in GST_START_TEST() local
229 gst_byte_writer_init (&writer); in GST_START_TEST()
230 fail_unless (gst_byte_writer_fill (&writer, 0, 4)); in GST_START_TEST()
231 fail_unless (gst_byte_writer_fill (&writer, 5, 2)); in GST_START_TEST()
233 data2 = gst_byte_writer_reset_and_get_data (&writer); in GST_START_TEST()