This file is indexed.

/usr/include/bellagio/omx_reference_resource_manager.h is in libomxil-bellagio-dev 0.9.3-2ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/**
  src/omx_reference_resource_manager.h

  This simple resource manager emulates the behavior of a real RM.
	It applies the rules defined in the OpenMAX spec. It can be replaced in
	the future by a real system.

  Copyright (C) 2007-2009 STMicroelectronics
  Copyright (C) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).

  This library is free software; you can redistribute it and/or modify it under
  the terms of the GNU Lesser General Public License as published by the Free
  Software Foundation; either version 2.1 of the License, or (at your option)
  any later version.

  This library is distributed in the hope that it will be useful, but WITHOUT
  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
  details.

  You should have received a copy of the GNU Lesser General Public License
  along with this library; if not, write to the Free Software Foundation, Inc.,
  51 Franklin St, Fifth Floor, Boston, MA
  02110-1301  USA

*/

#ifndef _OMX_REFERENCE_RESOURCE_MANAGER_H_
#define _OMX_REFERENCE_RESOURCE_MANAGER_H_

#define MAX_COMPONENTS_TYPES_HANDLED 500

#include "omxcore.h"


typedef struct ComponentListType ComponentListType;
struct ComponentListType {
	OMX_COMPONENTTYPE *openmaxStandComp;
	OMX_U32 nGroupPriority;
	OMX_U32 timestamp;
	ComponentListType* next;
};

typedef struct NameIndexType NameIndexType;
struct NameIndexType {
	char* component_name;
	int index;
	int max_components;
};


int globalIndex;
NameIndexType *listOfcomponentRegistered;
ComponentListType **globalComponentList;
ComponentListType **globalWaitingComponentList;

OMX_ERRORTYPE RM_RegisterComponent(char *name, int max_components);
OMX_ERRORTYPE addElemToList(ComponentListType **list, OMX_COMPONENTTYPE *openmaxStandComp, int index, OMX_BOOL bIsWaiting);
OMX_ERRORTYPE removeElemFromList(ComponentListType **list, OMX_COMPONENTTYPE *openmaxStandComp);
int numElemInList(ComponentListType *list);
OMX_ERRORTYPE clearList(ComponentListType **list);

/** Debug flags
 */
#define RM_SHOW_NAME 0x01
#define RM_SHOW_ADDRESS 0x02

OMX_ERRORTYPE RM_Init();
OMX_ERRORTYPE RM_Deinit();
OMX_ERRORTYPE RM_getResource(OMX_COMPONENTTYPE *openmaxStandComp);
OMX_ERRORTYPE RM_releaseResource(OMX_COMPONENTTYPE *openmaxStandComp);
OMX_ERRORTYPE RM_waitForResource(OMX_COMPONENTTYPE *openmaxStandComp);
OMX_ERRORTYPE RM_removeFromWaitForResource(OMX_COMPONENTTYPE *openmaxStandComp);
void RM_printList(ComponentListType *list, int viewFlag);

#endif