\hypertarget{group__Emotion__Ressource}{}\doxysection{Video resource management}
\label{group__Emotion__Ressource}\index{Video resource management@{Video resource management}}
\doxysubsection*{Enumerations}
\begin{DoxyCompactItemize}
\item 
enum \mbox{\hyperlink{group__Emotion__Ressource_ga4e8f76b4dfa9b67ec3069452b3ace84f}{Emotion\+\_\+\+Suspend}} \{ \newline
\mbox{\hyperlink{group__Emotion__Ressource_ga4e8f76b4dfa9b67ec3069452b3ace84fad0c0b1259142a26123b7fbd0d636072d}{EMOTION\+\_\+\+WAKEUP}}
, \newline
\mbox{\hyperlink{group__Emotion__Ressource_ga4e8f76b4dfa9b67ec3069452b3ace84faff7e65f14703dd688e762bcfe0254397}{EMOTION\+\_\+\+SLEEP}}
, \newline
\mbox{\hyperlink{group__Emotion__Ressource_ga4e8f76b4dfa9b67ec3069452b3ace84fa03262db0399cae7bb1de27884e4e986f}{EMOTION\+\_\+\+DEEP\+\_\+\+SLEEP}}
, \newline
\mbox{\hyperlink{group__Emotion__Ressource_ga4e8f76b4dfa9b67ec3069452b3ace84fa5dd6c2d73f04ce3060d612b837bfa62a}{EMOTION\+\_\+\+HIBERNATE}}
 \}
\begin{DoxyCompactList}\small\item\em Used for emotion pipeline resource management. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
EMOTION\+\_\+\+API void \mbox{\hyperlink{group__Emotion__Ressource_ga506aaf7e701c29041f3dd64d3e0f94c7}{emotion\+\_\+object\+\_\+priority\+\_\+set}} (\mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$obj, \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} priority)
\begin{DoxyCompactList}\small\item\em Raise priority of an object so it will have a priviledged access to hardware resources. \end{DoxyCompactList}\item 
EMOTION\+\_\+\+API \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} \mbox{\hyperlink{group__Emotion__Ressource_ga1a1ecce737ce928dde323df4f0d33703}{emotion\+\_\+object\+\_\+priority\+\_\+get}} (const \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$obj)
\begin{DoxyCompactList}\small\item\em Get the actual priority of an object. \end{DoxyCompactList}\item 
EMOTION\+\_\+\+API void \mbox{\hyperlink{group__Emotion__Ressource_gadac8145f68b31677a3010ee9655649ca}{emotion\+\_\+object\+\_\+suspend\+\_\+set}} (\mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$obj, \mbox{\hyperlink{group__Emotion__Ressource_ga4e8f76b4dfa9b67ec3069452b3ace84f}{Emotion\+\_\+\+Suspend}} state)
\begin{DoxyCompactList}\small\item\em Change the state of an object pipeline. \end{DoxyCompactList}\item 
EMOTION\+\_\+\+API \mbox{\hyperlink{group__Emotion__Ressource_ga4e8f76b4dfa9b67ec3069452b3ace84f}{Emotion\+\_\+\+Suspend}} \mbox{\hyperlink{group__Emotion__Ressource_gaa47f3cfd95c79a345b35631f0cc2e256}{emotion\+\_\+object\+\_\+suspend\+\_\+get}} (\mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$obj)
\begin{DoxyCompactList}\small\item\em Get the current state of the pipeline. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}


\doxysubsection{Enumeration Type Documentation}
\mbox{\Hypertarget{group__Emotion__Ressource_ga4e8f76b4dfa9b67ec3069452b3ace84f}\label{group__Emotion__Ressource_ga4e8f76b4dfa9b67ec3069452b3ace84f}} 
\index{Video resource management@{Video resource management}!Emotion\_Suspend@{Emotion\_Suspend}}
\index{Emotion\_Suspend@{Emotion\_Suspend}!Video resource management@{Video resource management}}
\doxysubsubsection{\texorpdfstring{Emotion\_Suspend}{Emotion\_Suspend}}
{\footnotesize\ttfamily enum \mbox{\hyperlink{group__Emotion__Ressource_ga4e8f76b4dfa9b67ec3069452b3ace84f}{Emotion\+\_\+\+Suspend}}}



Used for emotion pipeline resource management. 

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Emotion__Ressource_gadac8145f68b31677a3010ee9655649ca}{emotion\+\_\+object\+\_\+suspend\+\_\+set()}} 

