| 74 | } |
| 75 | |
| 76 | SeparateYuyvBufferDecoder::SeparateYuyvBufferDecoder(CameraFeed *p_camera_feed) : |
| 77 | AbstractYuyvBufferDecoder(p_camera_feed) { |
| 78 | y_image_data.resize(width * height); |
| 79 | cbcr_image_data.resize(width * height); |
| 80 | y_image.instantiate(); |
| 81 | cbcr_image.instantiate(); |
| 82 | } |
| 83 | |
| 84 | void SeparateYuyvBufferDecoder::decode(StreamingBuffer p_buffer) { |
| 85 | uint8_t *y_dst = (uint8_t *)y_image_data.ptrw(); |
nothing calls this directly
no test coverage detected