Linux 4.19.133
[linux/fpc-iii.git] / drivers / media / platform / vimc / vimc-streamer.h
blob752af2e2d5a21ff9abda60c4376786eee6075d08
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3 * vimc-streamer.h Virtual Media Controller Driver
5 * Copyright (C) 2018 Lucas A. M. Magalhães <lucmaga@gmail.com>
7 */
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
18 struct vimc_stream {
19 struct media_pipeline pipe;
20 struct vimc_ent_device *ved_pipeline[VIMC_STREAMER_PIPELINE_MAX_SIZE];
21 unsigned int pipe_size;
22 u8 *frame;
23 struct task_struct *kthread;
26 /**
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,
36 int enable);
38 #endif //_VIMC_STREAMER_H_