@@ -16,7 +16,8 @@ package media
1616// }
1717//
1818// Various options are available to control the manager, for
19- // logging and affecting decoding.
19+ // logging and affecting decoding, that can be applied when
20+ // creating the manager by passing them as arguments.
2021//
2122// Only one manager can be created. If NewManager is called
2223// a second time, the previously created manager is returned,
@@ -46,33 +47,11 @@ type Manager interface {
4647 // of the caller to also close the writer when done.
4748 //Write(io.Writer, Format, []Metadata, ...Parameters) (Media, error)
4849
49- // Return supported input formats which match any filter, which can be
50- // a name, extension (with preceeding period) or mimetype. The MediaType
51- // can be NONE (for any) or combinations of DEVICE and STREAM.
52- //InputFormats(Type, ...string) []Format
53-
54- // Return supported output formats which match any filter, which can be
55- // a name, extension (with preceeding period) or mimetype. The MediaType
56- // can be NONE (for any) or combinations of DEVICE and STREAM.
57- //OutputFormats(Type, ...string) []Format
58-
5950 // Return supported devices for a given format.
6051 // Not all devices may be supported on all platforms or listed
6152 // if the device does not support enumeration.
6253 //Devices(Format) []Device
6354
64- // Return all supported channel layouts
65- //ChannelLayouts() []Metadata
66-
67- // Return all supported sample formats
68- //SampleFormats() []Metadata
69-
70- // Return all supported pixel formats
71- //PixelFormats() []Metadata
72-
73- // Return all supported codecs
74- //Codecs() []Metadata
75-
7655 // Return audio parameters for encoding
7756 // ChannelLayout, SampleFormat, Samplerate
7857 //AudioParameters(string, string, int) (Parameters, error)
@@ -89,6 +68,32 @@ type Manager interface {
8968 // Codec name, Profile name, Framerate (fps) and VideoParameters
9069 //VideoCodecParameters(string, string, float64, VideoParameters) (Parameters, error)
9170
71+ // Return supported input formats which match any filter, which can be
72+ // a name, extension (with preceeding period) or mimetype. The MediaType
73+ // can be NONE (for any) or combinations of DEVICE and STREAM.
74+ //InputFormats(Type, ...string) []Format
75+
76+ // Return supported output formats which match any filter, which can be
77+ // a name, extension (with preceeding period) or mimetype. The MediaType
78+ // can be NONE (for any) or combinations of DEVICE and STREAM.
79+ //OutputFormats(Type, ...string) []Format
80+
81+ // Return all supported sample formats
82+ SampleFormats () []Metadata
83+
84+ // Return all supported pixel formats
85+ PixelFormats () []Metadata
86+
87+ // Return standard channel layouts which can be used for audio,
88+ // with the number of channels provided. If no channels are provided,
89+ // then all standard channel layouts are returned.
90+ ChannelLayouts () []Metadata
91+
92+ // Return all supported codecs, of a specific type or all
93+ // if ANY is used. If any names is provided, then only the codecs
94+ // with those names are returned.
95+ Codecs (Type , ... string ) []Metadata
96+
9297 // Return version information for the media manager as a set of
9398 // metadata
9499 Version () []Metadata
0 commit comments