1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * vimc-streamer.h Virtual Media Controller Driver
5 * Copyright (C) 2018 Lucas A. M. Magalhães <lucmaga@gmail.com>
9 #ifndef _VIMC_STREAMER_H_
10 #define _VIMC_STREAMER_H_
12 #include <media/media-device.h>
14 #include "vimc-common.h"
16 #define VIMC_STREAMER_PIPELINE_MAX_SIZE 16
19 struct media_pipeline pipe
;
20 struct vimc_ent_device
*ved_pipeline
[VIMC_STREAMER_PIPELINE_MAX_SIZE
];
21 unsigned int pipe_size
;
23 struct task_struct
*kthread
;
27 * vimc_streamer_s_streamer - start/stop the stream
29 * @stream: the pointer to the stream to start or stop
30 * @ved: The last entity of the streamer pipeline
31 * @enable: any non-zero number start the stream, zero stop
34 int vimc_streamer_s_stream(struct vimc_stream
*stream
,
35 struct vimc_ent_device
*ved
,
38 #endif //_VIMC_STREAMER_H_