| 175 | } |
| 176 | |
| 177 | i32 PixelStream::framesDisplayed() const { |
| 178 | if (mType == kStreaming) { |
| 179 | return -1; |
| 180 | } |
| 181 | fl::size_t pos = mHandle->pos(); |
| 182 | if (pos < mPayloadOffset) return 0; |
| 183 | return static_cast<i32>((pos - mPayloadOffset) / mbytesPerFrame); |
| 184 | } |
| 185 | |
| 186 | i32 PixelStream::bytesRemaining() const { |
| 187 | if (mType == kStreaming) { |