mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-09 00:45:56 +00:00
tests: jpegparse: Mark data as static.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1473>
This commit is contained in:
parent
17046fc1ad
commit
fa2b697389
1 changed files with 14 additions and 14 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue