summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/caps/caps.h
blob: e01b4734903cf76a8155c53a442758b20846a8a5 (plain) (blame)
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
// Copyright 2018 yuzu Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.

#pragma once

#include "core/hle/service/service.h"

namespace Service::SM {
class ServiceManager;
}

namespace Service::Capture {

enum AlbumImageOrientation {
    Orientation0 = 0,
    Orientation1 = 1,
    Orientation2 = 2,
    Orientation3 = 3,
};

enum AlbumReportOption {
    Disable = 0,
    Enable = 1,
};

enum ContentType : u8 {
    Screenshot = 0,
    Movie = 1,
    ExtraMovie = 3,
};

enum AlbumStorage : u8 {
    NAND = 0,
    SD = 1,
};

struct AlbumFileDateTime {
    u16 year;
    u8 month;
    u8 day;
    u8 hour;
    u8 minute;
    u8 second;
    u8 uid;
};

struct AlbumEntry {
    u64 size;
    u64 application_id;
    AlbumFileDateTime datetime;
    AlbumStorage storage;
    ContentType content;
    u8 padding[6];
};

struct AlbumFileEntry {
    u64 size;
    u64 hash;
    AlbumFileDateTime datetime;
    AlbumStorage storage;
    ContentType content;
    u8 padding[5];
    u8 unknown;
};

struct ApplicationAlbumEntry {
    u64 size;
    u64 hash;
    AlbumFileDateTime datetime;
    AlbumStorage storage;
    ContentType content;
    u8 padding[5];
    u8 unknown;
};

struct ApplicationAlbumFileEntry {
    ApplicationAlbumEntry entry;
    AlbumFileDateTime datetime;
    u64 unknown;
};

/// Registers all Capture services with the specified service manager.
void InstallInterfaces(SM::ServiceManager& sm);

} // namespace Service::Capture