Difference between revisions of "Hacker Guide/Access Demux"
Line 20: | Line 20: | ||
set_category( CAT_INPUT ) | set_category( CAT_INPUT ) | ||
set_subcategory( SUBCAT_INPUT_ACCESS ) | set_subcategory( SUBCAT_INPUT_ACCESS ) | ||
+ | |||
+ | == Functions to implement == | ||
+ | |||
+ | After implementing Open() and Close() functions, you will need to implement a few majors features that will be implemented by your functions. | ||
+ | |||
+ | As you can see in [[Documentation:Hacker's_Guide/Demux|demux]], you should define: | ||
+ | |||
+ | *Demux, as in pf_demux | ||
+ | *Control, as in pf_control ''' NB:''' please refer to [[Documentation:Hacker's_Guide/Demux#Control|demux Control documentation]] | ||
+ | |||
+ | After implementing those functions, you should assign them to the corresponding pf_ function. | ||
+ | |||
+ | See {{VLCSourceFile|name=include/vlc_demux.h}} and {{VLCSourceFile|name=include/vlc_access.h}} | ||
{{Documentation}}[[Category:Coding]] | {{Documentation}}[[Category:Coding]] |
Revision as of 11:00, 12 November 2010
Description
The modules of 'access_demux' capability are designed to handle the access and part of the demux stage in the same module.
Therefore, you are required to read access and demux pages before going on.
An access-demuxer could be seen as a demuxer that handles the access at the same time.
In an access-demuxer, the stream s is null.
Examples of access-demuxer are DVD, Bluray, v4l2 modules.
Write an access-demux module
To write an access_demuxer module, start by reading the introduction to module writing.
Then, you should specify your module of being of access_demux type:
set_capability( "access_demux", 60 ) set_category( CAT_INPUT ) set_subcategory( SUBCAT_INPUT_ACCESS )
Functions to implement
After implementing Open() and Close() functions, you will need to implement a few majors features that will be implemented by your functions.
As you can see in demux, you should define:
- Demux, as in pf_demux
- Control, as in pf_control NB: please refer to demux Control documentation
After implementing those functions, you should assign them to the corresponding pf_ function.
See include/vlc_demux.h and include/vlc_access.h
Please read the Documentation Editing Guidelines before you edit the documentation