*
*/
-static guint8 h265_vps[] = {
+static const guint8 h265_vps[] = {
0x00, 0x00, 0x00, 0x01, 0x40, 0x01, 0x0c, 0x01, 0xff, 0xff, 0x01, 0x60, 0x00,
0x00, 0x03, 0x00, 0x90, 0x00, 0x00, 0x03, 0x00, 0x00, 0x03, 0x00, 0x3f, 0x95,
0x98, 0x09
};
-static guint8 h265_sps[] = {
+static const guint8 h265_sps[] = {
0x00, 0x00, 0x00, 0x01, 0x42, 0x01, 0x01, 0x01, 0x60, 0x00, 0x00, 0x03, 0x00,
0x90, 0x00, 0x00, 0x03, 0x00, 0x00, 0x03, 0x00, 0x3f, 0xa0, 0x88, 0x45, 0x96,
0x56, 0x6a, 0xbc, 0xaf, 0xff, 0x00, 0x01, 0x00, 0x01, 0x6a, 0x0c, 0x02, 0x0c,
0x08, 0x00, 0x00, 0x03, 0x00, 0x08, 0x00, 0x00, 0x03, 0x00, 0xf0, 0x40
};
-static guint8 h265_pps[] = {
+static const guint8 h265_pps[] = {
0x00, 0x00, 0x00, 0x01, 0x44, 0x01, 0xc1, 0x73, 0xd0, 0x89
};
-static guint8 h265_idr[] = {
+static const guint8 h265_idr[] = {
0x00, 0x00, 0x00, 0x01, 0x26, 0x01, 0xaf, 0x06, 0xb8, 0xcf, 0xbc, 0x65, 0x85,
0x3b, 0x49, 0xff, 0xd0, 0x2c, 0xff, 0x3b, 0x61, 0x6d, 0x1b, 0xae, 0xf1, 0xf4,
0x96, 0x15, 0xef, 0x3e, 0xc6, 0x67, 0x3c, 0x0a, 0xd0, 0x6a, 0xb9, 0xfb, 0xf8,
};
/* Content light level information SEI message */
-static guint8 h265_sei_clli[] = {
+static const guint8 h265_sei_clli[] = {
0x00, 0x00, 0x00, 0x01, 0x4e, 0x01, 0x90, 0x04, 0x03, 0xe8, 0x01, 0x90, 0x80
};
/* Mastering display colour volume information SEI message */
-static guint8 h265_sei_mdcv[] = {
+static const guint8 h265_sei_mdcv[] = {
0x00, 0x00, 0x00, 0x01, 0x4e, 0x01, 0x89, 0x18, 0x33, 0xc2, 0x86, 0xc4, 0x1d,
0x4c, 0x0b, 0xb8, 0x84, 0xd0, 0x3e, 0x80, 0x3d, 0x13, 0x40, 0x42, 0x00, 0x98,
0x96, 0x80, 0x00, 0x00, 0x03, 0x00, 0x01, 0x80
* ! fakesink dump=1
*/
-static guint8 h265_128x128_vps[] = {
+static const guint8 h265_128x128_vps[] = {
0x00, 0x00, 0x00, 0x01, 0x40, 0x01, 0x0c, 0x01,
0xff, 0xff, 0x01, 0x60, 0x00, 0x00, 0x03, 0x00,
0x90, 0x00, 0x00, 0x03, 0x00, 0x00, 0x03, 0x00,
0x3f, 0x95, 0x98, 0x09
};
-static guint8 h265_128x128_sps[] = {
+static const guint8 h265_128x128_sps[] = {
0x00, 0x00, 0x00, 0x01, 0x42, 0x01, 0x01, 0x01,
0x60, 0x00, 0x00, 0x03, 0x00, 0x90, 0x00, 0x00,
0x03, 0x00, 0x00, 0x03, 0x00, 0x3f, 0xa0, 0x10,
0x08
};
-static guint8 h265_128x128_pps[] = {
+static const guint8 h265_128x128_pps[] = {
0x00, 0x00, 0x00, 0x01, 0x44, 0x01, 0xc1, 0x72,
0xb4, 0x22, 0x40
};
-static guint8 h265_128x128_slice_idr_n_lp[] = {
+static const guint8 h265_128x128_slice_idr_n_lp[] = {
0x00, 0x00, 0x00, 0x01, 0x28, 0x01, 0xaf, 0x0e,
0xe0, 0x34, 0x82, 0x15, 0x84, 0xf4, 0x70, 0x4f,
0xff, 0xed, 0x41, 0x3f, 0xff, 0xe4, 0xcd, 0xc4,
* ! fakesink dump=1
*/
-static guint8 h265_128x128_sliced_vps[] = {
+static const guint8 h265_128x128_sliced_vps[] = {
0x00, 0x00, 0x00, 0x01, 0x40, 0x01, 0x0c, 0x01,
0xff, 0xff, 0x01, 0x40, 0x00, 0x00, 0x03, 0x00,
0x90, 0x00, 0x00, 0x03, 0x00, 0x00, 0x03, 0x00,
0x1e, 0x25, 0x02, 0x40
};
-static guint8 h265_128x128_sliced_sps[] = {
+static const guint8 h265_128x128_sliced_sps[] = {
0x00, 0x00, 0x00, 0x01, 0x42, 0x01, 0x01, 0x01,
0x40, 0x00, 0x00, 0x03, 0x00, 0x90, 0x00, 0x00,
0x03, 0x00, 0x00, 0x03, 0x00, 0x1e, 0xa0, 0x10,
0x01, 0x04
};
-static guint8 h265_128x128_sliced_pps[] = {
+static const guint8 h265_128x128_sliced_pps[] = {
0x00, 0x00, 0x00, 0x01, 0x44, 0x01, 0xc0, 0x71,
0x81, 0x8d, 0xb2
};
-static guint8 h265_128x128_slice_1_idr_n_lp[] = {
+static const guint8 h265_128x128_slice_1_idr_n_lp[] = {
0x00, 0x00, 0x00, 0x01, 0x28, 0x01, 0xac, 0x46,
0x13, 0xb6, 0x45, 0x43, 0xaf, 0xee, 0x3d, 0x3f,
0x76, 0xe5, 0x73, 0x2f, 0xee, 0xd2, 0xeb, 0xbf,
0x80
};
-static guint8 h265_128x128_slice_2_idr_n_lp[] = {
+static const guint8 h265_128x128_slice_2_idr_n_lp[] = {
0x00, 0x00, 0x00, 0x01, 0x28, 0x01, 0x30, 0xc4,
0x60, 0x13, 0xb6, 0x45, 0x43, 0xaf, 0xee, 0x3d,
0x3f, 0x76, 0xe5, 0x73, 0x2f, 0xee, 0xd2, 0xeb,
/* helper methods for GstHasness based tests */
static inline GstBuffer *
-wrap_buffer (guint8 * buf, gsize size, GstClockTime pts, GstBufferFlags flags)
+wrap_buffer (const guint8 * buf, gsize size, GstClockTime pts,
+ GstBufferFlags flags)
{
GstBuffer *buffer;
buffer = gst_buffer_new_wrapped_full (GST_MEMORY_FLAG_READONLY,
- buf, size, 0, size, NULL, NULL);
+ (gpointer) buf, size, 0, size, NULL, NULL);
GST_BUFFER_PTS (buffer) = pts;
GST_BUFFER_FLAGS (buffer) |= flags;
{
va_list vl;
gint i;
- guint8 *data;
+ const guint8 *data;
gsize size;
GstBuffer *buffer;
}
static inline void
-pull_and_check_full (GstHarness * h, guint8 * data, gsize size,
+pull_and_check_full (GstHarness * h, const guint8 * data, gsize size,
GstClockTime pts, GstBufferFlags flags)
{
GstBuffer *b = gst_harness_pull (h);
} G_STMT_END
#define HEADER_DATA \
- guint8 * const vps = sliced ? h265_128x128_sliced_vps : h265_128x128_vps; \
- guint8 * const sps = sliced ? h265_128x128_sliced_sps : h265_128x128_sps; \
- guint8 * const pps = sliced ? h265_128x128_sliced_pps : h265_128x128_pps; \
+ const guint8 * const vps = sliced ? h265_128x128_sliced_vps : h265_128x128_vps; \
+ const guint8 * const sps = sliced ? h265_128x128_sliced_sps : h265_128x128_sps; \
+ const guint8 * const pps = sliced ? h265_128x128_sliced_pps : h265_128x128_pps; \
const gsize vps_size = sliced ? sizeof (h265_128x128_sliced_vps) : sizeof (h265_128x128_vps); \
const gsize sps_size = sliced ? sizeof (h265_128x128_sliced_sps) : sizeof (h265_128x128_sps); \
const gsize pps_size = sliced ? sizeof (h265_128x128_sliced_pps) : sizeof (h265_128x128_pps)
#define SLICE_DATA \
- guint8 * const slice_1 = sliced ? h265_128x128_slice_1_idr_n_lp : h265_128x128_slice_idr_n_lp; \
- guint8 * const slice_2 = sliced ? h265_128x128_slice_2_idr_n_lp : NULL; \
+ const guint8 * const slice_1 = sliced ? h265_128x128_slice_1_idr_n_lp : h265_128x128_slice_idr_n_lp; \
+ const guint8 * const slice_2 = sliced ? h265_128x128_slice_2_idr_n_lp : NULL; \
const gsize slice_1_size = sliced ? sizeof (h265_128x128_slice_1_idr_n_lp) : sizeof (h265_128x128_slice_idr_n_lp); \
const gsize slice_2_size = sliced ? sizeof (h265_128x128_slice_2_idr_n_lp) : 0