-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmedia.h
34 lines (30 loc) · 1.35 KB
/
media.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
* Copyright (C) 2019-2020 Paul Kocialkowski <[email protected]>
* Copyright (C) 2020 Bootlin
*/
#ifndef _MEDIA_H_
#define _MEDIA_H_
#include <stdbool.h>
#include <time.h>
int media_device_info(int media_fd, struct media_device_info *device_info);
int media_topology_get(int media_fd, struct media_v2_topology *topology);
struct media_v2_entity *media_topology_entity_find_by_function(struct media_v2_topology *topology,
unsigned int function);
struct media_v2_interface *media_topology_interface_find_by_id(struct media_v2_topology *topology,
unsigned int id);
struct media_v2_pad *media_topology_pad_find_by_entity(struct media_v2_topology *topology,
unsigned int entity_id,
unsigned int flags);
struct media_v2_pad *media_topology_pad_find_by_id(struct media_v2_topology *topology,
unsigned int id);
struct media_v2_link *media_topology_link_find_by_pad(struct media_v2_topology *topology,
unsigned int pad_id,
unsigned int pad_flags);
struct media_v2_link *media_topology_link_find_by_entity(struct media_v2_topology *topology,
unsigned int entity_id,
unsigned int pad_flags);
int media_request_alloc(int media_fd);
int media_request_queue(int request_fd);
int media_request_reinit(int request_fd);
int media_request_poll(int request_fd, struct timeval *timeout);
#endif