(self, rounding=torch.round)
| 406 | """ |
| 407 | |
| 408 | def __init__(self, rounding=torch.round): |
| 409 | super(DeCompressJpeg, self).__init__() |
| 410 | self.c_dequantize = CDequantize() |
| 411 | self.y_dequantize = YDequantize() |
| 412 | self.idct = iDCT8x8() |
| 413 | self.merging = BlockMerging() |
| 414 | self.chroma = ChromaUpsampling() |
| 415 | self.colors = YCbCr2RGBJpeg() |
| 416 | |
| 417 | def forward(self, y, cb, cr, imgh, imgw, factor=1): |
| 418 | """ |
nothing calls this directly
no test coverage detected