#NEWLINE# @ classmethod #NEWLINE# def framesInFile( cls , filename ) : #NEWLINE# #INDENT# import h264decode #NEWLINE# infile = open ( filename , 'rb' ) #NEWLINE# while True : #NEWLINE# #INDENT# frame = h264decode . YUVFrame ( ) #NEWLINE# try : #NEWLINE# #INDENT# ( frame . width , frame . height , frame . y , frame . u , frame . v , timestamp ) = pickle . load ( infile ) #NEWLINE# #UNINDENT# except EOFError : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# ( yield ( frame , timestamp ) )