| 758 | } |
| 759 | |
| 760 | bool FramesDecoderGpu::ReadNextFrame(uint8_t *data) { |
| 761 | // No more frames in the file |
| 762 | if (next_frame_idx_ == -1) { |
| 763 | return false; |
| 764 | } |
| 765 | |
| 766 | if (HasIndex()) { |
| 767 | return ReadNextFrameWithIndex(data); |
| 768 | } else { |
| 769 | return ReadNextFrameWithoutIndex(data); |
| 770 | } |
| 771 | } |
| 772 | |
| 773 | unsigned int FramesDecoderGpu::NumBufferedFrames() const { |
| 774 | unsigned int num_buffered = 0; |