tor-browser

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

dovi_rpu.h (1477B)


      1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
      2 /* vim:set ts=2 sw=2 sts=2 et cindent: */
      3 /* This Source Code Form is subject to the terms of the Mozilla Public
      4 * License, v. 2.0. If a copy of the MPL was not distributed with this
      5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      6 
      7 /* Stubs for dovi_rpu.{c,h} */
      8 
      9 enum {
     10    FF_DOVI_WRAP_T35        = 1 << 1, ///< wrap inside T.35+EMDF
     11 };
     12 
     13 typedef struct AVCtx AVContext;
     14 
     15 typedef struct AVDOVIDecoderConfigurationRecord {
     16    uint8_t dv_profile;
     17 } AVDOVIDecoderConfigurationRecord;
     18 
     19 typedef struct DOVICtx {
     20  int dv_profile;
     21  void* logctx;
     22  int operating_point;
     23  AVDOVIDecoderConfigurationRecord cfg;
     24  #define FF_DOVI_AUTOMATIC -1
     25    int enable;
     26 } DOVIContext;
     27 
     28 typedef struct AVDOVIMetadata {
     29 } AVDOVIMetadata;
     30 
     31 static void ff_dovi_ctx_unref(DOVIContext* ctx) {}
     32 static void ff_dovi_update_cfg(DOVIContext* ctx,
     33                               AVDOVIDecoderConfigurationRecord* record) {}
     34 static int ff_dovi_rpu_parse(DOVIContext* ctx, uint8_t* buf, size_t len,
     35                             int err_recognition) {
     36  return 0;
     37 }
     38 
     39 static int ff_dovi_attach_side_data(DOVIContext* ctx, AVFrame* frame) {
     40  return 0;
     41 }
     42 
     43 static int ff_dovi_configure(DOVIContext *s, AVCodecContext *avctx) {
     44  return 0;
     45 }
     46 
     47 static int ff_dovi_rpu_generate(DOVIContext *s, const AVDOVIMetadata *metadata,
     48                                int flags, uint8_t **out_rpu, int *out_size) {
     49  return 0;
     50 }