~rsalveti/qtubuntu-camera/upstream-bump

« back to all changes in this revision

Viewing changes to unittests/aalimagecapturecontrol/aalimageencodercontrol.cpp

  • Committer: CI bot
  • Author(s): Jim Hodapp
  • Date: 2014-11-05 01:31:18 UTC
  • mfrom: (119.1.2 qtubuntu-camera)
  • Revision ID: ps-jenkins@lists.canonical.com-20141105013118-47z5r3a3a4wp3bkz
Add thumbnail size selection support. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (C) 2013 Canonical, Ltd.
 
2
 * Copyright (C) 2013-2014 Canonical, Ltd.
3
3
 *
4
4
 * This program is free software; you can redistribute it and/or modify
5
5
 * it under the terms of the GNU Lesser General Public License as published by
63
63
    return QList<QSize>();
64
64
}
65
65
 
 
66
QList<QSize> AalImageEncoderControl::supportedThumbnailResolutions(const QImageEncoderSettings &settings, bool *continuous) const
 
67
{
 
68
    Q_UNUSED(settings);
 
69
    Q_UNUSED(continuous);
 
70
 
 
71
    return QList<QSize>();
 
72
}
 
73
 
66
74
void AalImageEncoderControl::init(CameraControl *control)
67
75
{
68
76
    Q_UNUSED(control);
73
81
    Q_UNUSED(size);
74
82
}
75
83
 
 
84
void AalImageEncoderControl::setThumbnailSize(const QSize &size)
 
85
{
 
86
    Q_UNUSED(size);
 
87
}
 
88
 
76
89
void AalImageEncoderControl::resetAllSettings()
77
90
{
78
91
}
79
92
 
80
 
void AalImageEncoderControl::setPictureSizeCb(void *ctx, int width, int height)
81
 
{
82
 
    Q_UNUSED(ctx);
83
 
    Q_UNUSED(width);
84
 
    Q_UNUSED(height);
85
 
}
86
 
 
87
 
void AalImageEncoderControl::setPictureSize(int width, int height)
 
93
void AalImageEncoderControl::getPictureSizeCb(void *ctx, int width, int height)
 
94
{
 
95
    Q_UNUSED(ctx);
 
96
    Q_UNUSED(width);
 
97
    Q_UNUSED(height);
 
98
}
 
99
 
 
100
void AalImageEncoderControl::getPictureSize(int width, int height)
 
101
{
 
102
    Q_UNUSED(width);
 
103
    Q_UNUSED(height);
 
104
}
 
105
 
 
106
void AalImageEncoderControl::getThumbnailSizeCb(void *ctx, int width, int height)
 
107
{
 
108
    Q_UNUSED(ctx);
 
109
    Q_UNUSED(width);
 
110
    Q_UNUSED(height);
 
111
}
 
112
 
 
113
void AalImageEncoderControl::getThumbnailSize(int width, int height)
88
114
{
89
115
    Q_UNUSED(width);
90
116
    Q_UNUSED(height);