\hypertarget{group__Emotion__Ressource}{\section{Video ressource management}
\label{group__Emotion__Ressource}\index{Video ressource management@{Video ressource management}}
}
\subsection*{Enumerations}
\begin{DoxyCompactItemize}
\item 
enum \hyperlink{group__Emotion__Ressource_ga4e8f76b4dfa9b67ec3069452b3ace84f}{Emotion\+\_\+\+Suspend} \{ \\*
\hyperlink{group__Emotion__Ressource_ga4e8f76b4dfa9b67ec3069452b3ace84fad0c0b1259142a26123b7fbd0d636072d}{E\+M\+O\+T\+I\+O\+N\+\_\+\+W\+A\+K\+E\+U\+P}, 
\\*
\hyperlink{group__Emotion__Ressource_ga4e8f76b4dfa9b67ec3069452b3ace84faff7e65f14703dd688e762bcfe0254397}{E\+M\+O\+T\+I\+O\+N\+\_\+\+S\+L\+E\+E\+P}, 
\\*
\hyperlink{group__Emotion__Ressource_ga4e8f76b4dfa9b67ec3069452b3ace84fa03262db0399cae7bb1de27884e4e986f}{E\+M\+O\+T\+I\+O\+N\+\_\+\+D\+E\+E\+P\+\_\+\+S\+L\+E\+E\+P}, 
\\*
\hyperlink{group__Emotion__Ressource_ga4e8f76b4dfa9b67ec3069452b3ace84fa5dd6c2d73f04ce3060d612b837bfa62a}{E\+M\+O\+T\+I\+O\+N\+\_\+\+H\+I\+B\+E\+R\+N\+A\+T\+E}
 \}
\begin{DoxyCompactList}\small\item\em Used for emotion pipeline ressource management. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{group__Eina__Types__Group_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+P\+I} void \hyperlink{group__Emotion__Ressource_ga1fa1466d28545a3e2e6781d70e8d03d8}{emotion\+\_\+object\+\_\+priority\+\_\+set} (\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object} $\ast$obj, \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 ressource. \end{DoxyCompactList}\item 
\hyperlink{group__Eina__Types__Group_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+P\+I} \hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool} \hyperlink{group__Emotion__Ressource_ga267c3fee9e4979cb91fdcec208980114}{emotion\+\_\+object\+\_\+priority\+\_\+get} (const \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 
\hyperlink{group__Eina__Types__Group_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+P\+I} void \hyperlink{group__Emotion__Ressource_ga9859866518239b73dfff6ba3411f03bb}{emotion\+\_\+object\+\_\+suspend\+\_\+set} (\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object} $\ast$obj, \hyperlink{group__Emotion__Ressource_ga4e8f76b4dfa9b67ec3069452b3ace84f}{Emotion\+\_\+\+Suspend} state)
\begin{DoxyCompactList}\small\item\em Change the state of an object pipeline. \end{DoxyCompactList}\item 
\hyperlink{group__Eina__Types__Group_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+P\+I} \hyperlink{group__Emotion__Ressource_ga4e8f76b4dfa9b67ec3069452b3ace84f}{Emotion\+\_\+\+Suspend} \hyperlink{group__Emotion__Ressource_ga9d95e259128567d79ca48670fe6eafbf}{emotion\+\_\+object\+\_\+suspend\+\_\+get} (\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}


\subsection{Detailed Description}


\subsection{Enumeration Type Documentation}
\hypertarget{group__Emotion__Ressource_ga4e8f76b4dfa9b67ec3069452b3ace84f}{\index{Video ressource management@{Video ressource management}!Emotion\+\_\+\+Suspend@{Emotion\+\_\+\+Suspend}}
\index{Emotion\+\_\+\+Suspend@{Emotion\+\_\+\+Suspend}!Video ressource management@{Video ressource management}}
\subsubsection[{Emotion\+\_\+\+Suspend}]{\setlength{\rightskip}{0pt plus 5cm}enum {\bf Emotion\+\_\+\+Suspend}}}\label{group__Emotion__Ressource_ga4e8f76b4dfa9b67ec3069452b3ace84f}


Used for emotion pipeline ressource management. 

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

