Path: blob/master/Documentation/DocBook/dvb/video.xml
10823 views
<title>DVB Video Device</title>1<para>The DVB video device controls the MPEG2 video decoder of the DVB hardware. It2can be accessed through <emphasis role="tt">/dev/dvb/adapter0/video0</emphasis>. Data types and and3ioctl definitions can be accessed by including <emphasis role="tt">linux/dvb/video.h</emphasis> in your4application.5</para>6<para>Note that the DVB video device only controls decoding of the MPEG video stream, not7its presentation on the TV or computer screen. On PCs this is typically handled by an8associated video4linux device, e.g. <emphasis role="tt">/dev/video</emphasis>, which allows scaling and defining output9windows.10</para>11<para>Some DVB cards don’t have their own MPEG decoder, which results in the omission of12the audio and video device as well as the video4linux device.13</para>14<para>The ioctls that deal with SPUs (sub picture units) and navigation packets are only15supported on some MPEG decoders made for DVD playback.16</para>17<section id="video_types">18<title>Video Data Types</title>1920<section id="video_format_t">21<title>video_format_t</title>22<para>The <emphasis role="tt">video_format_t</emphasis> data type defined by23</para>24<programlisting>25typedef enum {26VIDEO_FORMAT_4_3,27VIDEO_FORMAT_16_928} video_format_t;29</programlisting>30<para>is used in the VIDEO_SET_FORMAT function (??) to tell the driver which aspect ratio31the output hardware (e.g. TV) has. It is also used in the data structures video_status32(??) returned by VIDEO_GET_STATUS (??) and video_event (??) returned by33VIDEO_GET_EVENT (??) which report about the display format of the current video34stream.35</para>36</section>3738<section id="video_display_format_t">39<title>video_display_format_t</title>40<para>In case the display format of the video stream and of the display hardware differ the41application has to specify how to handle the cropping of the picture. This can be done using42the VIDEO_SET_DISPLAY_FORMAT call (??) which accepts43</para>44<programlisting>45typedef enum {46VIDEO_PAN_SCAN,47VIDEO_LETTER_BOX,48VIDEO_CENTER_CUT_OUT49} video_display_format_t;50</programlisting>51<para>as argument.52</para>53</section>5455<section id="video_stream_source">56<title>video stream source</title>57<para>The video stream source is set through the VIDEO_SELECT_SOURCE call and can take58the following values, depending on whether we are replaying from an internal (demuxer) or59external (user write) source.60</para>61<programlisting>62typedef enum {63VIDEO_SOURCE_DEMUX,64VIDEO_SOURCE_MEMORY65} video_stream_source_t;66</programlisting>67<para>VIDEO_SOURCE_DEMUX selects the demultiplexer (fed either by the frontend or the68DVR device) as the source of the video stream. If VIDEO_SOURCE_MEMORY69is selected the stream comes from the application through the <emphasis role="tt">write()</emphasis> system70call.71</para>72</section>7374<section id="video_play_state">75<title>video play state</title>76<para>The following values can be returned by the VIDEO_GET_STATUS call representing the77state of video playback.78</para>79<programlisting>80typedef enum {81VIDEO_STOPPED,82VIDEO_PLAYING,83VIDEO_FREEZED84} video_play_state_t;85</programlisting>86</section>8788<section id="video_event">89<title>struct video_event</title>90<para>The following is the structure of a video event as it is returned by the VIDEO_GET_EVENT91call.92</para>93<programlisting>94struct video_event {95int32_t type;96time_t timestamp;97union {98video_format_t video_format;99} u;100};101</programlisting>102</section>103104<section id="video_status">105<title>struct video_status</title>106<para>The VIDEO_GET_STATUS call returns the following structure informing about various107states of the playback operation.108</para>109<programlisting>110struct video_status {111boolean video_blank;112video_play_state_t play_state;113video_stream_source_t stream_source;114video_format_t video_format;115video_displayformat_t display_format;116};117</programlisting>118<para>If video_blank is set video will be blanked out if the channel is changed or if playback is119stopped. Otherwise, the last picture will be displayed. play_state indicates if the video is120currently frozen, stopped, or being played back. The stream_source corresponds to the seleted121source for the video stream. It can come either from the demultiplexer or from memory.122The video_format indicates the aspect ratio (one of 4:3 or 16:9) of the currently123played video stream. Finally, display_format corresponds to the selected cropping124mode in case the source video format is not the same as the format of the output125device.126</para>127</section>128129<section id="video_still_picture">130<title>struct video_still_picture</title>131<para>An I-frame displayed via the VIDEO_STILLPICTURE call is passed on within the132following structure.133</para>134<programlisting>135/⋆ pointer to and size of a single iframe in memory ⋆/136struct video_still_picture {137char ⋆iFrame;138int32_t size;139};140</programlisting>141</section>142143<section id="video_caps">144<title>video capabilities</title>145<para>A call to VIDEO_GET_CAPABILITIES returns an unsigned integer with the following146bits set according to the hardwares capabilities.147</para>148<programlisting>149/⋆ bit definitions for capabilities: ⋆/150/⋆ can the hardware decode MPEG1 and/or MPEG2? ⋆/151#define VIDEO_CAP_MPEG1 1152#define VIDEO_CAP_MPEG2 2153/⋆ can you send a system and/or program stream to video device?154(you still have to open the video and the audio device but only155send the stream to the video device) ⋆/156#define VIDEO_CAP_SYS 4157#define VIDEO_CAP_PROG 8158/⋆ can the driver also handle SPU, NAVI and CSS encoded data?159(CSS API is not present yet) ⋆/160#define VIDEO_CAP_SPU 16161#define VIDEO_CAP_NAVI 32162#define VIDEO_CAP_CSS 64163</programlisting>164</section>165166<section id="video_system">167<title>video system</title>168<para>A call to VIDEO_SET_SYSTEM sets the desired video system for TV output. The169following system types can be set:170</para>171<programlisting>172typedef enum {173VIDEO_SYSTEM_PAL,174VIDEO_SYSTEM_NTSC,175VIDEO_SYSTEM_PALN,176VIDEO_SYSTEM_PALNc,177VIDEO_SYSTEM_PALM,178VIDEO_SYSTEM_NTSC60,179VIDEO_SYSTEM_PAL60,180VIDEO_SYSTEM_PALM60181} video_system_t;182</programlisting>183</section>184185<section id="video_highlight">186<title>struct video_highlight</title>187<para>Calling the ioctl VIDEO_SET_HIGHLIGHTS posts the SPU highlight information. The188call expects the following format for that information:189</para>190<programlisting>191typedef192struct video_highlight {193boolean active; /⋆ 1=show highlight, 0=hide highlight ⋆/194uint8_t contrast1; /⋆ 7- 4 Pattern pixel contrast ⋆/195/⋆ 3- 0 Background pixel contrast ⋆/196uint8_t contrast2; /⋆ 7- 4 Emphasis pixel-2 contrast ⋆/197/⋆ 3- 0 Emphasis pixel-1 contrast ⋆/198uint8_t color1; /⋆ 7- 4 Pattern pixel color ⋆/199/⋆ 3- 0 Background pixel color ⋆/200uint8_t color2; /⋆ 7- 4 Emphasis pixel-2 color ⋆/201/⋆ 3- 0 Emphasis pixel-1 color ⋆/202uint32_t ypos; /⋆ 23-22 auto action mode ⋆/203/⋆ 21-12 start y ⋆/204/⋆ 9- 0 end y ⋆/205uint32_t xpos; /⋆ 23-22 button color number ⋆/206/⋆ 21-12 start x ⋆/207/⋆ 9- 0 end x ⋆/208} video_highlight_t;209</programlisting>210211</section>212<section id="video_spu">213<title>video SPU</title>214<para>Calling VIDEO_SET_SPU deactivates or activates SPU decoding, according to the215following format:216</para>217<programlisting>218typedef219struct video_spu {220boolean active;221int stream_id;222} video_spu_t;223</programlisting>224225</section>226<section id="video_spu_palette">227<title>video SPU palette</title>228<para>The following structure is used to set the SPU palette by calling VIDEO_SPU_PALETTE:229</para>230<programlisting>231typedef232struct video_spu_palette{233int length;234uint8_t ⋆palette;235} video_spu_palette_t;236</programlisting>237238</section>239<section id="video_navi_pack">240<title>video NAVI pack</title>241<para>In order to get the navigational data the following structure has to be passed to the ioctl242VIDEO_GET_NAVI:243</para>244<programlisting>245typedef246struct video_navi_pack{247int length; /⋆ 0 ... 1024 ⋆/248uint8_t data[1024];249} video_navi_pack_t;250</programlisting>251</section>252253254<section id="video_attributes">255<title>video attributes</title>256<para>The following attributes can be set by a call to VIDEO_SET_ATTRIBUTES:257</para>258<programlisting>259typedef uint16_t video_attributes_t;260/⋆ bits: descr. ⋆/261/⋆ 15-14 Video compression mode (0=MPEG-1, 1=MPEG-2) ⋆/262/⋆ 13-12 TV system (0=525/60, 1=625/50) ⋆/263/⋆ 11-10 Aspect ratio (0=4:3, 3=16:9) ⋆/264/⋆ 9- 8 permitted display mode on 4:3 monitor (0=both, 1=only pan-sca ⋆/265/⋆ 7 line 21-1 data present in GOP (1=yes, 0=no) ⋆/266/⋆ 6 line 21-2 data present in GOP (1=yes, 0=no) ⋆/267/⋆ 5- 3 source resolution (0=720x480/576, 1=704x480/576, 2=352x480/57 ⋆/268/⋆ 2 source letterboxed (1=yes, 0=no) ⋆/269/⋆ 0 film/camera mode (0=camera, 1=film (625/50 only)) ⋆/270</programlisting>271</section></section>272273274<section id="video_function_calls">275<title>Video Function Calls</title>276277278<section id="video_fopen">279<title>open()</title>280<para>DESCRIPTION281</para>282<informaltable><tgroup cols="1"><tbody><row><entry283align="char">284<para>This system call opens a named video device (e.g. /dev/dvb/adapter0/video0)285for subsequent use.</para>286<para>When an open() call has succeeded, the device will be ready for use.287The significance of blocking or non-blocking mode is described in the288documentation for functions where there is a difference. It does not affect the289semantics of the open() call itself. A device opened in blocking mode can later290be put into non-blocking mode (and vice versa) using the F_SETFL command291of the fcntl system call. This is a standard system call, documented in the Linux292manual page for fcntl. Only one user can open the Video Device in O_RDWR293mode. All other attempts to open the device in this mode will fail, and an294error-code will be returned. If the Video Device is opened in O_RDONLY295mode, the only ioctl call that can be used is VIDEO_GET_STATUS. All other296call will return an error code.</para>297</entry>298</row></tbody></tgroup></informaltable>299300<para>SYNOPSIS301</para>302<informaltable><tgroup cols="1"><tbody><row><entry303align="char">304<para>int open(const char ⋆deviceName, int flags);</para>305</entry>306</row></tbody></tgroup></informaltable>307<para>PARAMETERS308</para>309<informaltable><tgroup cols="2"><tbody><row><entry310align="char">311<para>const char312*deviceName</para>313</entry><entry314align="char">315<para>Name of specific video device.</para>316</entry>317</row><row><entry318align="char">319<para>int flags</para>320</entry><entry321align="char">322<para>A bit-wise OR of the following flags:</para>323</entry>324</row><row><entry325align="char">326</entry><entry327align="char">328<para>O_RDONLY read-only access</para>329</entry>330</row><row><entry331align="char">332</entry><entry333align="char">334<para>O_RDWR read/write access</para>335</entry>336</row><row><entry337align="char">338</entry><entry339align="char">340<para>O_NONBLOCK open in non-blocking mode</para>341</entry>342</row><row><entry343align="char">344</entry><entry345align="char">346<para>(blocking mode is the default)</para>347</entry>348</row></tbody></tgroup></informaltable>349<para>ERRORS350</para>351<informaltable><tgroup cols="2"><tbody><row><entry352align="char">353<para>ENODEV</para>354</entry><entry355align="char">356<para>Device driver not loaded/available.</para>357</entry>358</row><row><entry359align="char">360<para>EINTERNAL</para>361</entry><entry362align="char">363<para>Internal error.</para>364</entry>365</row><row><entry366align="char">367<para>EBUSY</para>368</entry><entry369align="char">370<para>Device or resource busy.</para>371</entry>372</row><row><entry373align="char">374<para>EINVAL</para>375</entry><entry376align="char">377<para>Invalid argument.</para>378</entry>379</row></tbody></tgroup></informaltable>380381</section>382<section id="video_fclose">383<title>close()</title>384<para>DESCRIPTION385</para>386<informaltable><tgroup cols="1"><tbody><row><entry387align="char">388<para>This system call closes a previously opened video device.</para>389</entry>390</row></tbody></tgroup></informaltable>391<para>SYNOPSIS392</para>393<informaltable><tgroup cols="1"><tbody><row><entry394align="char">395<para>int close(int fd);</para>396</entry>397</row></tbody></tgroup></informaltable>398<para>PARAMETERS399</para>400<informaltable><tgroup cols="2"><tbody><row><entry401align="char">402<para>int fd</para>403</entry><entry404align="char">405<para>File descriptor returned by a previous call to open().</para>406</entry>407</row></tbody></tgroup></informaltable>408<para>ERRORS409</para>410<informaltable><tgroup cols="2"><tbody><row><entry411align="char">412<para>EBADF</para>413</entry><entry414align="char">415<para>fd is not a valid open file descriptor.</para>416</entry>417</row></tbody></tgroup></informaltable>418419</section>420<section id="video_fwrite">421<title>write()</title>422<para>DESCRIPTION423</para>424<informaltable><tgroup cols="1"><tbody><row><entry425align="char">426<para>This system call can only be used if VIDEO_SOURCE_MEMORY is selected427in the ioctl call VIDEO_SELECT_SOURCE. The data provided shall be in428PES format, unless the capability allows other formats. If O_NONBLOCK is429not specified the function will block until buffer space is available. The amount430of data to be transferred is implied by count.</para>431</entry>432</row></tbody></tgroup></informaltable>433<para>SYNOPSIS434</para>435<informaltable><tgroup cols="1"><tbody><row><entry436align="char">437<para>size_t write(int fd, const void ⋆buf, size_t count);</para>438</entry>439</row></tbody></tgroup></informaltable>440<para>PARAMETERS441</para>442<informaltable><tgroup cols="2"><tbody><row><entry443align="char">444<para>int fd</para>445</entry><entry446align="char">447<para>File descriptor returned by a previous call to open().</para>448</entry>449</row><row><entry450align="char">451<para>void *buf</para>452</entry><entry453align="char">454<para>Pointer to the buffer containing the PES data.</para>455</entry>456</row><row><entry457align="char">458<para>size_t count</para>459</entry><entry460align="char">461<para>Size of buf.</para>462</entry>463</row></tbody></tgroup></informaltable>464<para>ERRORS465</para>466<informaltable><tgroup cols="2"><tbody><row><entry467align="char">468<para>EPERM</para>469</entry><entry470align="char">471<para>Mode VIDEO_SOURCE_MEMORY not selected.</para>472</entry>473</row><row><entry474align="char">475<para>ENOMEM</para>476</entry><entry477align="char">478<para>Attempted to write more data than the internal buffer can479hold.</para>480</entry>481</row><row><entry482align="char">483<para>EBADF</para>484</entry><entry485align="char">486<para>fd is not a valid open file descriptor.</para>487</entry>488</row></tbody></tgroup></informaltable>489490</section><section491role="subsection"><title>VIDEO_STOP</title>492<para>DESCRIPTION493</para>494<informaltable><tgroup cols="1"><tbody><row><entry495align="char">496<para>This ioctl call asks the Video Device to stop playing the current stream.497Depending on the input parameter, the screen can be blanked out or displaying498the last decoded frame.</para>499</entry>500</row></tbody></tgroup></informaltable>501<para>SYNOPSIS502</para>503<informaltable><tgroup cols="1"><tbody><row><entry504align="char">505<para>int ioctl(fd, int request = VIDEO_STOP, boolean506mode);</para>507</entry>508</row></tbody></tgroup></informaltable>509<para>PARAMETERS510</para>511<informaltable><tgroup cols="2"><tbody><row><entry512align="char">513<para>int fd</para>514</entry><entry515align="char">516<para>File descriptor returned by a previous call to open().</para>517</entry>518</row><row><entry519align="char">520<para>int request</para>521</entry><entry522align="char">523<para>Equals VIDEO_STOP for this command.</para>524</entry>525</row><row><entry526align="char">527<para>Boolean mode</para>528</entry><entry529align="char">530<para>Indicates how the screen shall be handled.</para>531</entry>532</row><row><entry533align="char">534</entry><entry535align="char">536<para>TRUE: Blank screen when stop.</para>537</entry>538</row><row><entry539align="char">540</entry><entry541align="char">542<para>FALSE: Show last decoded frame.</para>543</entry>544</row></tbody></tgroup></informaltable>545<para>ERRORS546</para>547<informaltable><tgroup cols="2"><tbody><row><entry548align="char">549<para>EBADF</para>550</entry><entry551align="char">552<para>fd is not a valid open file descriptor</para>553</entry>554</row><row><entry555align="char">556<para>EINTERNAL</para>557</entry><entry558align="char">559<para>Internal error, possibly in the communication with the560DVB subsystem.</para>561</entry>562</row></tbody></tgroup></informaltable>563564</section><section565role="subsection"><title>VIDEO_PLAY</title>566<para>DESCRIPTION567</para>568<informaltable><tgroup cols="1"><tbody><row><entry569align="char">570<para>This ioctl call asks the Video Device to start playing a video stream from the571selected source.</para>572</entry>573</row></tbody></tgroup></informaltable>574<para>SYNOPSIS575</para>576<informaltable><tgroup cols="1"><tbody><row><entry577align="char">578<para>int ioctl(fd, int request = VIDEO_PLAY);</para>579</entry>580</row></tbody></tgroup></informaltable>581<para>PARAMETERS582</para>583<informaltable><tgroup cols="2"><tbody><row><entry584align="char">585<para>int fd</para>586</entry><entry587align="char">588<para>File descriptor returned by a previous call to open().</para>589</entry>590</row><row><entry591align="char">592<para>int request</para>593</entry><entry594align="char">595<para>Equals VIDEO_PLAY for this command.</para>596</entry>597</row></tbody></tgroup></informaltable>598<para>ERRORS599</para>600<informaltable><tgroup cols="2"><tbody><row><entry601align="char">602<para>EBADF</para>603</entry><entry604align="char">605<para>fd is not a valid open file descriptor</para>606</entry>607</row><row><entry608align="char">609<para>EINTERNAL</para>610</entry><entry611align="char">612<para>Internal error, possibly in the communication with the613DVB subsystem.</para>614</entry>615</row></tbody></tgroup></informaltable>616617</section><section618role="subsection"><title>VIDEO_FREEZE</title>619<para>DESCRIPTION620</para>621<informaltable><tgroup cols="1"><tbody><row><entry622align="char">623<para>This ioctl call suspends the live video stream being played. Decoding624and playing are frozen. It is then possible to restart the decoding625and playing process of the video stream using the VIDEO_CONTINUE626command. If VIDEO_SOURCE_MEMORY is selected in the ioctl call627VIDEO_SELECT_SOURCE, the DVB subsystem will not decode any more628data until the ioctl call VIDEO_CONTINUE or VIDEO_PLAY is performed.</para>629</entry>630</row></tbody></tgroup></informaltable>631<para>SYNOPSIS632</para>633<informaltable><tgroup cols="1"><tbody><row><entry634align="char">635<para>int ioctl(fd, int request = VIDEO_FREEZE);</para>636</entry>637</row></tbody></tgroup></informaltable>638<para>PARAMETERS639</para>640<informaltable><tgroup cols="2"><tbody><row><entry641align="char">642<para>int fd</para>643</entry><entry644align="char">645<para>File descriptor returned by a previous call to open().</para>646</entry>647</row><row><entry648align="char">649<para>int request</para>650</entry><entry651align="char">652<para>Equals VIDEO_FREEZE for this command.</para>653</entry>654</row></tbody></tgroup></informaltable>655<para>ERRORS656</para>657<informaltable><tgroup cols="2"><tbody><row><entry658align="char">659<para>EBADF</para>660</entry><entry661align="char">662<para>fd is not a valid open file descriptor</para>663</entry>664</row><row><entry665align="char">666<para>EINTERNAL</para>667</entry><entry668align="char">669<para>Internal error, possibly in the communication with the670DVB subsystem.</para>671</entry>672</row></tbody></tgroup></informaltable>673674</section><section675role="subsection"><title>VIDEO_CONTINUE</title>676<para>DESCRIPTION677</para>678<informaltable><tgroup cols="1"><tbody><row><entry679align="char">680<para>This ioctl call restarts decoding and playing processes of the video stream681which was played before a call to VIDEO_FREEZE was made.</para>682</entry>683</row></tbody></tgroup></informaltable>684<para>SYNOPSIS685</para>686<informaltable><tgroup cols="1"><tbody><row><entry687align="char">688<para>int ioctl(fd, int request = VIDEO_CONTINUE);</para>689</entry>690</row></tbody></tgroup></informaltable>691<para>PARAMETERS692</para>693<informaltable><tgroup cols="2"><tbody><row><entry694align="char">695<para>int fd</para>696</entry><entry697align="char">698<para>File descriptor returned by a previous call to open().</para>699</entry>700</row><row><entry701align="char">702<para>int request</para>703</entry><entry704align="char">705<para>Equals VIDEO_CONTINUE for this command.</para>706</entry>707</row></tbody></tgroup></informaltable>708<para>ERRORS709</para>710<informaltable><tgroup cols="2"><tbody><row><entry711align="char">712<para>EBADF</para>713</entry><entry714align="char">715<para>fd is not a valid open file descriptor</para>716</entry>717</row><row><entry718align="char">719<para>EINTERNAL</para>720</entry><entry721align="char">722<para>Internal error, possibly in the communication with the723DVB subsystem.</para>724</entry>725</row></tbody></tgroup></informaltable>726727</section><section728role="subsection"><title>VIDEO_SELECT_SOURCE</title>729<para>DESCRIPTION730</para>731<informaltable><tgroup cols="1"><tbody><row><entry732align="char">733<para>This ioctl call informs the video device which source shall be used for the input734data. The possible sources are demux or memory. If memory is selected, the735data is fed to the video device through the write command.</para>736</entry>737</row></tbody></tgroup></informaltable>738<para>SYNOPSIS739</para>740<informaltable><tgroup cols="1"><tbody><row><entry741align="char">742<para>int ioctl(fd, int request = VIDEO_SELECT_SOURCE,743video_stream_source_t source);</para>744</entry>745</row></tbody></tgroup></informaltable>746<para>PARAMETERS747</para>748<informaltable><tgroup cols="2"><tbody><row><entry749align="char">750<para>int fd</para>751</entry><entry752align="char">753<para>File descriptor returned by a previous call to open().</para>754</entry>755</row><row><entry756align="char">757<para>int request</para>758</entry><entry759align="char">760<para>Equals VIDEO_SELECT_SOURCE for this command.</para>761</entry>762</row><row><entry763align="char">764<para>video_stream_source_t765source</para>766</entry><entry767align="char">768<para>Indicates which source shall be used for the Video stream.</para>769</entry>770</row></tbody></tgroup></informaltable>771<para>ERRORS772</para>773<informaltable><tgroup cols="2"><tbody><row><entry774align="char">775<para>EBADF</para>776</entry><entry777align="char">778<para>fd is not a valid open file descriptor</para>779</entry>780</row><row><entry781align="char">782<para>EINTERNAL</para>783</entry><entry784align="char">785<para>Internal error, possibly in the communication with the786DVB subsystem.</para>787</entry>788</row></tbody></tgroup></informaltable>789790</section><section791role="subsection"><title>VIDEO_SET_BLANK</title>792<para>DESCRIPTION793</para>794<informaltable><tgroup cols="1"><tbody><row><entry795align="char">796<para>This ioctl call asks the Video Device to blank out the picture.</para>797</entry>798</row></tbody></tgroup></informaltable>799<para>SYNOPSIS800</para>801<informaltable><tgroup cols="1"><tbody><row><entry802align="char">803<para>int ioctl(fd, int request = VIDEO_SET_BLANK, boolean804mode);</para>805</entry>806</row></tbody></tgroup></informaltable>807<para>PARAMETERS808</para>809<informaltable><tgroup cols="2"><tbody><row><entry810align="char">811<para>int fd</para>812</entry><entry813align="char">814<para>File descriptor returned by a previous call to open().</para>815</entry>816</row><row><entry817align="char">818<para>int request</para>819</entry><entry820align="char">821<para>Equals VIDEO_SET_BLANK for this command.</para>822</entry>823</row><row><entry824align="char">825<para>boolean mode</para>826</entry><entry827align="char">828<para>TRUE: Blank screen when stop.</para>829</entry>830</row><row><entry831align="char">832</entry><entry833align="char">834<para>FALSE: Show last decoded frame.</para>835</entry>836</row></tbody></tgroup></informaltable>837<para>ERRORS838</para>839<informaltable><tgroup cols="2"><tbody><row><entry840align="char">841<para>EBADF</para>842</entry><entry843align="char">844<para>fd is not a valid open file descriptor</para>845</entry>846</row><row><entry847align="char">848<para>EINTERNAL</para>849</entry><entry850align="char">851<para>Internal error, possibly in the communication with the852DVB subsystem.</para>853</entry>854</row><row><entry855align="char">856<para>EINVAL</para>857</entry><entry858align="char">859<para>Illegal input parameter</para>860</entry>861</row></tbody></tgroup></informaltable>862863</section><section864role="subsection"><title>VIDEO_GET_STATUS</title>865<para>DESCRIPTION866</para>867<informaltable><tgroup cols="1"><tbody><row><entry868align="char">869<para>This ioctl call asks the Video Device to return the current status of the device.</para>870</entry>871</row></tbody></tgroup></informaltable>872<para>SYNOPSIS873</para>874<informaltable><tgroup cols="1"><tbody><row><entry875align="char">876<para> int ioctl(fd, int request = VIDEO_GET_STATUS, struct877video_status ⋆status);</para>878</entry>879</row></tbody></tgroup></informaltable>880<para>PARAMETERS881</para>882<informaltable><tgroup cols="2"><tbody><row><entry883align="char">884<para>int fd</para>885</entry><entry886align="char">887<para>File descriptor returned by a previous call to open().</para>888</entry>889</row><row><entry890align="char">891<para>int request</para>892</entry><entry893align="char">894<para>Equals VIDEO_GET_STATUS for this command.</para>895</entry>896</row><row><entry897align="char">898<para>struct video_status899*status</para>900</entry><entry901align="char">902<para>Returns the current status of the Video Device.</para>903</entry>904</row></tbody></tgroup></informaltable>905<para>ERRORS906</para>907<informaltable><tgroup cols="2"><tbody><row><entry908align="char">909<para>EBADF</para>910</entry><entry911align="char">912<para>fd is not a valid open file descriptor</para>913</entry>914</row><row><entry915align="char">916<para>EINTERNAL</para>917</entry><entry918align="char">919<para>Internal error, possibly in the communication with the920DVB subsystem.</para>921</entry>922</row><row><entry923align="char">924<para>EFAULT</para>925</entry><entry926align="char">927<para>status points to invalid address</para>928</entry>929</row></tbody></tgroup></informaltable>930931</section><section932role="subsection"><title>VIDEO_GET_EVENT</title>933<para>DESCRIPTION934</para>935<informaltable><tgroup cols="1"><tbody><row><entry936align="char">937<para>This ioctl call returns an event of type video_event if available. If an event is938not available, the behavior depends on whether the device is in blocking or939non-blocking mode. In the latter case, the call fails immediately with errno940set to EWOULDBLOCK. In the former case, the call blocks until an event941becomes available. The standard Linux poll() and/or select() system calls can942be used with the device file descriptor to watch for new events. For select(),943the file descriptor should be included in the exceptfds argument, and for944poll(), POLLPRI should be specified as the wake-up condition. Read-only945permissions are sufficient for this ioctl call.</para>946</entry>947</row></tbody></tgroup></informaltable>948<para>SYNOPSIS949</para>950<informaltable><tgroup cols="1"><tbody><row><entry951align="char">952<para> int ioctl(fd, int request = VIDEO_GET_EVENT, struct953video_event ⋆ev);</para>954</entry>955</row></tbody></tgroup></informaltable>956<para>PARAMETERS957</para>958<informaltable><tgroup cols="2"><tbody><row><entry959align="char">960<para>int fd</para>961</entry><entry962align="char">963<para>File descriptor returned by a previous call to open().</para>964</entry>965</row><row><entry966align="char">967<para>int request</para>968</entry><entry969align="char">970<para>Equals VIDEO_GET_EVENT for this command.</para>971</entry>972</row><row><entry973align="char">974<para>struct video_event975*ev</para>976</entry><entry977align="char">978<para>Points to the location where the event, if any, is to be979stored.</para>980</entry>981</row></tbody></tgroup></informaltable>982<para>ERRORS983</para>984<informaltable><tgroup cols="2"><tbody><row><entry985align="char">986<para>EBADF</para>987</entry><entry988align="char">989<para>fd is not a valid open file descriptor</para>990</entry>991</row><row><entry992align="char">993<para>EFAULT</para>994</entry><entry995align="char">996<para>ev points to invalid address</para>997</entry>998</row><row><entry999align="char">1000<para>EWOULDBLOCK</para>1001</entry><entry1002align="char">1003<para>There is no event pending, and the device is in1004non-blocking mode.</para>1005</entry>1006</row><row><entry1007align="char">1008<para>EOVERFLOW</para>1009</entry><entry1010align="char">1011</entry>1012</row><row><entry1013align="char">1014</entry><entry1015align="char">1016<para>Overflow in event queue - one or more events were lost.</para>1017</entry>1018</row></tbody></tgroup></informaltable>10191020</section><section1021role="subsection"><title>VIDEO_SET_DISPLAY_FORMAT</title>1022<para>DESCRIPTION1023</para>1024<informaltable><tgroup cols="1"><tbody><row><entry1025align="char">1026<para>This ioctl call asks the Video Device to select the video format to be applied1027by the MPEG chip on the video.</para>1028</entry>1029</row></tbody></tgroup></informaltable>1030<para>SYNOPSIS1031</para>1032<informaltable><tgroup cols="1"><tbody><row><entry1033align="char">1034<para> int ioctl(fd, int request =1035VIDEO_SET_DISPLAY_FORMAT, video_display_format_t1036format);</para>1037</entry>1038</row></tbody></tgroup></informaltable>1039<para>PARAMETERS1040</para>1041<informaltable><tgroup cols="2"><tbody><row><entry1042align="char">1043<para>int fd</para>1044</entry><entry1045align="char">1046<para>File descriptor returned by a previous call to open().</para>1047</entry>1048</row><row><entry1049align="char">1050<para>int request</para>1051</entry><entry1052align="char">1053<para>Equals VIDEO_SET_DISPLAY_FORMAT for this1054command.</para>1055</entry>1056</row><row><entry1057align="char">1058<para>video_display_format_t1059format</para>1060</entry><entry1061align="char">1062<para>Selects the video format to be used.</para>1063</entry>1064</row></tbody></tgroup></informaltable>1065<para>ERRORS1066</para>1067<informaltable><tgroup cols="2"><tbody><row><entry1068align="char">1069<para>EBADF</para>1070</entry><entry1071align="char">1072<para>fd is not a valid open file descriptor</para>1073</entry>1074</row><row><entry1075align="char">1076<para>EINTERNAL</para>1077</entry><entry1078align="char">1079<para>Internal error.</para>1080</entry>1081</row><row><entry1082align="char">1083<para>EINVAL</para>1084</entry><entry1085align="char">1086<para>Illegal parameter format.</para>1087</entry>1088</row></tbody></tgroup></informaltable>10891090</section><section1091role="subsection"><title>VIDEO_STILLPICTURE</title>1092<para>DESCRIPTION1093</para>1094<informaltable><tgroup cols="1"><tbody><row><entry1095align="char">1096<para>This ioctl call asks the Video Device to display a still picture (I-frame). The1097input data shall contain an I-frame. If the pointer is NULL, then the current1098displayed still picture is blanked.</para>1099</entry>1100</row></tbody></tgroup></informaltable>1101<para>SYNOPSIS1102</para>1103<informaltable><tgroup cols="1"><tbody><row><entry1104align="char">1105<para>int ioctl(fd, int request = VIDEO_STILLPICTURE,1106struct video_still_picture ⋆sp);</para>1107</entry>1108</row></tbody></tgroup></informaltable>1109<para>PARAMETERS1110</para>1111<informaltable><tgroup cols="2"><tbody><row><entry1112align="char">1113<para>int fd</para>1114</entry><entry1115align="char">1116<para>File descriptor returned by a previous call to open().</para>1117</entry>1118</row><row><entry1119align="char">1120<para>int request</para>1121</entry><entry1122align="char">1123<para>Equals VIDEO_STILLPICTURE for this command.</para>1124</entry>1125</row><row><entry1126align="char">1127<para>struct1128video_still_picture1129*sp</para>1130</entry><entry1131align="char">1132<para>Pointer to a location where an I-frame and size is stored.</para>1133</entry>1134</row></tbody></tgroup></informaltable>1135<para>ERRORS1136</para>1137<informaltable><tgroup cols="2"><tbody><row><entry1138align="char">1139<para>EBADF</para>1140</entry><entry1141align="char">1142<para>fd is not a valid open file descriptor</para>1143</entry>1144</row><row><entry1145align="char">1146<para>EINTERNAL</para>1147</entry><entry1148align="char">1149<para>Internal error.</para>1150</entry>1151</row><row><entry1152align="char">1153<para>EFAULT</para>1154</entry><entry1155align="char">1156<para>sp points to an invalid iframe.</para>1157</entry>1158</row></tbody></tgroup></informaltable>11591160</section><section1161role="subsection"><title>VIDEO_FAST_FORWARD</title>1162<para>DESCRIPTION1163</para>1164<informaltable><tgroup cols="1"><tbody><row><entry1165align="char">1166<para>This ioctl call asks the Video Device to skip decoding of N number of I-frames.1167This call can only be used if VIDEO_SOURCE_MEMORY is selected.</para>1168</entry>1169</row></tbody></tgroup></informaltable>1170<para>SYNOPSIS1171</para>1172<informaltable><tgroup cols="1"><tbody><row><entry1173align="char">1174<para>int ioctl(fd, int request = VIDEO_FAST_FORWARD, int1175nFrames);</para>1176</entry>1177</row></tbody></tgroup></informaltable>1178<para>PARAMETERS1179</para>1180<informaltable><tgroup cols="2"><tbody><row><entry1181align="char">1182<para>int fd</para>1183</entry><entry1184align="char">1185<para>File descriptor returned by a previous call to open().</para>1186</entry>1187</row><row><entry1188align="char">1189<para>int request</para>1190</entry><entry1191align="char">1192<para>Equals VIDEO_FAST_FORWARD for this command.</para>1193</entry>1194</row><row><entry1195align="char">1196<para>int nFrames</para>1197</entry><entry1198align="char">1199<para>The number of frames to skip.</para>1200</entry>1201</row></tbody></tgroup></informaltable>1202<para>ERRORS1203</para>1204<informaltable><tgroup cols="2"><tbody><row><entry1205align="char">1206<para>EBADF</para>1207</entry><entry1208align="char">1209<para>fd is not a valid open file descriptor</para>1210</entry>1211</row><row><entry1212align="char">1213<para>EINTERNAL</para>1214</entry><entry1215align="char">1216<para>Internal error.</para>1217</entry>1218</row><row><entry1219align="char">1220<para>EPERM</para>1221</entry><entry1222align="char">1223<para>Mode VIDEO_SOURCE_MEMORY not selected.</para>1224</entry>1225</row><row><entry1226align="char">1227<para>EINVAL</para>1228</entry><entry1229align="char">1230<para>Illegal parameter format.</para>1231</entry>1232</row></tbody></tgroup></informaltable>12331234</section><section1235role="subsection"><title>VIDEO_SLOWMOTION</title>1236<para>DESCRIPTION1237</para>1238<informaltable><tgroup cols="1"><tbody><row><entry1239align="char">1240<para>This ioctl call asks the video device to repeat decoding frames N number of1241times. This call can only be used if VIDEO_SOURCE_MEMORY is selected.</para>1242</entry>1243</row></tbody></tgroup></informaltable>1244<para>SYNOPSIS1245</para>1246<informaltable><tgroup cols="1"><tbody><row><entry1247align="char">1248<para>int ioctl(fd, int request = VIDEO_SLOWMOTION, int1249nFrames);</para>1250</entry>1251</row></tbody></tgroup></informaltable>1252<para>PARAMETERS1253</para>1254<informaltable><tgroup cols="2"><tbody><row><entry1255align="char">1256<para>int fd</para>1257</entry><entry1258align="char">1259<para>File descriptor returned by a previous call to open().</para>1260</entry>1261</row><row><entry1262align="char">1263<para>int request</para>1264</entry><entry1265align="char">1266<para>Equals VIDEO_SLOWMOTION for this command.</para>1267</entry>1268</row><row><entry1269align="char">1270<para>int nFrames</para>1271</entry><entry1272align="char">1273<para>The number of times to repeat each frame.</para>1274</entry>1275</row></tbody></tgroup></informaltable>1276<para>ERRORS1277</para>1278<informaltable><tgroup cols="2"><tbody><row><entry1279align="char">1280<para>EBADF</para>1281</entry><entry1282align="char">1283<para>fd is not a valid open file descriptor</para>1284</entry>1285</row><row><entry1286align="char">1287<para>EINTERNAL</para>1288</entry><entry1289align="char">1290<para>Internal error.</para>1291</entry>1292</row><row><entry1293align="char">1294<para>EPERM</para>1295</entry><entry1296align="char">1297<para>Mode VIDEO_SOURCE_MEMORY not selected.</para>1298</entry>1299</row><row><entry1300align="char">1301<para>EINVAL</para>1302</entry><entry1303align="char">1304<para>Illegal parameter format.</para>1305</entry>1306</row></tbody></tgroup></informaltable>13071308</section><section1309role="subsection"><title>VIDEO_GET_CAPABILITIES</title>1310<para>DESCRIPTION1311</para>1312<informaltable><tgroup cols="1"><tbody><row><entry1313align="char">1314<para>This ioctl call asks the video device about its decoding capabilities. On success1315it returns and integer which has bits set according to the defines in section ??.</para>1316</entry>1317</row></tbody></tgroup></informaltable>1318<para>SYNOPSIS1319</para>1320<informaltable><tgroup cols="1"><tbody><row><entry1321align="char">1322<para>int ioctl(fd, int request = VIDEO_GET_CAPABILITIES,1323unsigned int ⋆cap);</para>1324</entry>1325</row></tbody></tgroup></informaltable>1326<para>PARAMETERS1327</para>1328<informaltable><tgroup cols="2"><tbody><row><entry1329align="char">1330<para>int fd</para>1331</entry><entry1332align="char">1333<para>File descriptor returned by a previous call to open().</para>1334</entry>1335</row><row><entry1336align="char">1337<para>int request</para>1338</entry><entry1339align="char">1340<para>Equals VIDEO_GET_CAPABILITIES for this1341command.</para>1342</entry>1343</row><row><entry1344align="char">1345<para>unsigned int *cap</para>1346</entry><entry1347align="char">1348<para>Pointer to a location where to store the capability1349information.</para>1350</entry>1351</row></tbody></tgroup></informaltable>1352<para>ERRORS1353</para>1354<informaltable><tgroup cols="2"><tbody><row><entry1355align="char">1356<para>EBADF</para>1357</entry><entry1358align="char">1359<para>fd is not a valid open file descriptor</para>1360</entry>1361</row><row><entry1362align="char">1363<para>EFAULT</para>1364</entry><entry1365align="char">1366<para>cap points to an invalid iframe.</para>1367</entry>1368</row></tbody></tgroup></informaltable>13691370</section><section1371role="subsection"><title>VIDEO_SET_ID</title>1372<para>DESCRIPTION1373</para>1374<informaltable><tgroup cols="1"><tbody><row><entry1375align="char">1376<para>This ioctl selects which sub-stream is to be decoded if a program or system1377stream is sent to the video device.</para>1378</entry>1379</row></tbody></tgroup></informaltable>1380<para>SYNOPSIS1381</para>1382<informaltable><tgroup cols="1"><tbody><row><entry1383align="char">1384<para>int ioctl(int fd, int request = VIDEO_SET_ID, int1385id);</para>1386</entry>1387</row></tbody></tgroup></informaltable>1388<para>PARAMETERS1389</para>1390<informaltable><tgroup cols="2"><tbody><row><entry1391align="char">1392<para>int fd</para>1393</entry><entry1394align="char">1395<para>File descriptor returned by a previous call to open().</para>1396</entry>1397</row><row><entry1398align="char">1399<para>int request</para>1400</entry><entry1401align="char">1402<para>Equals VIDEO_SET_ID for this command.</para>1403</entry>1404</row><row><entry1405align="char">1406<para>int id</para>1407</entry><entry1408align="char">1409<para>video sub-stream id</para>1410</entry>1411</row></tbody></tgroup></informaltable>1412<para>ERRORS1413</para>1414<informaltable><tgroup cols="2"><tbody><row><entry1415align="char">1416<para>EBADF</para>1417</entry><entry1418align="char">1419<para>fd is not a valid open file descriptor.</para>1420</entry>1421</row><row><entry1422align="char">1423<para>EINTERNAL</para>1424</entry><entry1425align="char">1426<para>Internal error.</para>1427</entry>1428</row><row><entry1429align="char">1430<para>EINVAL</para>1431</entry><entry1432align="char">1433<para>Invalid sub-stream id.</para>1434</entry>1435</row></tbody></tgroup></informaltable>14361437</section><section1438role="subsection"><title>VIDEO_CLEAR_BUFFER</title>1439<para>DESCRIPTION1440</para>1441<informaltable><tgroup cols="1"><tbody><row><entry1442align="char">1443<para>This ioctl call clears all video buffers in the driver and in the decoder hardware.</para>1444</entry>1445</row></tbody></tgroup></informaltable>1446<para>SYNOPSIS1447</para>1448<informaltable><tgroup cols="1"><tbody><row><entry1449align="char">1450<para>int ioctl(fd, int request = VIDEO_CLEAR_BUFFER);</para>1451</entry>1452</row></tbody></tgroup></informaltable>1453<para>PARAMETERS1454</para>1455<informaltable><tgroup cols="2"><tbody><row><entry1456align="char">1457<para>int fd</para>1458</entry><entry1459align="char">1460<para>File descriptor returned by a previous call to open().</para>1461</entry>1462</row><row><entry1463align="char">1464<para>int request</para>1465</entry><entry1466align="char">1467<para>Equals VIDEO_CLEAR_BUFFER for this command.</para>1468</entry>1469</row></tbody></tgroup></informaltable>1470<para>ERRORS1471</para>1472<informaltable><tgroup cols="2"><tbody><row><entry1473align="char">1474<para>EBADF</para>1475</entry><entry1476align="char">1477<para>fd is not a valid open file descriptor</para>1478</entry>1479</row></tbody></tgroup></informaltable>14801481</section><section1482role="subsection"><title>VIDEO_SET_STREAMTYPE</title>1483<para>DESCRIPTION1484</para>1485<informaltable><tgroup cols="1"><tbody><row><entry1486align="char">1487<para>This ioctl tells the driver which kind of stream to expect being written to it. If1488this call is not used the default of video PES is used. Some drivers might not1489support this call and always expect PES.</para>1490</entry>1491</row></tbody></tgroup></informaltable>1492<para>SYNOPSIS1493</para>1494<informaltable><tgroup cols="1"><tbody><row><entry1495align="char">1496<para>int ioctl(fd, int request = VIDEO_SET_STREAMTYPE,1497int type);</para>1498</entry>1499</row></tbody></tgroup></informaltable>1500<para>PARAMETERS1501</para>1502<informaltable><tgroup cols="2"><tbody><row><entry1503align="char">1504<para>int fd</para>1505</entry><entry1506align="char">1507<para>File descriptor returned by a previous call to open().</para>1508</entry>1509</row><row><entry1510align="char">1511<para>int request</para>1512</entry><entry1513align="char">1514<para>Equals VIDEO_SET_STREAMTYPE for this command.</para>1515</entry>1516</row><row><entry1517align="char">1518<para>int type</para>1519</entry><entry1520align="char">1521<para>stream type</para>1522</entry>1523</row></tbody></tgroup></informaltable>1524<para>ERRORS1525</para>1526<informaltable><tgroup cols="2"><tbody><row><entry1527align="char">1528<para>EBADF</para>1529</entry><entry1530align="char">1531<para>fd is not a valid open file descriptor</para>1532</entry>1533</row><row><entry1534align="char">1535<para>EINVAL</para>1536</entry><entry1537align="char">1538<para>type is not a valid or supported stream type.</para>1539</entry>1540</row></tbody></tgroup></informaltable>15411542</section><section1543role="subsection"><title>VIDEO_SET_FORMAT</title>1544<para>DESCRIPTION1545</para>1546<informaltable><tgroup cols="1"><tbody><row><entry1547align="char">1548<para>This ioctl sets the screen format (aspect ratio) of the connected output device1549(TV) so that the output of the decoder can be adjusted accordingly.</para>1550</entry>1551</row></tbody></tgroup></informaltable>1552<para>SYNOPSIS1553</para>1554<informaltable><tgroup cols="1"><tbody><row><entry1555align="char">1556<para> int ioctl(fd, int request = VIDEO_SET_FORMAT,1557video_format_t format);</para>1558</entry>1559</row></tbody></tgroup></informaltable>1560<para>PARAMETERS1561</para>1562<informaltable><tgroup cols="2"><tbody><row><entry1563align="char">1564<para>int fd</para>1565</entry><entry1566align="char">1567<para>File descriptor returned by a previous call to open().</para>1568</entry>1569</row><row><entry1570align="char">1571<para>int request</para>1572</entry><entry1573align="char">1574<para>Equals VIDEO_SET_FORMAT for this command.</para>1575</entry>1576</row><row><entry1577align="char">1578<para>video_format_t1579format</para>1580</entry><entry1581align="char">1582<para>video format of TV as defined in section ??.</para>1583</entry>1584</row></tbody></tgroup></informaltable>1585<para>ERRORS1586</para>1587<informaltable><tgroup cols="2"><tbody><row><entry1588align="char">1589<para>EBADF</para>1590</entry><entry1591align="char">1592<para>fd is not a valid open file descriptor</para>1593</entry>1594</row><row><entry1595align="char">1596<para>EINVAL</para>1597</entry><entry1598align="char">1599<para>format is not a valid video format.</para>1600</entry>1601</row></tbody></tgroup></informaltable>16021603</section><section1604role="subsection"><title>VIDEO_SET_SYSTEM</title>1605<para>DESCRIPTION1606</para>1607<informaltable><tgroup cols="1"><tbody><row><entry1608align="char">1609<para>This ioctl sets the television output format. The format (see section ??) may1610vary from the color format of the displayed MPEG stream. If the hardware is1611not able to display the requested format the call will return an error.</para>1612</entry>1613</row></tbody></tgroup></informaltable>1614<para>SYNOPSIS1615</para>1616<informaltable><tgroup cols="1"><tbody><row><entry1617align="char">1618<para> int ioctl(fd, int request = VIDEO_SET_SYSTEM ,1619video_system_t system);</para>1620</entry>1621</row></tbody></tgroup></informaltable>1622<para>PARAMETERS1623</para>1624<informaltable><tgroup cols="2"><tbody><row><entry1625align="char">1626<para>int fd</para>1627</entry><entry1628align="char">1629<para>File descriptor returned by a previous call to open().</para>1630</entry>1631</row><row><entry1632align="char">1633<para>int request</para>1634</entry><entry1635align="char">1636<para>Equals VIDEO_SET_FORMAT for this command.</para>1637</entry>1638</row><row><entry1639align="char">1640<para>video_system_t1641system</para>1642</entry><entry1643align="char">1644<para>video system of TV output.</para>1645</entry>1646</row></tbody></tgroup></informaltable>1647<para>ERRORS1648</para>1649<informaltable><tgroup cols="2"><tbody><row><entry1650align="char">1651<para>EBADF</para>1652</entry><entry1653align="char">1654<para>fd is not a valid open file descriptor</para>1655</entry>1656</row><row><entry1657align="char">1658<para>EINVAL</para>1659</entry><entry1660align="char">1661<para>system is not a valid or supported video system.</para>1662</entry>1663</row></tbody></tgroup></informaltable>16641665</section><section1666role="subsection"><title>VIDEO_SET_HIGHLIGHT</title>1667<para>DESCRIPTION1668</para>1669<informaltable><tgroup cols="1"><tbody><row><entry1670align="char">1671<para>This ioctl sets the SPU highlight information for the menu access of a DVD.</para>1672</entry>1673</row></tbody></tgroup></informaltable>1674<para>SYNOPSIS1675</para>1676<informaltable><tgroup cols="1"><tbody><row><entry1677align="char">1678<para> int ioctl(fd, int request = VIDEO_SET_HIGHLIGHT1679,video_highlight_t ⋆vhilite)</para>1680</entry>1681</row></tbody></tgroup></informaltable>1682<para>PARAMETERS1683</para>1684<informaltable><tgroup cols="2"><tbody><row><entry1685align="char">1686<para>int fd</para>1687</entry><entry1688align="char">1689<para>File descriptor returned by a previous call to open().</para>1690</entry>1691</row><row><entry1692align="char">1693<para>int request</para>1694</entry><entry1695align="char">1696<para>Equals VIDEO_SET_HIGHLIGHT for this command.</para>1697</entry>1698</row><row><entry1699align="char">1700<para>video_highlight_t1701*vhilite</para>1702</entry><entry1703align="char">1704<para>SPU Highlight information according to section ??.</para>1705</entry>1706</row></tbody></tgroup></informaltable>1707<para>ERRORS1708</para>1709<informaltable><tgroup cols="2"><tbody><row><entry1710align="char">1711<para>EBADF</para>1712</entry><entry1713align="char">1714<para>fd is not a valid open file descriptor.</para>1715</entry>1716</row><row><entry1717align="char">1718<para>EINVAL</para>1719</entry><entry1720align="char">1721<para>input is not a valid highlight setting.</para>1722</entry>1723</row></tbody></tgroup></informaltable>17241725</section><section1726role="subsection"><title>VIDEO_SET_SPU</title>1727<para>DESCRIPTION1728</para>1729<informaltable><tgroup cols="1"><tbody><row><entry1730align="char">1731<para>This ioctl activates or deactivates SPU decoding in a DVD input stream. It can1732only be used, if the driver is able to handle a DVD stream.</para>1733</entry>1734</row></tbody></tgroup></informaltable>1735<para>SYNOPSIS1736</para>1737<informaltable><tgroup cols="1"><tbody><row><entry1738align="char">1739<para> int ioctl(fd, int request = VIDEO_SET_SPU ,1740video_spu_t ⋆spu)</para>1741</entry>1742</row></tbody></tgroup></informaltable>1743<para>PARAMETERS1744</para>1745<informaltable><tgroup cols="2"><tbody><row><entry1746align="char">1747<para>int fd</para>1748</entry><entry1749align="char">1750<para>File descriptor returned by a previous call to open().</para>1751</entry>1752</row><row><entry1753align="char">1754<para>int request</para>1755</entry><entry1756align="char">1757<para>Equals VIDEO_SET_SPU for this command.</para>1758</entry>1759</row><row><entry1760align="char">1761<para>video_spu_t *spu</para>1762</entry><entry1763align="char">1764<para>SPU decoding (de)activation and subid setting according1765to section ??.</para>1766</entry>1767</row></tbody></tgroup></informaltable>1768<para>ERRORS1769</para>1770<informaltable><tgroup cols="2"><tbody><row><entry1771align="char">1772<para>EBADF</para>1773</entry><entry1774align="char">1775<para>fd is not a valid open file descriptor</para>1776</entry>1777</row><row><entry1778align="char">1779<para>EINVAL</para>1780</entry><entry1781align="char">1782<para>input is not a valid spu setting or driver cannot handle1783SPU.</para>1784</entry>1785</row></tbody></tgroup></informaltable>17861787</section><section1788role="subsection"><title>VIDEO_SET_SPU_PALETTE</title>1789<para>DESCRIPTION1790</para>1791<informaltable><tgroup cols="1"><tbody><row><entry1792align="char">1793<para>This ioctl sets the SPU color palette.</para>1794</entry>1795</row></tbody></tgroup></informaltable>1796<para>SYNOPSIS1797</para>1798<informaltable><tgroup cols="1"><tbody><row><entry1799align="char">1800<para> int ioctl(fd, int request = VIDEO_SET_SPU_PALETTE1801,video_spu_palette_t ⋆palette )</para>1802</entry>1803</row></tbody></tgroup></informaltable>1804<para>PARAMETERS1805</para>1806<informaltable><tgroup cols="2"><tbody><row><entry1807align="char">1808<para>int fd</para>1809</entry><entry1810align="char">1811<para>File descriptor returned by a previous call to open().</para>1812</entry>1813</row><row><entry1814align="char">1815<para>int request</para>1816</entry><entry1817align="char">1818<para>Equals VIDEO_SET_SPU_PALETTE for this command.</para>1819</entry>1820</row><row><entry1821align="char">1822<para>video_spu_palette_t1823*palette</para>1824</entry><entry1825align="char">1826<para>SPU palette according to section ??.</para>1827</entry>1828</row></tbody></tgroup></informaltable>1829<para>ERRORS1830</para>1831<informaltable><tgroup cols="2"><tbody><row><entry1832align="char">1833<para>EBADF</para>1834</entry><entry1835align="char">1836<para>fd is not a valid open file descriptor</para>1837</entry>1838</row><row><entry1839align="char">1840<para>EINVAL</para>1841</entry><entry1842align="char">1843<para>input is not a valid palette or driver doesn’t handle SPU.</para>1844</entry>1845</row></tbody></tgroup></informaltable>18461847</section><section1848role="subsection"><title>VIDEO_GET_NAVI</title>1849<para>DESCRIPTION1850</para>1851<informaltable><tgroup cols="1"><tbody><row><entry1852align="char">1853<para>This ioctl returns navigational information from the DVD stream. This is1854especially needed if an encoded stream has to be decoded by the hardware.</para>1855</entry>1856</row></tbody></tgroup></informaltable>1857<para>SYNOPSIS1858</para>1859<informaltable><tgroup cols="1"><tbody><row><entry1860align="char">1861<para> int ioctl(fd, int request = VIDEO_GET_NAVI ,1862video_navi_pack_t ⋆navipack)</para>1863</entry>1864</row></tbody></tgroup></informaltable>1865<para>PARAMETERS1866</para>1867<informaltable><tgroup cols="2"><tbody><row><entry1868align="char">1869<para>int fd</para>1870</entry><entry1871align="char">1872<para>File descriptor returned by a previous call to open().</para>1873</entry>1874</row><row><entry1875align="char">1876<para>int request</para>1877</entry><entry1878align="char">1879<para>Equals VIDEO_GET_NAVI for this command.</para>1880</entry>1881</row><row><entry1882align="char">1883<para>video_navi_pack_t1884*navipack</para>1885</entry><entry1886align="char">1887<para>PCI or DSI pack (private stream 2) according to section1888??.</para>1889</entry>1890</row></tbody></tgroup></informaltable>1891<para>ERRORS1892</para>1893<informaltable><tgroup cols="2"><tbody><row><entry1894align="char">1895<para>EBADF</para>1896</entry><entry1897align="char">1898<para>fd is not a valid open file descriptor</para>1899</entry>1900</row><row><entry1901align="char">1902<para>EFAULT</para>1903</entry><entry1904align="char">1905<para>driver is not able to return navigational information</para>1906</entry>1907</row></tbody></tgroup></informaltable>19081909</section><section1910role="subsection"><title>VIDEO_SET_ATTRIBUTES</title>1911<para>DESCRIPTION1912</para>1913<informaltable><tgroup cols="1"><tbody><row><entry1914align="char">1915<para>This ioctl is intended for DVD playback and allows you to set certain1916information about the stream. Some hardware may not need this information,1917but the call also tells the hardware to prepare for DVD playback.</para>1918</entry>1919</row></tbody></tgroup></informaltable>1920<para>SYNOPSIS1921</para>1922<informaltable><tgroup cols="1"><tbody><row><entry1923align="char">1924<para> int ioctl(fd, int request = VIDEO_SET_ATTRIBUTE1925,video_attributes_t vattr)</para>1926</entry>1927</row></tbody></tgroup></informaltable>1928<para>PARAMETERS1929</para>1930<informaltable><tgroup cols="2"><tbody><row><entry1931align="char">1932<para>int fd</para>1933</entry><entry1934align="char">1935<para>File descriptor returned by a previous call to open().</para>1936</entry>1937</row><row><entry1938align="char">1939<para>int request</para>1940</entry><entry1941align="char">1942<para>Equals VIDEO_SET_ATTRIBUTE for this command.</para>1943</entry>1944</row><row><entry1945align="char">1946<para>video_attributes_t1947vattr</para>1948</entry><entry1949align="char">1950<para>video attributes according to section ??.</para>1951</entry>1952</row></tbody></tgroup></informaltable>1953<para>ERRORS1954</para>1955<informaltable><tgroup cols="2"><tbody><row><entry1956align="char">1957<para>EBADF</para>1958</entry><entry1959align="char">1960<para>fd is not a valid open file descriptor</para>1961</entry>1962</row><row><entry1963align="char">1964<para>EINVAL</para>1965</entry><entry1966align="char">1967<para>input is not a valid attribute setting.</para>1968</entry>1969</row></tbody></tgroup></informaltable>1970</section></section>197119721973