\mbox{\hyperlink{group__Emotion__Ressource_gaa47f3cfd95c79a345b35631f0cc2e256}{emotion\+\_\+object\+\_\+suspend\+\_\+get()}} 
\end{DoxySeeAlso}
\begin{DoxyEnumFields}{Enumerator}
\raisebox{\heightof{T}}[0pt][0pt]{\index{EMOTION\_WAKEUP@{EMOTION\_WAKEUP}!Video resource management@{Video resource management}}\index{Video resource management@{Video resource management}!EMOTION\_WAKEUP@{EMOTION\_WAKEUP}}}\mbox{\Hypertarget{group__Emotion__Ressource_ga4e8f76b4dfa9b67ec3069452b3ace84fad0c0b1259142a26123b7fbd0d636072d}\label{group__Emotion__Ressource_ga4e8f76b4dfa9b67ec3069452b3ace84fad0c0b1259142a26123b7fbd0d636072d}} 
EMOTION\+\_\+\+WAKEUP&pipeline is up and running \\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{EMOTION\_SLEEP@{EMOTION\_SLEEP}!Video resource management@{Video resource management}}\index{Video resource management@{Video resource management}!EMOTION\_SLEEP@{EMOTION\_SLEEP}}}\mbox{\Hypertarget{group__Emotion__Ressource_ga4e8f76b4dfa9b67ec3069452b3ace84faff7e65f14703dd688e762bcfe0254397}\label{group__Emotion__Ressource_ga4e8f76b4dfa9b67ec3069452b3ace84faff7e65f14703dd688e762bcfe0254397}} 
EMOTION\+\_\+\+SLEEP&turn off hardware resource usage like overlay \\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{EMOTION\_DEEP\_SLEEP@{EMOTION\_DEEP\_SLEEP}!Video resource management@{Video resource management}}\index{Video resource management@{Video resource management}!EMOTION\_DEEP\_SLEEP@{EMOTION\_DEEP\_SLEEP}}}\mbox{\Hypertarget{group__Emotion__Ressource_ga4e8f76b4dfa9b67ec3069452b3ace84fa03262db0399cae7bb1de27884e4e986f}\label{group__Emotion__Ressource_ga4e8f76b4dfa9b67ec3069452b3ace84fa03262db0399cae7bb1de27884e4e986f}} 
EMOTION\+\_\+\+DEEP\+\_\+\+SLEEP&destroy the pipeline, but keep full resolution pixels output around \\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{EMOTION\_HIBERNATE@{EMOTION\_HIBERNATE}!Video resource management@{Video resource management}}\index{Video resource management@{Video resource management}!EMOTION\_HIBERNATE@{EMOTION\_HIBERNATE}}}\mbox{\Hypertarget{group__Emotion__Ressource_ga4e8f76b4dfa9b67ec3069452b3ace84fa5dd6c2d73f04ce3060d612b837bfa62a}\label{group__Emotion__Ressource_ga4e8f76b4dfa9b67ec3069452b3ace84fa5dd6c2d73f04ce3060d612b837bfa62a}} 
EMOTION\+\_\+\+HIBERNATE&destroy the pipeline, and keep half resolution or object resolution if lower \\
\hline

\end{DoxyEnumFields}


\doxysubsection{Function Documentation}
\mbox{\Hypertarget{group__Emotion__Ressource_ga506aaf7e701c29041f3dd64d3e0f94c7}\label{group__Emotion__Ressource_ga506aaf7e701c29041f3dd64d3e0f94c7}} 
\index{Video resource management@{Video resource management}!emotion\_object\_priority\_set@{emotion\_object\_priority\_set}}
\index{emotion\_object\_priority\_set@{emotion\_object\_priority\_set}!Video resource management@{Video resource management}}
\doxysubsubsection{\texorpdfstring{emotion\_object\_priority\_set()}{emotion\_object\_priority\_set()}}
{\footnotesize\ttfamily EMOTION\+\_\+\+API void emotion\+\_\+object\+\_\+priority\+\_\+set (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$}]{obj,  }\item[{\mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}}}]{priority }\end{DoxyParamCaption})}



Raise priority of an object so it will have a priviledged access to hardware resources. 


\begin{DoxyParams}{Parameters}
{\em obj} & The object which the query is being ran on. \\
\hline
{\em priority} & EINA\+\_\+\+TRUE means give me a priority access to the hardware resources.\\
\hline
\end{DoxyParams}
Hardware have a few dedicated hardware pipeline that process the video at no cost for the CPU. Especially on SoC, you mostly have one (on mobile phone SoC) or two (on Set Top Box SoC) when Picture in Picture is needed. And most application just have a few video stream that really deserve high frame rate, high quality output. That\textquotesingle{}s why this call is for.

Please note that if Emotion can\textquotesingle{}t acquire a priviledged hardware resource, it will fallback to the no-\/priority path. This work on the first asking first get basis system.

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Emotion__Ressource_ga1a1ecce737ce928dde323df4f0d33703}{emotion\+\_\+object\+\_\+priority\+\_\+get()}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__Emotion__Ressource_ga1a1ecce737ce928dde323df4f0d33703}\label{group__Emotion__Ressource_ga1a1ecce737ce928dde323df4f0d33703}} 
\index{Video resource management@{Video resource management}!emotion\_object\_priority\_get@{emotion\_object\_priority\_get}}
\index{emotion\_object\_priority\_get@{emotion\_object\_priority\_get}!Video resource management@{Video resource management}}
\doxysubsubsection{\texorpdfstring{emotion\_object\_priority\_get()}{emotion\_object\_priority\_get()}}
{\footnotesize\ttfamily EMOTION\+\_\+\+API \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} emotion\+\_\+object\+\_\+priority\+\_\+get (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$}]{obj }\end{DoxyParamCaption})}



