nn::jpeg::CTR::JpegMpEncoder::SetOrientation Member Function

Syntax

#include <nn/jpeg.h>

void SetOrientation(
     u16 orientation
);

Arguments

Name Description
in orientation Specifies the image orientation (from 1 to 8).

Return Values

None.

Description

Registers the image orientation to embed in the Exif IFD of a JPEG file.

This information is the information registered in the IFD0 Orientation tag. The default is not to register.

Call this function before calling the encoding function. The values specified by this function are cleared after the encoding function completes, regardless of whether the encoding function succeeded or failed. When encoding multiple times, you must call this function before each encoding function call. The values specified by this function are also cleared if you call the ClearOrientation function or if you reinitialize the encoder object using the Initialize function.

Revision History

2010/08/16
Initial version.

CONFIDENTIAL