| 165 | } |
| 166 | |
| 167 | i32 PixelStream::framesRemaining() const { |
| 168 | if (mbytesPerFrame == 0) |
| 169 | return 0; |
| 170 | i32 bytes_left = bytesRemaining(); |
| 171 | if (bytes_left <= 0) { |
| 172 | return 0; |
| 173 | } |
| 174 | return bytes_left / mbytesPerFrame; |
| 175 | } |
| 176 | |
| 177 | i32 PixelStream::framesDisplayed() const { |
| 178 | if (mType == kStreaming) { |
no outgoing calls
no test coverage detected