| 105 | } |
| 106 | |
| 107 | size_t YUVTextureView::textureCount() const { |
| 108 | switch (_yuvFormat) { |
| 109 | case YUVFormat::I420: |
| 110 | return YUVData::I420_PLANE_COUNT; |
| 111 | case YUVFormat::NV12: |
| 112 | return YUVData::NV12_PLANE_COUNT; |
| 113 | default: |
| 114 | DEBUG_ASSERT(false); |
| 115 | return 0; |
| 116 | } |
| 117 | } |
| 118 | |
| 119 | GPUTexture* YUVTextureView::getTextureAt(size_t index) const { |
| 120 | DEBUG_ASSERT(index < textureCount()); |
no outgoing calls
no test coverage detected