1bd944ec0ea027704d9867c5ee6e6e861c696c3b,skvideo/io/abstract.py,VideoReaderAbstract,_readFrame,#VideoReaderAbstract#,268
Before Change
def _readFrame(self):
// Read and convert to numpy array
self._lastread = self._read_frame_data().reshape((self.outputheight, self.outputwidth, self.outputdepth))
return self._lastread
def nextFrame(self):
After Change
def _readFrame(self):
// Read and convert to numpy array
frame = self._read_frame_data()
if self.output_pix_fmt.startswith("yuv444p"):
self._lastread = frame.reshape((self.outputdepth, self.outputheight, self.outputwidth)).transpose((1, 2, 0))
elif self.output_pix_fmt == "rgb24":
self._lastread = frame.reshape((self.outputheight, self.outputwidth, self.outputdepth))
elif self.verbosity > 0:
warnings.warn("Unsupported reshaping from raw buffer to images frames for format {:}. Assuming HEIGHTxWIDTHxCOLOR".format(self.output_pix_fmt), UserWarning)
self._lastread = frame.reshape((self.outputheight, self.outputwidth, self.outputdepth))
return self._lastread
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: scikit-video/scikit-video
Commit Name: 1bd944ec0ea027704d9867c5ee6e6e861c696c3b
Time: 2018-07-19
Author: serge.molina@kloumpt.net
File Name: skvideo/io/abstract.py
Class Name: VideoReaderAbstract
Method Name: _readFrame
Project Name: scikit-video/scikit-video
Commit Name: 2f6a3708091d9ba13f78b7699eaf801bb6a91e65
Time: 2018-07-19
Author: serge.molina@kloumpt.net
File Name: skvideo/io/abstract.py
Class Name: VideoReaderAbstract
Method Name: _readFrame
Project Name: scikit-video/scikit-video
Commit Name: a9f6a49ce99163d277ba04fa62496957c3e373e3
Time: 2018-06-08
Author: olivier.parmentier@gmail.com
File Name: skvideo/io/ffmpeg.py
Class Name: FFmpegReader
Method Name: _readFrame
Project Name: scikit-video/scikit-video
Commit Name: a9f6a49ce99163d277ba04fa62496957c3e373e3
Time: 2018-06-08
Author: olivier.parmentier@gmail.com
File Name: skvideo/io/avconv.py
Class Name: LibAVReader
Method Name: _readFrame