| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
| 10 |
| 11 | #include "api/video_codecs/video_decoder.h" |
| 12 |
| 13 | namespace webrtc { |
| 14 |
| 15 | int32_t DecodedImageCallback::Decoded(VideoFrame& decodedImage, |
| 16 | int64_t decode_time_ms) { |
| 17 | // The default implementation ignores custom decode time value. |
| 18 | return Decoded(decodedImage); |
| 19 | } |
| 20 |
| 21 | void DecodedImageCallback::Decoded(VideoFrame& decodedImage, |
| 22 | absl::optional<int32_t> decode_time_ms, |
| 23 | absl::optional<uint8_t> qp) { |
| 24 | Decoded(decodedImage, decode_time_ms.value_or(-1)); |
| 25 | } |
| 26 |
| 27 | bool VideoDecoder::PrefersLateDecoding() const { |
| 28 | return true; |
| 29 | } |
| 30 |
| 31 | const char* VideoDecoder::ImplementationName() const { |
| 32 | return "unknown"; |
| 33 | } |
| 34 |
| 35 | } // namespace webrtc |
| 36 |