tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

recon.h (4541B)


      1 /*
      2 * Copyright © 2018-2021, VideoLAN and dav1d authors
      3 * Copyright © 2018, Two Orioles, LLC
      4 * All rights reserved.
      5 *
      6 * Redistribution and use in source and binary forms, with or without
      7 * modification, are permitted provided that the following conditions are met:
      8 *
      9 * 1. Redistributions of source code must retain the above copyright notice, this
     10 *    list of conditions and the following disclaimer.
     11 *
     12 * 2. Redistributions in binary form must reproduce the above copyright notice,
     13 *    this list of conditions and the following disclaimer in the documentation
     14 *    and/or other materials provided with the distribution.
     15 *
     16 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
     17 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
     18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
     19 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
     20 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
     21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
     22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
     23 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
     25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     26 */
     27 
     28 #ifndef DAV1D_SRC_RECON_H
     29 #define DAV1D_SRC_RECON_H
     30 
     31 #include "src/internal.h"
     32 #include "src/levels.h"
     33 
     34 #define DEBUG_BLOCK_INFO 0 && \
     35        f->frame_hdr->frame_offset == 2 && t->by >= 0 && t->by < 4 && \
     36        t->bx >= 8 && t->bx < 12
     37 #define DEBUG_B_PIXELS 0
     38 
     39 #define decl_recon_b_intra_fn(name) \
     40 void (name)(Dav1dTaskContext *t, enum BlockSize bs, \
     41            enum EdgeFlags intra_edge_flags, const Av1Block *b)
     42 typedef decl_recon_b_intra_fn(*recon_b_intra_fn);
     43 
     44 #define decl_recon_b_inter_fn(name) \
     45 int (name)(Dav1dTaskContext *t, enum BlockSize bs, const Av1Block *b)
     46 typedef decl_recon_b_inter_fn(*recon_b_inter_fn);
     47 
     48 #define decl_filter_sbrow_fn(name) \
     49 void (name)(Dav1dFrameContext *f, int sby)
     50 typedef decl_filter_sbrow_fn(*filter_sbrow_fn);
     51 
     52 #define decl_backup_ipred_edge_fn(name) \
     53 void (name)(Dav1dTaskContext *t)
     54 typedef decl_backup_ipred_edge_fn(*backup_ipred_edge_fn);
     55 
     56 #define decl_read_coef_blocks_fn(name) \
     57 void (name)(Dav1dTaskContext *t, enum BlockSize bs, const Av1Block *b)
     58 typedef decl_read_coef_blocks_fn(*read_coef_blocks_fn);
     59 
     60 #define decl_copy_pal_block_fn(name) \
     61 void (name)(Dav1dTaskContext *t, int bx4, int by4, int bw4, int bh4)
     62 typedef decl_copy_pal_block_fn(*copy_pal_block_fn);
     63 
     64 #define decl_read_pal_plane_fn(name) \
     65 void (name)(Dav1dTaskContext *t, Av1Block *b, int pl, int sz_ctx, int bx4, int by4)
     66 typedef decl_read_pal_plane_fn(*read_pal_plane_fn);
     67 
     68 #define decl_read_pal_uv_fn(name) \
     69 void (name)(Dav1dTaskContext *t, Av1Block *b, int sz_ctx, int bx4, int by4)
     70 typedef decl_read_pal_uv_fn(*read_pal_uv_fn);
     71 
     72 decl_recon_b_intra_fn(dav1d_recon_b_intra_8bpc);
     73 decl_recon_b_intra_fn(dav1d_recon_b_intra_16bpc);
     74 
     75 decl_recon_b_inter_fn(dav1d_recon_b_inter_8bpc);
     76 decl_recon_b_inter_fn(dav1d_recon_b_inter_16bpc);
     77 
     78 decl_filter_sbrow_fn(dav1d_filter_sbrow_8bpc);
     79 decl_filter_sbrow_fn(dav1d_filter_sbrow_16bpc);
     80 decl_filter_sbrow_fn(dav1d_filter_sbrow_deblock_cols_8bpc);
     81 decl_filter_sbrow_fn(dav1d_filter_sbrow_deblock_cols_16bpc);
     82 decl_filter_sbrow_fn(dav1d_filter_sbrow_deblock_rows_8bpc);
     83 decl_filter_sbrow_fn(dav1d_filter_sbrow_deblock_rows_16bpc);
     84 void dav1d_filter_sbrow_cdef_8bpc(Dav1dTaskContext *tc, int sby);
     85 void dav1d_filter_sbrow_cdef_16bpc(Dav1dTaskContext *tc, int sby);
     86 decl_filter_sbrow_fn(dav1d_filter_sbrow_resize_8bpc);
     87 decl_filter_sbrow_fn(dav1d_filter_sbrow_resize_16bpc);
     88 decl_filter_sbrow_fn(dav1d_filter_sbrow_lr_8bpc);
     89 decl_filter_sbrow_fn(dav1d_filter_sbrow_lr_16bpc);
     90 
     91 decl_backup_ipred_edge_fn(dav1d_backup_ipred_edge_8bpc);
     92 decl_backup_ipred_edge_fn(dav1d_backup_ipred_edge_16bpc);
     93 
     94 decl_read_coef_blocks_fn(dav1d_read_coef_blocks_8bpc);
     95 decl_read_coef_blocks_fn(dav1d_read_coef_blocks_16bpc);
     96 
     97 decl_copy_pal_block_fn(dav1d_copy_pal_block_y_8bpc);
     98 decl_copy_pal_block_fn(dav1d_copy_pal_block_y_16bpc);
     99 decl_copy_pal_block_fn(dav1d_copy_pal_block_uv_8bpc);
    100 decl_copy_pal_block_fn(dav1d_copy_pal_block_uv_16bpc);
    101 decl_read_pal_plane_fn(dav1d_read_pal_plane_8bpc);
    102 decl_read_pal_plane_fn(dav1d_read_pal_plane_16bpc);
    103 decl_read_pal_uv_fn(dav1d_read_pal_uv_8bpc);
    104 decl_read_pal_uv_fn(dav1d_read_pal_uv_16bpc);
    105 
    106 #endif /* DAV1D_SRC_RECON_H */