1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
|
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <schroedinger/schro.h>
#include <schroedinger/schrowavelet.h>
#include <orc/orc.h>
#include <orc-test/orcprofile.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int16_t tmp[2048+100];
int orc_profile_get_min (OrcProfile *prof)
{
int i;
int min;
min = prof->hist_time[0];
for(i=0;i<10;i++){
if (prof->hist_count[i] > 0) {
if (prof->hist_time[i] < min) {
min = prof->hist_time[i];
}
}
}
return min;
}
void
upsample_speed (int filter, int width, int height)
{
SchroFrame *frame1;
SchroUpsampledFrame *upframe;
SchroMemoryDomain *mem;
int i;
mem = schro_memory_domain_new_local ();
frame1 = schro_frame_new_and_alloc (mem, SCHRO_FRAME_FORMAT_U8_444, width, height);
for(i=0;i<100;i++){
upframe = schro_upsampled_frame_new (schro_frame_ref(frame1));
schro_upsampled_frame_upsample (upframe);
schro_upsampled_frame_free (upframe);
}
schro_frame_unref (frame1);
schro_memory_domain_free (mem);
}
int
main (int argc, char *argv[])
{
orc_init();
upsample_speed (1, 1920, 1080);
return 0;
}
|