tests: jpegparse: Mark data as static.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1473>
This commit is contained in:
Víctor Manuel Jáquez Leal 2021-12-25 13:00:17 +01:00
parent 17046fc1ad
commit fa2b697389

View file

@ -27,25 +27,25 @@
/* This test doesn't use actual JPEG data, but some fake data that we know
will trigger certain paths in jpegparse. */
guint8 test_data_garbage[] = { 0x00, 0x01, 0xff, 0x32, 0x00, 0xff };
guint8 test_data_short_frame[] = { 0xff, 0xd8, 0xff, 0xd9 };
static guint8 test_data_garbage[] = { 0x00, 0x01, 0xff, 0x32, 0x00, 0xff };
static guint8 test_data_short_frame[] = { 0xff, 0xd8, 0xff, 0xd9 };
guint8 test_data_normal_frame[] = { 0xff, 0xd8, 0xff, 0x12, 0x00, 0x03, 0x33,
0xff, 0xd9
static guint8 test_data_normal_frame[] = { 0xff, 0xd8, 0xff, 0x12, 0x00, 0x03,
0x33, 0xff, 0xd9
};
guint8 test_data_entropy[] = { 0xff, 0xd8, 0xff, 0xda, 0x00, 0x04, 0x22, 0x33,
0x44, 0xff, 0x00, 0x55, 0xff, 0x04, 0x00, 0x04, 0x22, 0x33, 0xff, 0xd9
static guint8 test_data_entropy[] = { 0xff, 0xd8, 0xff, 0xda, 0x00, 0x04, 0x22,
0x33, 0x44, 0xff, 0x00, 0x55, 0xff, 0x04, 0x00, 0x04, 0x22, 0x33, 0xff, 0xd9
};
guint8 test_data_ff[] = { 0xff, 0xff };
static guint8 test_data_ff[] = { 0xff, 0xff };
guint8 test_data_extra_ff[] = { 0xff, 0xd8, 0xff, 0xff, 0xff, 0x12, 0x00, 0x03,
0x33, 0xff, 0xff, 0xff, 0xd9
static guint8 test_data_extra_ff[] = { 0xff, 0xd8, 0xff, 0xff, 0xff, 0x12, 0x00,
0x03, 0x33, 0xff, 0xff, 0xff, 0xd9
};
guint8 test_data_soi[] = { 0xff, 0xd8 };
static guint8 test_data_soi[] = { 0xff, 0xd8 };
guint8 test_data_app1_exif[] = {
static guint8 test_data_app1_exif[] = {
0xff, 0xe1,
0x00, 0xd2, /* length = 210 */
0x45, 0x78, 0x69, 0x66, 0x00, /* Exif */
@ -129,14 +129,14 @@ guint8 test_data_app1_exif[] = {
0x22, 0x20,
};
guint8 test_data_comment[] = {
static guint8 test_data_comment[] = {
0xff, 0xfe,
0x00, 0x08, /* size */
/* xxxxx */
0x78, 0x78, 0x78, 0x78, 0x78, 0x00,
};
guint8 test_data_sof0[] = {
static guint8 test_data_sof0[] = {
0xff, 0xc0, /* baseline dct-based */
0x00, 0x11, /* size */
0x08, /* precision */
@ -148,7 +148,7 @@ guint8 test_data_sof0[] = {
0x03, 0x11, 0x01, /* component 3 */
};
guint8 test_data_eoi[] = { 0xff, 0xd9 };
static guint8 test_data_eoi[] = { 0xff, 0xd9 };
static GList *
_make_buffers_in (GList * buffer_in, guint8 * test_data, gsize test_data_size)