From acb98b09389d150d6515dfc83541cf69baa6a0cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Thu, 19 Feb 2009 11:18:07 +0000 Subject: [PATCH] docs: fix constants for G_LITTLE_ENDIAN and G_BIG_ENDIAN We got the constants for G_LITTLE_ENDIAN and G_BIG_ENDIAN the wrong way around in some docs (fixes: #572392). Also mention G_BYTE_ORDER in the audio types section. --- docs/pwg/advanced-types.xml | 18 +++++++++--------- docs/pwg/intro-basics.xml | 6 +++--- docs/random/mimetypes | 4 ++-- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/docs/pwg/advanced-types.xml b/docs/pwg/advanced-types.xml index 324cec1880..e33f8f6c4c 100644 --- a/docs/pwg/advanced-types.xml +++ b/docs/pwg/advanced-types.xml @@ -265,11 +265,11 @@ plugin_init (GstPlugin *plugin) endianness integer - G_BIG_ENDIAN (1234) or G_LITTLE_ENDIAN (4321) + G_BIG_ENDIAN (4321) or G_LITTLE_ENDIAN (1234) - The order of bytes in a sample. The value G_LITTLE_ENDIAN (4321) + The order of bytes in a sample. The value G_LITTLE_ENDIAN (1234) means little-endian (byte-order is least - significant byte first). The value G_BIG_ENDIAN (1234) + significant byte first). The value G_BIG_ENDIAN (4321) means big-endian (byte order is most significant byte first). @@ -314,11 +314,11 @@ plugin_init (GstPlugin *plugin) endianness integer - G_BIG_ENDIAN (1234) or G_LITTLE_ENDIAN (4321) + G_BIG_ENDIAN (4321) or G_LITTLE_ENDIAN (1234) - The order of bytes in a sample. The value G_LITTLE_ENDIAN (4321) + The order of bytes in a sample. The value G_LITTLE_ENDIAN (1234) means little-endian (byte-order is least - significant byte first). The value G_BIG_ENDIAN (1234) + significant byte first). The value G_BIG_ENDIAN (4321) means big-endian (byte order is most significant byte first). @@ -797,11 +797,11 @@ plugin_init (GstPlugin *plugin) endianness integer - G_BIG_ENDIAN (1234) or G_LITTLE_ENDIAN (4321) + G_BIG_ENDIAN (4321) or G_LITTLE_ENDIAN (1234) - The order of bytes in a sample. The value G_LITTLE_ENDIAN (4321) + The order of bytes in a sample. The value G_LITTLE_ENDIAN (1234) means little-endian (byte-order is least - significant byte first). The value G_BIG_ENDIAN (1234) + significant byte first). The value G_BIG_ENDIAN (4321) means big-endian (byte order is most significant byte first). For 24/32bpp, this should always be big endian because the byte order can be given in both. diff --git a/docs/pwg/intro-basics.xml b/docs/pwg/intro-basics.xml index d26ad903fa..92c9ab5616 100644 --- a/docs/pwg/intro-basics.xml +++ b/docs/pwg/intro-basics.xml @@ -328,11 +328,11 @@ endianness integer - G_BIG_ENDIAN (1234) or G_LITTLE_ENDIAN (4321) + G_BIG_ENDIAN (4321) or G_LITTLE_ENDIAN (1234) - The order of bytes in a sample. The value G_LITTLE_ENDIAN (4321) + The order of bytes in a sample. The value G_LITTLE_ENDIAN (1234) means little-endian (byte-order is least - significant byte first). The value G_BIG_ENDIAN (1234) + significant byte first). The value G_BIG_ENDIAN (4321) means big-endian (byte order is most significant byte first). diff --git a/docs/random/mimetypes b/docs/random/mimetypes index 800a132cd8..194ddc50b9 100644 --- a/docs/random/mimetypes +++ b/docs/random/mimetypes @@ -538,7 +538,7 @@ height = 1 - MAXINT (INT) 2 - Raw video (RGB) MIME type: video/x-raw-rgb - Properties: endianness = 1234/4321 (INT) <- use G_LITTLE/BIG_ENDIAN + Properties: endianness = 1234/4321 (INT) <- use G_LITTLE_ENDIAN/G_BIG_ENDIAN depth = 15/16/24 (INT, color depth) bpp = 16/24/32 (INT, bits used to store each pixel) red_mask = bitmask (0x..) (INT) @@ -585,7 +585,7 @@ format-specific properties: rate = 1 - MAXINT (INT, sampling rate) channels = 1 - MAXINT (INT, number of audio channels) -endianness = 1234/4321 (INT) <- use G_BIG/LITTLE_ENDIAN +endianness = 1234/4321 (INT) <- use G_LITTLE_ENDIAN/G_BIG_ENDIAN/G_BYTE_ORDER 3 - Raw audio (integer format) MIME type: audio/x-raw-int