You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.1 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /*
  2. * Copyright (c) 2018 The WebRTC project authors. All Rights Reserved.
  3. *
  4. * Use of this source code is governed by a BSD-style license
  5. * that can be found in the LICENSE file in the root of the source
  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. #include "api/video_codecs/video_decoder.h"
  11. namespace webrtc {
  12. int32_t DecodedImageCallback::Decoded(VideoFrame& decodedImage,
  13. int64_t decode_time_ms) {
  14. // The default implementation ignores custom decode time value.
  15. return Decoded(decodedImage);
  16. }
  17. void DecodedImageCallback::Decoded(VideoFrame& decodedImage,
  18. absl::optional<int32_t> decode_time_ms,
  19. absl::optional<uint8_t> qp) {
  20. Decoded(decodedImage, decode_time_ms.value_or(-1));
  21. }
  22. bool VideoDecoder::PrefersLateDecoding() const {
  23. return true;
  24. }
  25. const char* VideoDecoder::ImplementationName() const {
  26. return "unknown";
  27. }
  28. } // namespace webrtc