32 static PRLogModuleInfo * VideoBox() {
33 static PRLogModuleInfo* gVideoBox = PR_NewLogModule(
"sbVideoBox");
37 #define TRACE(args) PR_LOG(VideoBox() , PR_LOG_DEBUG, args)
38 #define LOG(args) PR_LOG(VideoBox() , PR_LOG_WARN, args)
51 TRACE((
"sbVideoBox[0x%x] - Created",
this));
56 TRACE((
"sbVideoBox[0x%x] - Destroyed",
this));
62 PRUint32 aParNumerator ,
63 PRUint32 aParDenominator )
65 TRACE((
"sbVideoBox[0x%x] - Init",
this));
76 sbVideoBox::GetParNumerator(PRUint32 *aParNumerator)
78 TRACE((
"sbVideoBox[0x%x] - GetParNumerator",
this));
79 NS_ENSURE_ARG_POINTER(aParNumerator);
87 sbVideoBox::GetParDenominator(PRUint32 *aParDenominator)
89 TRACE((
"sbVideoBox[0x%x] - GetParDenominator",
this));
90 NS_ENSURE_ARG_POINTER(aParDenominator);
98 sbVideoBox::GetWidth(PRUint32 *
aWidth)
100 TRACE((
"sbVideoBox[0x%x] - GetWidth",
this));
101 NS_ENSURE_ARG_POINTER(aWidth);
109 sbVideoBox::GetHeight(PRUint32 *
aHeight)
111 TRACE((
"sbVideoBox[0x%x] - GetHeight",
this));
112 NS_ENSURE_ARG_POINTER(aHeight);
restoreDimensions aHeight
nsresult Init(PRUint32 aWidth, PRUint32 aHeight, PRUint32 aParNumerator=1, PRUint32 aParDenominator=1)
NS_IMPL_THREADSAFE_ISUPPORTS1(sbVideoBox, sbIVideoBox) sbVideoBox