• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2020 The libgav1 Authors
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 //      http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 #include "src/gav1/decoder_settings.h"
16 
17 extern "C" {
18 
Libgav1DecoderSettingsInitDefault(Libgav1DecoderSettings * settings)19 void Libgav1DecoderSettingsInitDefault(Libgav1DecoderSettings* settings) {
20   settings->threads = 1;
21   settings->frame_parallel = 0;    // false
22   settings->blocking_dequeue = 0;  // false
23   settings->on_frame_buffer_size_changed = nullptr;
24   settings->get_frame_buffer = nullptr;
25   settings->release_frame_buffer = nullptr;
26   settings->release_input_buffer = nullptr;
27   settings->callback_private_data = nullptr;
28   settings->output_all_layers = 0;  // false
29   settings->operating_point = 0;
30   settings->post_filter_mask = 0x1f;
31 }
32 
33 }  // extern "C"
34