Exemplo n.º 1
0
        public int sceMpegAvcQueryYCbCrSize(SceMpegPointer *Mpeg, QueryYCbCrSizeModeEnum Mode, int Width, int Height,
                                            int *Result)
        {
            if ((Width & 15) != 0 || (Height & 15) != 0 || Width > 480 || Height > 272)
            {
                throw new SceKernelException(SceKernelErrors.ERROR_MPEG_INVALID_VALUE);
            }

            *Result = Width / 2 * (Height / 2) * 6 + 128;
            return(0);
        }
Exemplo n.º 2
0
		public int sceMpegAvcQueryYCbCrSize(SceMpegPointer* Mpeg, QueryYCbCrSizeModeEnum Mode, int Width, int Height, int* Result)
		{
			if ((Width & 15) != 0 || (Height & 15) != 0 || Width > 480 || Height > 272)
			{
				throw(new SceKernelException(SceKernelErrors.ERROR_MPEG_INVALID_VALUE));
			}

			*Result = (Width / 2) * (Height / 2) * 6 + 128;
			return 0;
		}