OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved. | 2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #ifndef VP9_ENCODER_VP9_ENCODER_H_ | 11 #ifndef VP9_ENCODER_VP9_ENCODER_H_ |
12 #define VP9_ENCODER_VP9_ENCODER_H_ | 12 #define VP9_ENCODER_VP9_ENCODER_H_ |
13 | 13 |
14 #include <stdio.h> | 14 #include <stdio.h> |
15 | 15 |
16 #include "./vpx_config.h" | 16 #include "./vpx_config.h" |
17 #include "vpx/internal/vpx_codec_internal.h" | 17 #include "vpx/internal/vpx_codec_internal.h" |
18 #include "vpx/vp8cx.h" | 18 #include "vpx/vp8cx.h" |
| 19 #if CONFIG_INTERNAL_STATS |
| 20 #include "vpx_dsp/ssim.h" |
| 21 #endif |
| 22 #include "vpx_dsp/variance.h" |
19 #include "vpx_util/vpx_thread.h" | 23 #include "vpx_util/vpx_thread.h" |
20 | 24 |
21 #include "vp9/common/vp9_alloccommon.h" | 25 #include "vp9/common/vp9_alloccommon.h" |
22 #include "vp9/common/vp9_ppflags.h" | 26 #include "vp9/common/vp9_ppflags.h" |
23 #include "vp9/common/vp9_entropymode.h" | 27 #include "vp9/common/vp9_entropymode.h" |
24 #include "vp9/common/vp9_thread_common.h" | 28 #include "vp9/common/vp9_thread_common.h" |
25 #include "vp9/common/vp9_onyxc_int.h" | 29 #include "vp9/common/vp9_onyxc_int.h" |
26 | 30 |
27 #include "vp9/encoder/vp9_aq_cyclicrefresh.h" | 31 #include "vp9/encoder/vp9_aq_cyclicrefresh.h" |
28 #include "vp9/encoder/vp9_context_tree.h" | 32 #include "vp9/encoder/vp9_context_tree.h" |
29 #include "vp9/encoder/vp9_encodemb.h" | 33 #include "vp9/encoder/vp9_encodemb.h" |
30 #include "vp9/encoder/vp9_firstpass.h" | 34 #include "vp9/encoder/vp9_firstpass.h" |
31 #include "vp9/encoder/vp9_lookahead.h" | 35 #include "vp9/encoder/vp9_lookahead.h" |
32 #include "vp9/encoder/vp9_mbgraph.h" | 36 #include "vp9/encoder/vp9_mbgraph.h" |
33 #include "vp9/encoder/vp9_mcomp.h" | 37 #include "vp9/encoder/vp9_mcomp.h" |
34 #include "vp9/encoder/vp9_quantize.h" | 38 #include "vp9/encoder/vp9_quantize.h" |
35 #include "vp9/encoder/vp9_ratectrl.h" | 39 #include "vp9/encoder/vp9_ratectrl.h" |
36 #include "vp9/encoder/vp9_rd.h" | 40 #include "vp9/encoder/vp9_rd.h" |
37 #if CONFIG_INTERNAL_STATS | |
38 #include "vp9/encoder/vp9_ssim.h" | |
39 #endif | |
40 #include "vp9/encoder/vp9_speed_features.h" | 41 #include "vp9/encoder/vp9_speed_features.h" |
41 #include "vp9/encoder/vp9_svc_layercontext.h" | 42 #include "vp9/encoder/vp9_svc_layercontext.h" |
42 #include "vp9/encoder/vp9_tokenize.h" | 43 #include "vp9/encoder/vp9_tokenize.h" |
43 #include "vpx_dsp/variance.h" | |
44 | 44 |
45 #if CONFIG_VP9_TEMPORAL_DENOISING | 45 #if CONFIG_VP9_TEMPORAL_DENOISING |
46 #include "vp9/encoder/vp9_denoiser.h" | 46 #include "vp9/encoder/vp9_denoiser.h" |
47 #endif | 47 #endif |
48 | 48 |
49 #ifdef __cplusplus | 49 #ifdef __cplusplus |
50 extern "C" { | 50 extern "C" { |
51 #endif | 51 #endif |
52 | 52 |
53 typedef struct { | 53 typedef struct { |
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
606 #endif // CONFIG_VP9_HIGHBITDEPTH | 606 #endif // CONFIG_VP9_HIGHBITDEPTH |
607 | 607 |
608 void vp9_alloc_compressor_data(VP9_COMP *cpi); | 608 void vp9_alloc_compressor_data(VP9_COMP *cpi); |
609 | 609 |
610 void vp9_scale_references(VP9_COMP *cpi); | 610 void vp9_scale_references(VP9_COMP *cpi); |
611 | 611 |
612 void vp9_update_reference_frames(VP9_COMP *cpi); | 612 void vp9_update_reference_frames(VP9_COMP *cpi); |
613 | 613 |
614 void vp9_set_high_precision_mv(VP9_COMP *cpi, int allow_high_precision_mv); | 614 void vp9_set_high_precision_mv(VP9_COMP *cpi, int allow_high_precision_mv); |
615 | 615 |
616 YV12_BUFFER_CONFIG *vp9_scale_if_required_fast(VP9_COMMON *cm, | |
617 YV12_BUFFER_CONFIG *unscaled, | |
618 YV12_BUFFER_CONFIG *scaled); | |
619 | |
620 YV12_BUFFER_CONFIG *vp9_scale_if_required(VP9_COMMON *cm, | 616 YV12_BUFFER_CONFIG *vp9_scale_if_required(VP9_COMMON *cm, |
621 YV12_BUFFER_CONFIG *unscaled, | 617 YV12_BUFFER_CONFIG *unscaled, |
622 YV12_BUFFER_CONFIG *scaled); | 618 YV12_BUFFER_CONFIG *scaled); |
623 | 619 |
624 void vp9_apply_encoding_flags(VP9_COMP *cpi, vpx_enc_frame_flags_t flags); | 620 void vp9_apply_encoding_flags(VP9_COMP *cpi, vpx_enc_frame_flags_t flags); |
625 | 621 |
626 static INLINE int is_two_pass_svc(const struct VP9_COMP *const cpi) { | 622 static INLINE int is_two_pass_svc(const struct VP9_COMP *const cpi) { |
627 return cpi->use_svc && cpi->oxcf.pass != 0; | 623 return cpi->use_svc && cpi->oxcf.pass != 0; |
628 } | 624 } |
629 | 625 |
(...skipping 27 matching lines...) Expand all Loading... |
657 | 653 |
658 void vp9_new_framerate(VP9_COMP *cpi, double framerate); | 654 void vp9_new_framerate(VP9_COMP *cpi, double framerate); |
659 | 655 |
660 #define LAYER_IDS_TO_IDX(sl, tl, num_tl) ((sl) * (num_tl) + (tl)) | 656 #define LAYER_IDS_TO_IDX(sl, tl, num_tl) ((sl) * (num_tl) + (tl)) |
661 | 657 |
662 #ifdef __cplusplus | 658 #ifdef __cplusplus |
663 } // extern "C" | 659 } // extern "C" |
664 #endif | 660 #endif |
665 | 661 |
666 #endif // VP9_ENCODER_VP9_ENCODER_H_ | 662 #endif // VP9_ENCODER_VP9_ENCODER_H_ |
OLD | NEW |