\doxysubsubsection{Video resource management}
\hypertarget{group__Emotion__Ressource}{}\label{group__Emotion__Ressource}\index{Video resource management@{Video resource management}}
\doxysubsubsubsubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
EMOTION\+\_\+\+API void \mbox{\hyperlink{group__Emotion__Ressource_ga506aaf7e701c29041f3dd64d3e0f94c7}{emotion\+\_\+object\+\_\+priority\+\_\+set}} (Evas\+\_\+\+Object \texorpdfstring{$\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 Evas\+\_\+\+Object \texorpdfstring{$\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}} (Evas\+\_\+\+Object \texorpdfstring{$\ast$}{*}obj, \mbox{\hyperlink{Emotion_8h_a4e8f76b4dfa9b67ec3069452b3ace84f}{Emotion\+\_\+\+Suspend}} state)
\begin{DoxyCompactList}\small\item\em Change the state of an object pipeline. \end{DoxyCompactList}\item 
EMOTION\+\_\+\+API \mbox{\hyperlink{Emotion_8h_a4e8f76b4dfa9b67ec3069452b3ace84f}{Emotion\+\_\+\+Suspend}} \mbox{\hyperlink{group__Emotion__Ressource_gaa47f3cfd95c79a345b35631f0cc2e256}{emotion\+\_\+object\+\_\+suspend\+\_\+get}} (Evas\+\_\+\+Object \texorpdfstring{$\ast$}{*}obj)
\begin{DoxyCompactList}\small\item\em Get the current state of the pipeline. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsubsubsection{Detailed Description}


\doxysubsubsubsection{Function Documentation}
\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}}
\doxysubsubsubsubsection{\texorpdfstring{emotion\_object\_priority\_set()}{emotion\_object\_priority\_set()}}
{\footnotesize\ttfamily EMOTION\+\_\+\+API void emotion\+\_\+object\+\_\+priority\+\_\+set (\begin{DoxyParamCaption}\item[{Evas\+\_\+\+Object \texorpdfstring{$\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}
\doxylink{group__Emotion__Ressource_ga1a1ecce737ce928dde323df4f0d33703}{emotion\+\_\+object\+\_\+priority\+\_\+get()} 
\end{DoxySeeAlso}
\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}}
\doxysubsubsubsubsection{\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 Evas\+\_\+\+Object \texorpdfstring{$\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}
\doxylink{group__Emotion__Ressource_ga1a1ecce737ce928dde323df4f0d33703}{emotion\+\_\+object\+\_\+priority\+\_\+get()} 
\end{DoxySeeAlso}


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

\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}}
\doxysubsubsubsubsection{\texorpdfstring{emotion\_object\_suspend\_set()}{emotion\_object\_suspend\_set()}}
{\footnotesize\ttfamily EMOTION\+\_\+\+API void emotion\+\_\+object\+\_\+suspend\+\_\+set (\begin{DoxyParamCaption}\item[{Evas\+\_\+\+Object \texorpdfstring{$\ast$}{*}}]{obj,  }\item[{\mbox{\hyperlink{Emotion_8h_a4e8f76b4dfa9b67ec3069452b3ace84f}{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}
\doxylink{Emotion_8h_a4e8f76b4dfa9b67ec3069452b3ace84f}{Emotion\+\_\+\+Suspend} 

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


References \mbox{\hyperlink{Emotion_8h_a4e8f76b4dfa9b67ec3069452b3ace84fa03262db0399cae7bb1de27884e4e986f}{EMOTION\+\_\+\+DEEP\+\_\+\+SLEEP}}, \mbox{\hyperlink{Emotion_8h_a4e8f76b4dfa9b67ec3069452b3ace84fa5dd6c2d73f04ce3060d612b837bfa62a}{EMOTION\+\_\+\+HIBERNATE}}, \mbox{\hyperlink{Emotion_8h_a4e8f76b4dfa9b67ec3069452b3ace84faff7e65f14703dd688e762bcfe0254397}{EMOTION\+\_\+\+SLEEP}}, and \mbox{\hyperlink{Emotion_8h_a4e8f76b4dfa9b67ec3069452b3ace84fad0c0b1259142a26123b7fbd0d636072d}{EMOTION\+\_\+\+WAKEUP}}.

\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}}
\doxysubsubsubsubsection{\texorpdfstring{emotion\_object\_suspend\_get()}{emotion\_object\_suspend\_get()}}
{\footnotesize\ttfamily EMOTION\+\_\+\+API \mbox{\hyperlink{Emotion_8h_a4e8f76b4dfa9b67ec3069452b3ace84f}{Emotion\+\_\+\+Suspend}} emotion\+\_\+object\+\_\+suspend\+\_\+get (\begin{DoxyParamCaption}\item[{Evas\+\_\+\+Object \texorpdfstring{$\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}
\doxylink{Emotion_8h_a4e8f76b4dfa9b67ec3069452b3ace84f}{Emotion\+\_\+\+Suspend} 

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


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