\hyperlink{group__Emotion__Ressource_ga9d95e259128567d79ca48670fe6eafbf}{emotion\+\_\+object\+\_\+suspend\+\_\+get()} 
\end{DoxySeeAlso}
\begin{Desc}
\item[Enumerator]\par
\begin{description}
\index{E\+M\+O\+T\+I\+O\+N\+\_\+\+W\+A\+K\+E\+U\+P@{E\+M\+O\+T\+I\+O\+N\+\_\+\+W\+A\+K\+E\+U\+P}!Video ressource management@{Video ressource management}}\index{Video ressource management@{Video ressource management}!E\+M\+O\+T\+I\+O\+N\+\_\+\+W\+A\+K\+E\+U\+P@{E\+M\+O\+T\+I\+O\+N\+\_\+\+W\+A\+K\+E\+U\+P}}\item[{\em 
\hypertarget{group__Emotion__Ressource_ga4e8f76b4dfa9b67ec3069452b3ace84fad0c0b1259142a26123b7fbd0d636072d}{E\+M\+O\+T\+I\+O\+N\+\_\+\+W\+A\+K\+E\+U\+P}\label{group__Emotion__Ressource_ga4e8f76b4dfa9b67ec3069452b3ace84fad0c0b1259142a26123b7fbd0d636072d}
}]pipeline is up and running \index{E\+M\+O\+T\+I\+O\+N\+\_\+\+S\+L\+E\+E\+P@{E\+M\+O\+T\+I\+O\+N\+\_\+\+S\+L\+E\+E\+P}!Video ressource management@{Video ressource management}}\index{Video ressource management@{Video ressource management}!E\+M\+O\+T\+I\+O\+N\+\_\+\+S\+L\+E\+E\+P@{E\+M\+O\+T\+I\+O\+N\+\_\+\+S\+L\+E\+E\+P}}\item[{\em 
\hypertarget{group__Emotion__Ressource_ga4e8f76b4dfa9b67ec3069452b3ace84faff7e65f14703dd688e762bcfe0254397}{E\+M\+O\+T\+I\+O\+N\+\_\+\+S\+L\+E\+E\+P}\label{group__Emotion__Ressource_ga4e8f76b4dfa9b67ec3069452b3ace84faff7e65f14703dd688e762bcfe0254397}
}]turn off hardware ressource usage like overlay \index{E\+M\+O\+T\+I\+O\+N\+\_\+\+D\+E\+E\+P\+\_\+\+S\+L\+E\+E\+P@{E\+M\+O\+T\+I\+O\+N\+\_\+\+D\+E\+E\+P\+\_\+\+S\+L\+E\+E\+P}!Video ressource management@{Video ressource management}}\index{Video ressource management@{Video ressource management}!E\+M\+O\+T\+I\+O\+N\+\_\+\+D\+E\+E\+P\+\_\+\+S\+L\+E\+E\+P@{E\+M\+O\+T\+I\+O\+N\+\_\+\+D\+E\+E\+P\+\_\+\+S\+L\+E\+E\+P}}\item[{\em 
\hypertarget{group__Emotion__Ressource_ga4e8f76b4dfa9b67ec3069452b3ace84fa03262db0399cae7bb1de27884e4e986f}{E\+M\+O\+T\+I\+O\+N\+\_\+\+D\+E\+E\+P\+\_\+\+S\+L\+E\+E\+P}\label{group__Emotion__Ressource_ga4e8f76b4dfa9b67ec3069452b3ace84fa03262db0399cae7bb1de27884e4e986f}
}]destroy the pipeline, but keep full resolution pixels output around \index{E\+M\+O\+T\+I\+O\+N\+\_\+\+H\+I\+B\+E\+R\+N\+A\+T\+E@{E\+M\+O\+T\+I\+O\+N\+\_\+\+H\+I\+B\+E\+R\+N\+A\+T\+E}!Video ressource management@{Video ressource management}}\index{Video ressource management@{Video ressource management}!E\+M\+O\+T\+I\+O\+N\+\_\+\+H\+I\+B\+E\+R\+N\+A\+T\+E@{E\+M\+O\+T\+I\+O\+N\+\_\+\+H\+I\+B\+E\+R\+N\+A\+T\+E}}\item[{\em 
\hypertarget{group__Emotion__Ressource_ga4e8f76b4dfa9b67ec3069452b3ace84fa5dd6c2d73f04ce3060d612b837bfa62a}{E\+M\+O\+T\+I\+O\+N\+\_\+\+H\+I\+B\+E\+R\+N\+A\+T\+E}\label{group__Emotion__Ressource_ga4e8f76b4dfa9b67ec3069452b3ace84fa5dd6c2d73f04ce3060d612b837bfa62a}
}]destroy the pipeline, and keep half resolution or object resolution if lower \end{description}
\end{Desc}


\subsection{Function Documentation}
\hypertarget{group__Emotion__Ressource_ga1fa1466d28545a3e2e6781d70e8d03d8}{\index{Video ressource management@{Video ressource management}!emotion\+\_\+object\+\_\+priority\+\_\+set@{emotion\+\_\+object\+\_\+priority\+\_\+set}}
\index{emotion\+\_\+object\+\_\+priority\+\_\+set@{emotion\+\_\+object\+\_\+priority\+\_\+set}!Video ressource management@{Video ressource management}}
\subsubsection[{emotion\+\_\+object\+\_\+priority\+\_\+set}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\+A\+P\+I} void emotion\+\_\+object\+\_\+priority\+\_\+set (
\begin{DoxyParamCaption}
\item[{{\bf Evas\+\_\+\+Object} $\ast$}]{obj, }
\item[{{\bf Eina\+\_\+\+Bool}}]{priority}
\end{DoxyParamCaption}
)}}\label{group__Emotion__Ressource_ga1fa1466d28545a3e2e6781d70e8d03d8}


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


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

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