Get the actual priority of an object. 


\begin{DoxyParams}{Parameters}
{\em obj} & The object which the query is being ran on. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
EINA\+\_\+\+TRUE if the object has a priority access to the hardware.
\end{DoxyReturn}
This actually return the priority status of an object. If it failed to have a priviledged access to the hardware, it will return EINA\+\_\+\+FALSE.

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Emotion__Ressource_ga1a1ecce737ce928dde323df4f0d33703}{emotion\+\_\+object\+\_\+priority\+\_\+get()}} 
\end{DoxySeeAlso}


References \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\+\_\+\+FALSE}}.

\mbox{\Hypertarget{group__Emotion__Ressource_gadac8145f68b31677a3010ee9655649ca}\label{group__Emotion__Ressource_gadac8145f68b31677a3010ee9655649ca}} 
\index{Video resource management@{Video resource management}!emotion\_object\_suspend\_set@{emotion\_object\_suspend\_set}}
\index{emotion\_object\_suspend\_set@{emotion\_object\_suspend\_set}!Video resource management@{Video resource management}}
\doxysubsubsection{\texorpdfstring{emotion\_object\_suspend\_set()}{emotion\_object\_suspend\_set()}}
{\footnotesize\ttfamily EMOTION\+\_\+\+API void emotion\+\_\+object\+\_\+suspend\+\_\+set (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$}]{obj,  }\item[{\mbox{\hyperlink{group__Emotion__Ressource_ga4e8f76b4dfa9b67ec3069452b3ace84f}{Emotion\+\_\+\+Suspend}}}]{state }\end{DoxyParamCaption})}



Change the state of an object pipeline. 


\begin{DoxyParams}{Parameters}
{\em obj} & The object which the query is being ran on. \\
\hline
{\em state} & The new state for the object.\\
\hline
\end{DoxyParams}
Changing the state of a pipeline should help preserve the battery of an embedded device. But it will only work sanely if the pipeline is not playing at the time you change its state. Depending on the engine all state may be not implemented.

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Emotion__Ressource_ga4e8f76b4dfa9b67ec3069452b3ace84f}{Emotion\+\_\+\+Suspend}} 

\mbox{\hyperlink{group__Emotion__Ressource_gaa47f3cfd95c79a345b35631f0cc2e256}{emotion\+\_\+object\+\_\+suspend\+\_\+get()}} 
\end{DoxySeeAlso}


References \mbox{\hyperlink{Emotion_8h_ga4e8f76b4dfa9b67ec3069452b3ace84fa03262db0399cae7bb1de27884e4e986f}{EMOTION\+\_\+\+DEEP\+\_\+\+SLEEP}}, \mbox{\hyperlink{Emotion_8h_ga4e8f76b4dfa9b67ec3069452b3ace84fa5dd6c2d73f04ce3060d612b837bfa62a}{EMOTION\+\_\+\+HIBERNATE}}, \mbox{\hyperlink{Emotion_8h_ga4e8f76b4dfa9b67ec3069452b3ace84faff7e65f14703dd688e762bcfe0254397}{EMOTION\+\_\+\+SLEEP}}, and \mbox{\hyperlink{Emotion_8h_ga4e8f76b4dfa9b67ec3069452b3ace84fad0c0b1259142a26123b7fbd0d636072d}{EMOTION\+\_\+\+WAKEUP}}.

\mbox{\Hypertarget{group__Emotion__Ressource_gaa47f3cfd95c79a345b35631f0cc2e256}\label{group__Emotion__Ressource_gaa47f3cfd95c79a345b35631f0cc2e256}} 
\index{Video resource management@{Video resource management}!emotion\_object\_suspend\_get@{emotion\_object\_suspend\_get}}
\index{emotion\_object\_suspend\_get@{emotion\_object\_suspend\_get}!Video resource management@{Video resource management}}
\doxysubsubsection{\texorpdfstring{emotion\_object\_suspend\_get()}{emotion\_object\_suspend\_get()}}
{\footnotesize\ttfamily EMOTION\+\_\+\+API \mbox{\hyperlink{group__Emotion__Ressource_ga4e8f76b4dfa9b67ec3069452b3ace84f}{Emotion\+\_\+\+Suspend}} emotion\+\_\+object\+\_\+suspend\+\_\+get (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$}]{obj }\end{DoxyParamCaption})}



Get the current state of the pipeline. 


\begin{DoxyParams}{Parameters}
{\em obj} & The object which the query is being ran on. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
the current state of the pipeline.
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Emotion__Ressource_ga4e8f76b4dfa9b67ec3069452b3ace84f}{Emotion\+\_\+\+Suspend}} 

\mbox{\hyperlink{group__Emotion__Ressource_gadac8145f68b31677a3010ee9655649ca}{emotion\+\_\+object\+\_\+suspend\+\_\+set()}} 
\end{DoxySeeAlso}


References \mbox{\hyperlink{Emotion_8h_ga4e8f76b4dfa9b67ec3069452b3ace84fad0c0b1259142a26123b7fbd0d636072d}{EMOTION\+\_\+\+WAKEUP}}.

