Remove unused headers

abstract-encoders
Andri Yngvason 2021-12-11 21:07:41 +00:00
parent a7241658b0
commit 42b102df0c
6 changed files with 30 additions and 91 deletions

View File

@ -1,22 +0,0 @@
/*
* Copyright (c) 2019 - 2021 Andri Yngvason
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
* REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
* INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
* OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/
#pragma once
struct nvnc_fb;
struct rfb_pixel_format;
struct pixman_region16;
struct vec;

View File

@ -16,21 +16,6 @@
#pragma once #pragma once
#include "encoder.h"
#include "rfb-proto.h"
#include "vec.h"
#include <unistd.h>
#include <stdint.h>
#include <zlib.h>
#include <pthread.h>
struct tight_tile;
struct pixman_region16;
struct aml_work;
typedef void (*tight_done_fn)(struct vec* frame, void*);
enum tight_quality { enum tight_quality {
TIGHT_QUALITY_UNSPEC = 0, TIGHT_QUALITY_UNSPEC = 0,
TIGHT_QUALITY_LOSSLESS, TIGHT_QUALITY_LOSSLESS,
@ -38,29 +23,3 @@ enum tight_quality {
TIGHT_QUALITY_HIGH, TIGHT_QUALITY_HIGH,
}; };
struct tight_encoder {
struct encoder encoder;
uint32_t width;
uint32_t height;
uint32_t grid_width;
uint32_t grid_height;
enum tight_quality quality;
struct tight_tile* grid;
z_stream zs[4];
struct aml_work* zs_worker[4];
struct rfb_pixel_format dfmt;
struct rfb_pixel_format sfmt;
struct nvnc_fb* fb;
uint32_t n_rects;
uint32_t n_jobs;
struct vec dst;
tight_done_fn on_frame_done;
void* userdata;
};

View File

@ -1,26 +0,0 @@
/*
* Copyright (c) 2019 - 2021 Andri Yngvason
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
* REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
* INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
* OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/
#pragma once
#include <stdint.h>
#include <unistd.h>
#include <zlib.h>
struct nvnc_fb;
struct rfb_pixel_format;
struct pixman_region16;
struct vec;

View File

@ -19,7 +19,6 @@
#include "vec.h" #include "vec.h"
#include "fb.h" #include "fb.h"
#include "pixels.h" #include "pixels.h"
#include "raw-encoding.h"
#include "enc-util.h" #include "enc-util.h"
#include "encoder.h" #include "encoder.h"
#include "rcbuf.h" #include "rcbuf.h"

View File

@ -25,6 +25,7 @@
#include "enc-util.h" #include "enc-util.h"
#include "fb.h" #include "fb.h"
#include "rcbuf.h" #include "rcbuf.h"
#include "encoder.h"
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h> #include <unistd.h>
@ -57,6 +58,35 @@
struct encoder* tight_encoder_new(uint16_t width, uint16_t height); struct encoder* tight_encoder_new(uint16_t width, uint16_t height);
typedef void (*tight_done_fn)(struct vec* frame, void*);
struct tight_encoder {
struct encoder encoder;
uint32_t width;
uint32_t height;
uint32_t grid_width;
uint32_t grid_height;
enum tight_quality quality;
struct tight_tile* grid;
z_stream zs[4];
struct aml_work* zs_worker[4];
struct rfb_pixel_format dfmt;
struct rfb_pixel_format sfmt;
struct nvnc_fb* fb;
uint32_t n_rects;
uint32_t n_jobs;
struct vec dst;
tight_done_fn on_frame_done;
void* userdata;
};
enum tight_tile_state { enum tight_tile_state {
TIGHT_TILE_READY = 0, TIGHT_TILE_READY = 0,
TIGHT_TILE_DAMAGED, TIGHT_TILE_DAMAGED,

View File

@ -16,7 +16,6 @@
#include "rfb-proto.h" #include "rfb-proto.h"
#include "vec.h" #include "vec.h"
#include "zrle.h"
#include "neatvnc.h" #include "neatvnc.h"
#include "pixels.h" #include "pixels.h"
#include "fb.h" #include "fb.h"