imgdb::search::SearchPicture Function

Syntax

void SearchPicture();

Parameters

None.

Return Values

None.

Description

Searches for pictures managed by ImageDb.

This function searches among the pictures managed by ImageDb and then internally saves the search results.
The results of the search can be obtained with functions such as the GetTitleUniqueId function or the GetPath function by specifying an index.
The search results are arranged in ascending order based on the capture date/time (that is, the earliest picture has the smallest index number, and the latest picture has the largest index number).
The CollectPicture function must be called to manage photos when they are directly added to or deleted from an SD Card on the PC.

If there are no pictures on the SD Card or if none can be recognized, the function ends normally with 0 as the search result.

The internally stored search result is invalidated by the events and operations listed below.
When the search result is in the invalidated state, avoid calling any Get* functions, because assert failures can occur or incorrect information can be returned.
The valid state is restored when you search again with the SearchPicture function.
・When the SD card is inserted.
・When the SD card is removed.
・When a picture is saved by JpegSaver/MpSaver.
・When a photo is deleted by the DeletePicture() function.
・When management files are updated by the CollectPicture() function.
・When returning from the HOME Menu (because a picture may have been taken with the HOME Menu Camera).

When running, this function temporarily uses up to 35 KB of memory.


CONFIDENTIAL