1 | /* |
2 | Copyright (c) 2012, Broadcom Europe Ltd |
3 | All rights reserved. |
4 | |
5 | Redistribution and use in source and binary forms, with or without |
6 | modification, are permitted provided that the following conditions are met: |
7 | * Redistributions of source code must retain the above copyright |
8 | notice, this list of conditions and the following disclaimer. |
9 | * Redistributions in binary form must reproduce the above copyright |
10 | notice, this list of conditions and the following disclaimer in the |
11 | documentation and/or other materials provided with the distribution. |
12 | * Neither the name of the copyright holder nor the |
13 | names of its contributors may be used to endorse or promote products |
14 | derived from this software without specific prior written permission. |
15 | |
16 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
17 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
18 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
19 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY |
20 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
21 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
22 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
23 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
24 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
25 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | */ |
27 | |
28 | #ifndef MMAL_DEFAULT_COMPONENTS_H |
29 | #define MMAL_DEFAULT_COMPONENTS_H |
30 | |
31 | /** \defgroup MmalDefaultComponents List of default components |
32 | * This provides a list of default components on a per platform basis. |
33 | * @{ |
34 | */ |
35 | |
36 | #define MMAL_COMPONENT_DEFAULT_CONTAINER_READER "container_reader" |
37 | #define MMAL_COMPONENT_DEFAULT_CONTAINER_WRITER "container_writer" |
38 | |
39 | #if defined(ENABLE_MMAL_STANDALONE) |
40 | # define MMAL_COMPONENT_DEFAULT_VIDEO_DECODER "avcodec.video_decode" |
41 | # define MMAL_COMPONENT_DEFAULT_VIDEO_ENCODER "avcodec.video_encode" |
42 | # define MMAL_COMPONENT_DEFAULT_VIDEO_RENDERER "sdl.video_render" |
43 | # define MMAL_COMPONENT_DEFAULT_IMAGE_DECODER "avcodec.video_decode" |
44 | # define MMAL_COMPONENT_DEFAULT_IMAGE_ENCODER "avcodec.video_encode" |
45 | # define MMAL_COMPONENT_DEFAULT_CAMERA "artificial_camera" |
46 | # define MMAL_COMPONENT_DEFAULT_VIDEO_CONVERTER "avcodec.video_convert" |
47 | # define MMAL_COMPONENT_DEFAULT_SPLITTER "splitter" |
48 | # define MMAL_COMPONENT_DEFAULT_SCHEDULER "scheduler" |
49 | # define MMAL_COMPONENT_DEFAULT_VIDEO_INJECTER "video_inject" |
50 | # define MMAL_COMPONENT_DEFAULT_AUDIO_DECODER "avcodec.audio_decode" |
51 | # define MMAL_COMPONENT_DEFAULT_AUDIO_RENDERER "sdl.audio_render" |
52 | # define MMAL_COMPONENT_DEFAULT_MIRACAST "miracast" |
53 | # define MMAL_COMPONENT_DEFAULT_CLOCK "clock" |
54 | #elif defined(__VIDEOCORE__) |
55 | # define MMAL_COMPONENT_DEFAULT_VIDEO_DECODER "ril.video_decode" |
56 | # define MMAL_COMPONENT_DEFAULT_VIDEO_ENCODER "ril.video_encode" |
57 | # define MMAL_COMPONENT_DEFAULT_VIDEO_RENDERER "ril.video_render" |
58 | # define MMAL_COMPONENT_DEFAULT_IMAGE_DECODER "ril.image_decode" |
59 | # define MMAL_COMPONENT_DEFAULT_IMAGE_ENCODER "ril.image_encode" |
60 | # define MMAL_COMPONENT_DEFAULT_CAMERA "ril.camera" |
61 | # define MMAL_COMPONENT_DEFAULT_VIDEO_CONVERTER "video_convert" |
62 | # define MMAL_COMPONENT_DEFAULT_SPLITTER "splitter" |
63 | # define MMAL_COMPONENT_DEFAULT_SCHEDULER "scheduler" |
64 | # define MMAL_COMPONENT_DEFAULT_VIDEO_INJECTER "video_inject" |
65 | # define MMAL_COMPONENT_DEFAULT_VIDEO_SPLITTER "ril.video_splitter" |
66 | # define MMAL_COMPONENT_DEFAULT_AUDIO_DECODER "none" |
67 | # define MMAL_COMPONENT_DEFAULT_AUDIO_RENDERER "ril.audio_render" |
68 | # define MMAL_COMPONENT_DEFAULT_MIRACAST "miracast" |
69 | # define MMAL_COMPONENT_DEFAULT_CLOCK "clock" |
70 | # define MMAL_COMPONENT_DEFAULT_CAMERA_INFO "camera_info" |
71 | #else |
72 | # define MMAL_COMPONENT_DEFAULT_VIDEO_DECODER "vc.ril.video_decode" |
73 | # define MMAL_COMPONENT_DEFAULT_VIDEO_ENCODER "vc.ril.video_encode" |
74 | # define MMAL_COMPONENT_DEFAULT_VIDEO_RENDERER "vc.ril.video_render" |
75 | # define MMAL_COMPONENT_DEFAULT_IMAGE_DECODER "vc.ril.image_decode" |
76 | # define MMAL_COMPONENT_DEFAULT_IMAGE_ENCODER "vc.ril.image_encode" |
77 | # define MMAL_COMPONENT_DEFAULT_CAMERA "vc.ril.camera" |
78 | # define MMAL_COMPONENT_DEFAULT_VIDEO_CONVERTER "vc.video_convert" |
79 | # define MMAL_COMPONENT_DEFAULT_SPLITTER "vc.splitter" |
80 | # define MMAL_COMPONENT_DEFAULT_SCHEDULER "vc.scheduler" |
81 | # define MMAL_COMPONENT_DEFAULT_VIDEO_INJECTER "vc.video_inject" |
82 | # define MMAL_COMPONENT_DEFAULT_VIDEO_SPLITTER "vc.ril.video_splitter" |
83 | # define MMAL_COMPONENT_DEFAULT_AUDIO_DECODER "none" |
84 | # define MMAL_COMPONENT_DEFAULT_AUDIO_RENDERER "vc.ril.audio_render" |
85 | # define MMAL_COMPONENT_DEFAULT_MIRACAST "vc.miracast" |
86 | # define MMAL_COMPONENT_DEFAULT_CLOCK "vc.clock" |
87 | # define MMAL_COMPONENT_DEFAULT_CAMERA_INFO "vc.camera_info" |
88 | #endif |
89 | |
90 | /** @} */ |
91 | |
92 | #endif /* MMAL_DEFAULT_COMPONENTS_H */ |
93 | |