video_common: Added pixel frequency computation function.
There are now two functions used for this purpose: - u32 XVid_GetPixelClockHzByHVFr(u32 HTotal, u32 VTotal, u8 Fr); - u32 XVid_GetPixelClockHzByVmId(XVid_VideoMode VmId); Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
This commit is contained in:
parent
2414cc6832
commit
c9ef03a85f
2 changed files with 8 additions and 2 deletions
|
@ -53,7 +53,12 @@
|
||||||
|
|
||||||
#include "xvid.h"
|
#include "xvid.h"
|
||||||
|
|
||||||
u32 XVid_GetPixelClockHz(XVid_VideoMode VmId)
|
u32 XVid_GetPixelClockHzByHVFr(u32 HTotal, u32 VTotal, u8 Fr)
|
||||||
|
{
|
||||||
|
return (HTotal * VTotal * Fr);
|
||||||
|
}
|
||||||
|
|
||||||
|
u32 XVid_GetPixelClockHzByVmId(XVid_VideoMode VmId)
|
||||||
{
|
{
|
||||||
u32 ClkHz;
|
u32 ClkHz;
|
||||||
XVid_VideoTimingMode *VmPtr;
|
XVid_VideoTimingMode *VmPtr;
|
||||||
|
|
|
@ -338,7 +338,8 @@ extern const XVid_VideoTimingMode XVid_VideoTimingModes[XVID_VM_NUM_SUPPORTED];
|
||||||
|
|
||||||
/**************************** Function Prototypes *****************************/
|
/**************************** Function Prototypes *****************************/
|
||||||
|
|
||||||
u32 XVid_GetPixelClockHz(XVid_VideoMode VmId);
|
u32 XVid_GetPixelClockHzByHVFr(u32 HTotal, u32 VTotal, u8 Fr);
|
||||||
|
u32 XVid_GetPixelClockHzByVmId(XVid_VideoMode VmId);
|
||||||
XVid_VideoFormat XVid_IsVideoFormatInterlaced(XVid_VideoMode VmId);
|
XVid_VideoFormat XVid_IsVideoFormatInterlaced(XVid_VideoMode VmId);
|
||||||
|
|
||||||
#endif /* XVID_H_ */
|
#endif /* XVID_H_ */
|
||||||
|
|
Loading…
Add table
Reference in a new issue