\hypertarget{mmal__param__convert_8h}{}\section{/\+Volumes/\+W\+O\+R\+K\+\_\+\+I\+N\+\_\+\+P\+R\+O\+G\+R\+E\+S\+S/\+R\+A\+S\+P\+B\+E\+R\+R\+Y\+\_\+\+P\+I/github/firmware-\/master/opt/vc/include/interface/mmal/util/mmal\+\_\+param\+\_\+convert.h File Reference}
\label{mmal__param__convert_8h}\index{/\+Volumes/\+W\+O\+R\+K\+\_\+\+I\+N\+\_\+\+P\+R\+O\+G\+R\+E\+S\+S/\+R\+A\+S\+P\+B\+E\+R\+R\+Y\+\_\+\+P\+I/github/firmware-\/master/opt/vc/include/interface/mmal/util/mmal\+\_\+param\+\_\+convert.\+h@{/\+Volumes/\+W\+O\+R\+K\+\_\+\+I\+N\+\_\+\+P\+R\+O\+G\+R\+E\+S\+S/\+R\+A\+S\+P\+B\+E\+R\+R\+Y\+\_\+\+P\+I/github/firmware-\/master/opt/vc/include/interface/mmal/util/mmal\+\_\+param\+\_\+convert.\+h}}
{\ttfamily \#include \char`\"{}interface/mmal/mmal.\+h\char`\"{}}\\*
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{group___mmal_types_ga5ac87230bd615d2b154a9d5899bc37fd}{M\+M\+A\+L\+\_\+\+S\+T\+A\+T\+U\+S\+\_\+\+T} \hyperlink{mmal__param__convert_8h_a2cb84ff057aac821c2afb9fb4567750b}{mmal\+\_\+parse\+\_\+video\+\_\+size} (uint32\+\_\+t $\ast$w, uint32\+\_\+t $\ast$h, const char $\ast$str)
\item 
\hyperlink{group___mmal_types_ga5ac87230bd615d2b154a9d5899bc37fd}{M\+M\+A\+L\+\_\+\+S\+T\+A\+T\+U\+S\+\_\+\+T} \hyperlink{mmal__param__convert_8h_ac6611b7ba3c884933fb75edcb0260ff8}{mmal\+\_\+parse\+\_\+rational} (\hyperlink{struct_m_m_a_l___r_a_t_i_o_n_a_l___t}{M\+M\+A\+L\+\_\+\+R\+A\+T\+I\+O\+N\+A\+L\+\_\+\+T} $\ast$dest, const char $\ast$str)
\item 
\hyperlink{group___mmal_types_ga5ac87230bd615d2b154a9d5899bc37fd}{M\+M\+A\+L\+\_\+\+S\+T\+A\+T\+U\+S\+\_\+\+T} \hyperlink{mmal__param__convert_8h_a59cae1ab6f52cf0897f5a73e442778f6}{mmal\+\_\+parse\+\_\+int} (int $\ast$dest, const char $\ast$str)
\item 
\hyperlink{group___mmal_types_ga5ac87230bd615d2b154a9d5899bc37fd}{M\+M\+A\+L\+\_\+\+S\+T\+A\+T\+U\+S\+\_\+\+T} \hyperlink{mmal__param__convert_8h_a2349b3030e80a48d9909ff7b51b53614}{mmal\+\_\+parse\+\_\+uint} (unsigned int $\ast$dest, const char $\ast$str)
\item 
\hyperlink{group___mmal_types_ga5ac87230bd615d2b154a9d5899bc37fd}{M\+M\+A\+L\+\_\+\+S\+T\+A\+T\+U\+S\+\_\+\+T} \hyperlink{mmal__param__convert_8h_a4f10b34eea54e7ecacdfd08063f41f08}{mmal\+\_\+parse\+\_\+geometry} (\hyperlink{struct_m_m_a_l___r_e_c_t___t}{M\+M\+A\+L\+\_\+\+R\+E\+C\+T\+\_\+\+T} $\ast$dest, const char $\ast$str)
\item 
\hyperlink{group___mmal_types_ga5ac87230bd615d2b154a9d5899bc37fd}{M\+M\+A\+L\+\_\+\+S\+T\+A\+T\+U\+S\+\_\+\+T} \hyperlink{mmal__param__convert_8h_a84ad9982192ec2743059ef691b1cfd5e}{mmal\+\_\+parse\+\_\+video\+\_\+codec} (uint32\+\_\+t $\ast$dest, const char $\ast$str)
\end{DoxyCompactItemize}


\subsection{Detailed Description}
Support for setting/getting parameters as string values. 

\subsection{Function Documentation}
\hypertarget{mmal__param__convert_8h_a4f10b34eea54e7ecacdfd08063f41f08}{}\index{mmal\+\_\+param\+\_\+convert.\+h@{mmal\+\_\+param\+\_\+convert.\+h}!mmal\+\_\+parse\+\_\+geometry@{mmal\+\_\+parse\+\_\+geometry}}
\index{mmal\+\_\+parse\+\_\+geometry@{mmal\+\_\+parse\+\_\+geometry}!mmal\+\_\+param\+\_\+convert.\+h@{mmal\+\_\+param\+\_\+convert.\+h}}
\subsubsection[{mmal\+\_\+parse\+\_\+geometry}]{\setlength{\rightskip}{0pt plus 5cm}{\bf M\+M\+A\+L\+\_\+\+S\+T\+A\+T\+U\+S\+\_\+\+T} mmal\+\_\+parse\+\_\+geometry (
\begin{DoxyParamCaption}
\item[{{\bf M\+M\+A\+L\+\_\+\+R\+E\+C\+T\+\_\+\+T} $\ast$}]{dest, }
\item[{const char $\ast$}]{str}
\end{DoxyParamCaption}
)}\label{mmal__param__convert_8h_a4f10b34eea54e7ecacdfd08063f41f08}
Parse a geometry for a rectangle

e.\+g. 100$\ast$100+50+75 or 200$\ast$150 
\begin{DoxyParams}{Parameters}
{\em dest} & filled in with result \\
\hline
{\em str} & string to convert \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
M\+M\+A\+L\+\_\+\+S\+U\+C\+C\+E\+S\+S or error code 
\end{DoxyReturn}
\hypertarget{mmal__param__convert_8h_a59cae1ab6f52cf0897f5a73e442778f6}{}\index{mmal\+\_\+param\+\_\+convert.\+h@{mmal\+\_\+param\+\_\+convert.\+h}!mmal\+\_\+parse\+\_\+int@{mmal\+\_\+parse\+\_\+int}}
\index{mmal\+\_\+parse\+\_\+int@{mmal\+\_\+parse\+\_\+int}!mmal\+\_\+param\+\_\+convert.\+h@{mmal\+\_\+param\+\_\+convert.\+h}}
\subsubsection[{mmal\+\_\+parse\+\_\+int}]{\setlength{\rightskip}{0pt plus 5cm}{\bf M\+M\+A\+L\+\_\+\+S\+T\+A\+T\+U\+S\+\_\+\+T} mmal\+\_\+parse\+\_\+int (
\begin{DoxyParamCaption}
\item[{int $\ast$}]{dest, }
\item[{const char $\ast$}]{str}
\end{DoxyParamCaption}
)}\label{mmal__param__convert_8h_a59cae1ab6f52cf0897f5a73e442778f6}
Parse an integer, e.\+g. -\/10, 0x1\+A, etc. 
\begin{DoxyParams}{Parameters}
{\em dest} & filled in with result \\
\hline
{\em str} & string to convert \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
M\+M\+A\+L\+\_\+\+S\+U\+C\+C\+E\+S\+S or error code 
\end{DoxyReturn}
\hypertarget{mmal__param__convert_8h_ac6611b7ba3c884933fb75edcb0260ff8}{}\index{mmal\+\_\+param\+\_\+convert.\+h@{mmal\+\_\+param\+\_\+convert.\+h}!mmal\+\_\+parse\+\_\+rational@{mmal\+\_\+parse\+\_\+rational}}
\index{mmal\+\_\+parse\+\_\+rational@{mmal\+\_\+parse\+\_\+rational}!mmal\+\_\+param\+\_\+convert.\+h@{mmal\+\_\+param\+\_\+convert.\+h}}
\subsubsection[{mmal\+\_\+parse\+\_\+rational}]{\setlength{\rightskip}{0pt plus 5cm}{\bf M\+M\+A\+L\+\_\+\+S\+T\+A\+T\+U\+S\+\_\+\+T} mmal\+\_\+parse\+\_\+rational (
\begin{DoxyParamCaption}
\item[{{\bf M\+M\+A\+L\+\_\+\+R\+A\+T\+I\+O\+N\+A\+L\+\_\+\+T} $\ast$}]{dest, }
\item[{const char $\ast$}]{str}
\end{DoxyParamCaption}
)}\label{mmal__param__convert_8h_ac6611b7ba3c884933fb75edcb0260ff8}
Parse a rational number. e.\+g. \char`\"{}30000/1001\char`\"{}, \char`\"{}30\char`\"{}, etc. 
\begin{DoxyParams}{Parameters}
{\em dest} & filled in with result \\
\hline
{\em str} & string to convert \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
M\+M\+A\+L\+\_\+\+S\+U\+C\+C\+E\+S\+S or error code 
\end{DoxyReturn}
\hypertarget{mmal__param__convert_8h_a2349b3030e80a48d9909ff7b51b53614}{}\index{mmal\+\_\+param\+\_\+convert.\+h@{mmal\+\_\+param\+\_\+convert.\+h}!mmal\+\_\+parse\+\_\+uint@{mmal\+\_\+parse\+\_\+uint}}
\index{mmal\+\_\+parse\+\_\+uint@{mmal\+\_\+parse\+\_\+uint}!mmal\+\_\+param\+\_\+convert.\+h@{mmal\+\_\+param\+\_\+convert.\+h}}
\subsubsection[{mmal\+\_\+parse\+\_\+uint}]{\setlength{\rightskip}{0pt plus 5cm}{\bf M\+M\+A\+L\+\_\+\+S\+T\+A\+T\+U\+S\+\_\+\+T} mmal\+\_\+parse\+\_\+uint (
\begin{DoxyParamCaption}
\item[{unsigned int $\ast$}]{dest, }
\item[{const char $\ast$}]{str}
\end{DoxyParamCaption}
)}\label{mmal__param__convert_8h_a2349b3030e80a48d9909ff7b51b53614}
Parse an unsigned integer, e.\+g. 10, 0x1\+A, etc. 
\begin{DoxyParams}{Parameters}
{\em dest} & filled in with result \\
\hline
{\em str} & string to convert \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
M\+M\+A\+L\+\_\+\+S\+U\+C\+C\+E\+S\+S or error code 
\end{DoxyReturn}
\hypertarget{mmal__param__convert_8h_a84ad9982192ec2743059ef691b1cfd5e}{}\index{mmal\+\_\+param\+\_\+convert.\+h@{mmal\+\_\+param\+\_\+convert.\+h}!mmal\+\_\+parse\+\_\+video\+\_\+codec@{mmal\+\_\+parse\+\_\+video\+\_\+codec}}
\index{mmal\+\_\+parse\+\_\+video\+\_\+codec@{mmal\+\_\+parse\+\_\+video\+\_\+codec}!mmal\+\_\+param\+\_\+convert.\+h@{mmal\+\_\+param\+\_\+convert.\+h}}
\subsubsection[{mmal\+\_\+parse\+\_\+video\+\_\+codec}]{\setlength{\rightskip}{0pt plus 5cm}{\bf M\+M\+A\+L\+\_\+\+S\+T\+A\+T\+U\+S\+\_\+\+T} mmal\+\_\+parse\+\_\+video\+\_\+codec (
\begin{DoxyParamCaption}
\item[{uint32\+\_\+t $\ast$}]{dest, }
\item[{const char $\ast$}]{str}
\end{DoxyParamCaption}
)}\label{mmal__param__convert_8h_a84ad9982192ec2743059ef691b1cfd5e}
Parse a video codec name (something that can be encoded/decoded) 
\begin{DoxyParams}{Parameters}
{\em str} & string to convert \\
\hline
{\em dest} & filled in with result \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
M\+M\+A\+L\+\_\+\+S\+U\+C\+C\+E\+S\+S or error code 
\end{DoxyReturn}
\hypertarget{mmal__param__convert_8h_a2cb84ff057aac821c2afb9fb4567750b}{}\index{mmal\+\_\+param\+\_\+convert.\+h@{mmal\+\_\+param\+\_\+convert.\+h}!mmal\+\_\+parse\+\_\+video\+\_\+size@{mmal\+\_\+parse\+\_\+video\+\_\+size}}
\index{mmal\+\_\+parse\+\_\+video\+\_\+size@{mmal\+\_\+parse\+\_\+video\+\_\+size}!mmal\+\_\+param\+\_\+convert.\+h@{mmal\+\_\+param\+\_\+convert.\+h}}
\subsubsection[{mmal\+\_\+parse\+\_\+video\+\_\+size}]{\setlength{\rightskip}{0pt plus 5cm}{\bf M\+M\+A\+L\+\_\+\+S\+T\+A\+T\+U\+S\+\_\+\+T} mmal\+\_\+parse\+\_\+video\+\_\+size (
\begin{DoxyParamCaption}
\item[{uint32\+\_\+t $\ast$}]{w, }
\item[{uint32\+\_\+t $\ast$}]{h, }
\item[{const char $\ast$}]{str}
\end{DoxyParamCaption}
)}\label{mmal__param__convert_8h_a2cb84ff057aac821c2afb9fb4567750b}
Parse a video size. e.\+g. \char`\"{}1080p\char`\"{} gives 1920x1080.


\begin{DoxyParams}{Parameters}
{\em w} & width result \\
\hline
{\em h} & height result \\
\hline
{\em str} & string to convert \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
M\+M\+A\+L\+\_\+\+S\+U\+C\+C\+E\+S\+S or error code 
\end{DoxyReturn}
