mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
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.
This commit is contained in:
parent
1005fb0971
commit
acb98b0938
3 changed files with 14 additions and 14 deletions
|
@ -265,11 +265,11 @@ plugin_init (GstPlugin *plugin)
|
|||
</entry>
|
||||
<entry>endianness</entry>
|
||||
<entry>integer</entry>
|
||||
<entry>G_BIG_ENDIAN (1234) or G_LITTLE_ENDIAN (4321)</entry>
|
||||
<entry>G_BIG_ENDIAN (4321) or G_LITTLE_ENDIAN (1234)</entry>
|
||||
<entry>
|
||||
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 <quote>little-endian</quote> (byte-order is <quote>least
|
||||
significant byte first</quote>). The value G_BIG_ENDIAN (1234)
|
||||
significant byte first</quote>). The value G_BIG_ENDIAN (4321)
|
||||
means <quote>big-endian</quote> (byte order is <quote>most
|
||||
significant byte first</quote>).
|
||||
</entry>
|
||||
|
@ -314,11 +314,11 @@ plugin_init (GstPlugin *plugin)
|
|||
</entry>
|
||||
<entry>endianness</entry>
|
||||
<entry>integer</entry>
|
||||
<entry>G_BIG_ENDIAN (1234) or G_LITTLE_ENDIAN (4321)</entry>
|
||||
<entry>G_BIG_ENDIAN (4321) or G_LITTLE_ENDIAN (1234)</entry>
|
||||
<entry>
|
||||
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 <quote>little-endian</quote> (byte-order is <quote>least
|
||||
significant byte first</quote>). The value G_BIG_ENDIAN (1234)
|
||||
significant byte first</quote>). The value G_BIG_ENDIAN (4321)
|
||||
means <quote>big-endian</quote> (byte order is <quote>most
|
||||
significant byte first</quote>).
|
||||
</entry>
|
||||
|
@ -797,11 +797,11 @@ plugin_init (GstPlugin *plugin)
|
|||
<row>
|
||||
<entry>endianness</entry>
|
||||
<entry>integer</entry>
|
||||
<entry>G_BIG_ENDIAN (1234) or G_LITTLE_ENDIAN (4321)</entry>
|
||||
<entry>G_BIG_ENDIAN (4321) or G_LITTLE_ENDIAN (1234)</entry>
|
||||
<entry>
|
||||
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 <quote>little-endian</quote> (byte-order is <quote>least
|
||||
significant byte first</quote>). The value G_BIG_ENDIAN (1234)
|
||||
significant byte first</quote>). The value G_BIG_ENDIAN (4321)
|
||||
means <quote>big-endian</quote> (byte order is <quote>most
|
||||
significant byte first</quote>). For 24/32bpp, this should always
|
||||
be big endian because the byte order can be given in both.
|
||||
|
|
|
@ -328,11 +328,11 @@
|
|||
</entry>
|
||||
<entry>endianness</entry>
|
||||
<entry>integer</entry>
|
||||
<entry>G_BIG_ENDIAN (1234) or G_LITTLE_ENDIAN (4321)</entry>
|
||||
<entry>G_BIG_ENDIAN (4321) or G_LITTLE_ENDIAN (1234)</entry>
|
||||
<entry>
|
||||
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 <quote>little-endian</quote> (byte-order is <quote>least
|
||||
significant byte first</quote>). The value G_BIG_ENDIAN (1234)
|
||||
significant byte first</quote>). The value G_BIG_ENDIAN (4321)
|
||||
means <quote>big-endian</quote> (byte order is <quote>most
|
||||
significant byte first</quote>).
|
||||
</entry>
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue