FastLED 3.9.15
Loading...
Searching...
No Matches

◆ plm_init_decoders()

int fl::third_party::plm_init_decoders ( plm_t * self)

Definition at line 261 of file pl_mpeg.hpp.

261 {
262 if (self->has_decoders) {
263 return TRUE;
264 }
265
266 if (!plm_demux_has_headers(self->demux)) {
267 return FALSE;
268 }
269
270 if (plm_demux_get_num_video_streams(self->demux) > 0) {
271 if (self->video_enabled) {
273 }
274 if (!self->video_decoder) {
278 }
279 }
280
281 if (plm_demux_get_num_audio_streams(self->demux) > 0) {
282 if (self->audio_enabled) {
284 }
285 if (!self->audio_decoder) {
289 }
290 }
291
292 self->has_decoders = TRUE;
293 return TRUE;
294}
int plm_demux_get_num_audio_streams(plm_demux_t *self) FL_NOEXCEPT
Definition pl_mpeg.hpp:1280
plm_video_t * plm_video_create_with_buffer(plm_buffer_t *buffer, int destroy_when_done) FL_NOEXCEPT
Definition pl_mpeg.hpp:2121
static const int PLM_DEMUX_PACKET_AUDIO_1
Definition pl_mpeg.h:590
void plm_buffer_set_load_callback(plm_buffer_t *self, plm_buffer_load_callback fp, void *user) FL_NOEXCEPT
Definition pl_mpeg.hpp:914
int plm_demux_get_num_video_streams(plm_demux_t *self) FL_NOEXCEPT
Definition pl_mpeg.hpp:1274
static const int PLM_DEMUX_PACKET_VIDEO_1
Definition pl_mpeg.h:594
void plm_read_video_packet(plm_buffer_t *buffer, void *user) FL_NOEXCEPT
Definition pl_mpeg.hpp:580
plm_buffer_t * plm_buffer_create_with_capacity(size_t capacity) FL_NOEXCEPT
Definition pl_mpeg.hpp:837
void plm_read_audio_packet(plm_buffer_t *buffer, void *user) FL_NOEXCEPT
Definition pl_mpeg.hpp:586
plm_audio_t * plm_audio_create_with_buffer(plm_buffer_t *buffer, int destroy_when_done) FL_NOEXCEPT
Definition pl_mpeg.hpp:3235
int plm_demux_has_headers(plm_demux_t *self) FL_NOEXCEPT
Definition pl_mpeg.hpp:1181
plm_buffer_t * audio_buffer
Definition pl_mpeg.hpp:211
plm_video_t * video_decoder
Definition pl_mpeg.hpp:205
plm_demux_t * demux
Definition pl_mpeg.hpp:196
plm_audio_t * audio_decoder
Definition pl_mpeg.hpp:212
plm_buffer_t * video_buffer
Definition pl_mpeg.hpp:204
#define PLM_BUFFER_DEFAULT_SIZE
Definition pl_mpeg.h:475
#define TRUE
Definition pl_mpeg.hpp:174
#define FALSE
Definition pl_mpeg.hpp:175

References FALSE, FL_NOEXCEPT, plm_audio_create_with_buffer(), plm_buffer_create_with_capacity(), PLM_BUFFER_DEFAULT_SIZE, plm_buffer_set_load_callback(), plm_demux_get_num_audio_streams(), plm_demux_get_num_video_streams(), plm_demux_has_headers(), PLM_DEMUX_PACKET_AUDIO_1, PLM_DEMUX_PACKET_VIDEO_1, plm_read_audio_packet(), plm_read_video_packet(), plm_video_create_with_buffer(), and TRUE.

Referenced by plm_create_with_buffer(), plm_decode(), plm_decode_audio(), plm_decode_video(), plm_get_framerate(), plm_get_height(), plm_get_pixel_aspect_ratio(), plm_get_samplerate(), plm_get_width(), plm_has_headers(), plm_probe(), plm_seek_frame(), plm_set_audio_enabled(), and plm_set_video_enabled().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: