1 .. -*- coding: utf-8; mode: rst -*-
3 .. _VIDEO_SET_SPU_PALETTE:
14 .. attention:: This ioctl is deprecated.
19 .. c:function:: int ioctl(fd, VIDEO_SET_SPU_PALETTE, struct video_spu_palette *palette )
20 :name: VIDEO_SET_SPU_PALETTE
35 - File descriptor returned by a previous call to open().
41 - Equals VIDEO_SET_SPU_PALETTE for this command.
45 - video_spu_palette_t \*palette
47 - SPU palette according to section ??.
53 This ioctl sets the SPU color palette.
55 .. c:type:: video_spu_palette
59 typedef struct video_spu_palette { /* SPU Palette information */
62 } video_spu_palette_t;
67 On success 0 is returned, on error -1 and the ``errno`` variable is set
68 appropriately. The generic error codes are described at the
69 :ref:`Generic Error Codes <gen-errors>` chapter.
82 - input is not a valid palette or driver doesn’t handle SPU.