\begin{DoxySeeAlso}{See also}
\hyperlink{group__Emotion__Ressource_ga267c3fee9e4979cb91fdcec208980114}{emotion\+\_\+object\+\_\+priority\+\_\+get()} 
\end{DoxySeeAlso}
\hypertarget{group__Emotion__Ressource_ga267c3fee9e4979cb91fdcec208980114}{\index{Video ressource management@{Video ressource management}!emotion\+\_\+object\+\_\+priority\+\_\+get@{emotion\+\_\+object\+\_\+priority\+\_\+get}}
\index{emotion\+\_\+object\+\_\+priority\+\_\+get@{emotion\+\_\+object\+\_\+priority\+\_\+get}!Video ressource management@{Video ressource management}}
\subsubsection[{emotion\+\_\+object\+\_\+priority\+\_\+get}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\+A\+P\+I} {\bf Eina\+\_\+\+Bool} emotion\+\_\+object\+\_\+priority\+\_\+get (
\begin{DoxyParamCaption}
\item[{const {\bf Evas\+\_\+\+Object} $\ast$}]{obj}
\end{DoxyParamCaption}
)}}\label{group__Emotion__Ressource_ga267c3fee9e4979cb91fdcec208980114}


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}
E\+I\+N\+A\+\_\+\+T\+R\+U\+E 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 E\+I\+N\+A\+\_\+\+F\+A\+L\+S\+E.

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


References E\+I\+N\+A\+\_\+\+F\+A\+L\+S\+E.

\hypertarget{group__Emotion__Ressource_ga9859866518239b73dfff6ba3411f03bb}{\index{Video ressource management@{Video ressource management}!emotion\+\_\+object\+\_\+suspend\+\_\+set@{emotion\+\_\+object\+\_\+suspend\+\_\+set}}
\index{emotion\+\_\+object\+\_\+suspend\+\_\+set@{emotion\+\_\+object\+\_\+suspend\+\_\+set}!Video ressource management@{Video ressource management}}
\subsubsection[{emotion\+\_\+object\+\_\+suspend\+\_\+set}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\+A\+P\+I} void emotion\+\_\+object\+\_\+suspend\+\_\+set (
\begin{DoxyParamCaption}
\item[{{\bf Evas\+\_\+\+Object} $\ast$}]{obj, }
\item[{{\bf Emotion\+\_\+\+Suspend}}]{state}
\end{DoxyParamCaption}
)}}\label{group__Emotion__Ressource_ga9859866518239b73dfff6ba3411f03bb}


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}
\hyperlink{group__Emotion__Ressource_ga4e8f76b4dfa9b67ec3069452b3ace84f}{Emotion\+\_\+\+Suspend} 

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


References E\+M\+O\+T\+I\+O\+N\+\_\+\+D\+E\+E\+P\+\_\+\+S\+L\+E\+E\+P, E\+M\+O\+T\+I\+O\+N\+\_\+\+H\+I\+B\+E\+R\+N\+A\+T\+E, E\+M\+O\+T\+I\+O\+N\+\_\+\+S\+L\+E\+E\+P, and E\+M\+O\+T\+I\+O\+N\+\_\+\+W\+A\+K\+E\+U\+P.

\hypertarget{group__Emotion__Ressource_ga9d95e259128567d79ca48670fe6eafbf}{\index{Video ressource management@{Video ressource management}!emotion\+\_\+object\+\_\+suspend\+\_\+get@{emotion\+\_\+object\+\_\+suspend\+\_\+get}}
\index{emotion\+\_\+object\+\_\+suspend\+\_\+get@{emotion\+\_\+object\+\_\+suspend\+\_\+get}!Video ressource management@{Video ressource management}}
\subsubsection[{emotion\+\_\+object\+\_\+suspend\+\_\+get}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\+A\+P\+I} {\bf Emotion\+\_\+\+Suspend} emotion\+\_\+object\+\_\+suspend\+\_\+get (
\begin{DoxyParamCaption}
\item[{{\bf Evas\+\_\+\+Object} $\ast$}]{obj}
\end{DoxyParamCaption}
)}}\label{group__Emotion__Ressource_ga9d95e259128567d79ca48670fe6eafbf}


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}
\hyperlink{group__Emotion__Ressource_ga4e8f76b4dfa9b67ec3069452b3ace84f}{Emotion\+\_\+\+Suspend} 

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


References E\+M\+O\+T\+I\+O\+N\+\_\+\+W\+A\+K\+E\+U\+P.

