Readme-Mobiclip-2_0_4-en_US.html

Mobiclip SDK Ver 2.0.4

Table of Contents

  1. Introduction
  2. Notes
  3. Supplemental Information and Cautions Related to Rights
  4. Required Development Environment
  5. Confirmed Operating Environment
  6. Installation
  7. Compiling Mobiclip SDK code samples
  8. Known Issues
  9. Package Structure
  10. Related Documents
  11. Revision History

1. Introduction

This package is the Mobiclip SDK for the CTR platform.
It is composed of headers, libraries and tools that are used to generate Mobiclip video content and enable playback on the CTR platform.

The SDK headers and libraries allows you to perform playback on the CTR platform of either stereoscopic or 2D Mobiclip video content.

The "Mobiclip Tools for NINTENDO CTR" are used to generate video content in the required Mobiclip MoFlex format. The tools include
the "Mobiclip VFW codec for CTR" for compressing video within AVI files, and the MoFlexTool.exe conversion utility which converts
AVI files into the required MoFlex file format.
Back to top

2. Notes

Care should be taken when calling the mw::mo::moflex::Demuxer::ReadPacket method, to avoid enqueuing too many frames.
Calling it without checking the number of frames already enqueued in the demuxer object can result in an unreasonable large number of enqueued frames, which will dramatically increase memory usage over time.
For details please read the note within section 3.6.5 of the CTR-Mobiclip_SDK_Programing_Manual-en_US.pdf document.

Care should be taken when using mw::mo::helper::audiodevice helper with nw::snd NintendoWare API.
By default both are calling nn::snd::WaitForDspSync and nn::snd::SendParameterToDsp functions that are not multithread safe.
If developer uses mw::snd API, mw::mo::helper::audiodevice helper should be initialized without creation of a sound thread.
A NintendoWare friendly callback would then be given to nw::snd API.
Implementation details can be found in the nw4cPlayback code sample.
For more details concerning nn::snd::WaitForDspSync and nn::snd::SendParameterToDsp usage with nw::snd API please refer to Chapter 7.2 of NintendoWare Sound Programmers Guide.
Back to top

3. Supplemental Information and Cautions Related to Rights

A copyright notice is not required for this middleware.

The sample movie resources provided in this package are only meant to demonstrate how to create and play Mobiclip video content.
Using the sample movie resources in your own application is prohibited.
Back to top

4. Required Development Environment

The following packages are needed in order to use the Mobiclip SDK:

Back to top

5. Confirmed Operating Environment

The Mobiclip SDK has been confirmed to work with the following environment:

The "Mobiclip Tools for NINTENDO CTR" have been confirmed to work with the following Windows OS versions:

Back to top

6. Installation

Package Installation

First extract this package into a directory with sufficient space.
We recommend that the directory path does not contain any spaces or double-byte characters.
After extracting the package, please execute the setup.wsf file (by double-clicking on it).
This will create or update the CTRMW_MOBICLIP_ROOT environment variable that will contain the absolute path of the root directory of the package.

"Mobiclip Tools for NINTENDO CTR" Installation

Launch the Mobiclip_tools_for_CTR.exe self-installer in the CTRMW_MOBICLIP_ROOT/tools directory to install the tools needed to generate content in the required MoFlex file format.
You will need to install a valid Mobiclip license to use the "Mobiclip VFW codec for CTR", which is required to compress video content.
From the Windows Start menu, open "All Programs" -> "Mobiclip Tools for NINTENDO CTR" -> "Install a new Mobiclip license".
Please note that this "Mobiclip Tools for NINTENDO CTR" package does not include a valid Mobiclip license; therefore, you need to obtain it separately.
Please contact Nintendo technical support to obtain your personal Mobiclip license.

Using Mobiclip SDK in your Application

When using the Mobiclip SDK in your application, please use the following header files and libraries.

Header Files
include/mw/mo/mobiclip.h
Libraries
library/(platform)/(target)/libmw_mo_MobiclipVideoDecoder.(option).a
library/(platform)/(target)/libmw_mo_FastAudioDecoder.(option).a
library/(platform)/(target)/libmw_mo_ImaadpcmAudioDecoder.(option).a
library/(platform)/(target)/libmw_mo_DspAdpcmAudioDecoder.(option).a
library/(platform)/(target)/libmw_mo_MoflexDemuxer.(option).a
library/(platform)/(target)/libmw_mo_FilterDeblocker.(option).a

Mobiclip SDK modules version information

Below you will find the middleware description (that includes name of the module and version number information) of each Mobiclip SDK module (library) provided in this SDK:
- MobiclipDec_2_0_4
- FastAudioDec_2_0_4
- ImaAdpcmDec_2_0_4
- DspAdpcmDec_2_0_4
- MoflexDemuxer_2_0_4
- Deblocker_2_0_4

Back to top

7. Compiling Mobiclip SDK code samples

Compiling code sample that are not using the NintendoWare package.

Please ensure that the CTR-SDK package is installed and that the CTRSDK_ROOT environment variable is correctly set.

Open a command line window (can be a standard Windows cmd or a Cygwin prompt) from CTRMW_MOBICLIP_ROOT/sampledemos directory. The following simple command can be used to compile all code samples that are not using the NintendoWare package:
omake
This simple command compiles the code samples that are not using the NintendoWare package in Development mode both for their fast (optimized for speed) and small (optimized for size) versions.

Mobiclip SDK omake files uses exactly the same build rules as the ones used to compile code samples of CTR-SDK.
Please have a look at CTRSDK_ROOT/documents/SDKRules/BuildRules.html document for a complete description of build rules that can be used.

Compiling code samples that are using the NintendoWare package.

Please ensure that the NintendoWare SDK package is installed and that the NW4C_ROOT environment variable is correctly set.

When wanting to compile code samples using the NintendoWare SDK package an additional parameter must be given when calling omake:
omake WITH_NW4C=1
This simple command compiles all code samples (including the ones not using NintendoWare package) in Development mode both for their fast (optimized for speed) and small (optimized for size) versions.

Except for the WITH_NW4C macro addition the same build rules to compile code samples of CTR-SDK are used, please have a look at the previous section for more information on that topic.

Back to top

8. Known Issues


For the latest information about this product, such as bugs reported after the SDK release, please refer to the “technical information” section on the Nintendo support website for developers.
Back to top

9. Package Structure

The following shows the package directory structure and key filenames.
Please note that some minor files within the package might not be listed below.

CTR_MW-Mobiclip/
    |
    +- documents-en/
    |    |
    |    +- API/ … Function Reference manual of the Mobiclip SDK C++ API.
    |    |    
    |    +- Manual/
    |         |
    |         +- CTR-Mobiclip_SDK_Quick_Start_Guide-en_US.pdf … a brief English introduction for the Mobiclip SDK for CTR.
    |         +- CTR-Mobiclip_SDK_Encoding_Guide-en_US.pdf … a manual that explains how to create Mobiclip video content in the MoFlex format.
    |         +- CTR-Mobiclip_SDK_Programming_Manual-en_US.pdf … a manual with suggestions for using the Mobiclip SDK for CTR API.
    |
    +- include/
    |    |
    |    +- mw/
    |         |
    |         +- mo/
    |               |
    |               +- mobiclip.h … Header files.
    |
    +- libraries/
    |    |
    |    +- (Platform)/
    |         |
    |         +- (target)/ … Library files.
    |              |
    |              +- libmw_mo_MobiclipVideoDecoder.(option).a
    |              +- libmw_mo_FastAudioDecoder.(option).a
    |              +- libmw_mo_ImaadpcmAudioDecoder.(option).a
    |              +- libmw_mo_DspApcmAudioDecoder.(option).a	
    |              +- libmw_mo_MoflexDemuxer.(option).a
    |              +- libmw_mo_FilterDeblocker.(option).a
    |
    +- sampledemos/ … Sample demos and video content.
    |    |
    |    +- ramPlayback: perform a simple Mobiclip video content playback that is stored in FCRAM. The optional Deblocker filter is also used to enhance the image quality of the output video.    
    |    +- fsPlayback: does the same thing as the ramPlayback sample, but from ROM. The Deblocker filter is also used to enhance output image quality.
    |    +- seekDemo: show how to perform seeking in a Moflex movie. Seeking operations are done by using L and R buttons.
    |    +- multiTrackAudio: show how to perform Mobiclip video content playback with MoFlex files containing multiple audio tracks. Selecting the active (played) audio track is done by using UP and DOWN buttons.
    |    +- dualScreen: show how to perform dual screen movie playback, with either 3D or 2D video on the top screen.
    |    +- acceleratedPlayback: show how to perform movie playback (without audio rendering) at 1.5x or 2x of the normal video frame rate.	
    |    +- nw4cPlayback: show how to perform movie playback while using NintendoWare API at the same time. 
    |       Font rendering is done on top of video images and an external audio stream is played concurrently with the MoFlex audio track, all by using NintendoWare API.
    |    +- nw4cSequence: show how to perform movie playback after displaying a 3D scene using NintendoWare API.         
    |
    +- resources/
    |    |
    |    +- moflex_videos
    |         |
    |         +- macroshow_imaadpcm.moflex … Stereoscopic Mobiclip video content with an audio track in IMAADPCM format, is played by default by fsPlayback and ramPlayback sample demos.
    |         +- macroshow_dspadpcm.moflex … Stereoscopic Mobiclip video content, audio is in DSP-ADPCM format, can be selected for playback in fsPlayback and ramPlayback sample demos by modifying their source code.	
    |         +- motocross_imaadpcm.moflex … 2D Mobiclip video content, can be selected for playback in fsPlayback and ramPlayback sample demos by modifying their source code.
    |         +- macroshow_multiaudio_imaadpcm.moflex … Stereoscopic Mobiclip video content with three IMAADPCM audio tracks, is played by default by multiTrackAudio sample demo.
    |         +- macroshow_multiaudio_dspadpcm.moflex … Stereoscopic Mobiclip video content with three DSP-ADPCM audio tracks, can be selected for multiTrackAudio sample demo by modifying its source code.
    |         +- macroshow_multivideo_top3D_bottom2D_rotated_imaadpcm.moflex … Mobiclip video content containing two video tracks, one stereoscopic for the upper screen and one 2D for the lower screen, 
    |            audio is in IMAADPCM format, is played by default by dualScreen sample demo.
    |         +- macroshow_multivideo_top3D_bottom2D_rotated_dspadpcm.moflex … Mobiclip video content containing two video tracks, one stereoscopic for the upper screen and one 2D for the lower screen, 
    |            audio is in DSP-ADPCM format, can be selected for playback in dualScreen sample demo.
    |         +- macroshow_multivideo_top2D_bottom2D_rotated_imaadpcm.moflex … Mobiclip video content containing two video tracks, one 2D for the upper screen and one 2D for the lower screen, 
    |            audio is in IMAADPCM format, can be selected for playback in dualScreen sample demo.
    |         +- macroshow_multivideo_top2D_bottom2D_rotated_dspadpcm.moflex … Mobiclip video content containing two video tracks, one 2D for the upper screen and one 2D for the lower screen, 
    |            audio is in DSP-ADPCM format, can be selected for playback in dualScreen sample demo.
    |         +- tahoma.bcfna … Font resource used for text rendering in nw4cPlayback code sample.
    |         +- nwfont_RectDrawerShader.shbin … Shader used for text rendering in nw4cPlayback code sample.
    |         +- simple.bcsar … Sound archive resource used for audio rendering in nw4cPlayback code sample.
    |         +- stream
    |             |
    |             +- STRM_MARIOKART_FB.bcstm … Audio stream resource used for audio rendering in nw4cPlayback code sample.
    |
    |    +- source_videos
    |         |
    |         +- SampleMovie_source_Left.avi … Left eye video uncompressed sample.
    |         +- SampleMovie_source_Right.avi … Right eye video uncompressed sample.
    |         +- SampleMovie_source.avs … AviSynth script that interleaves left and right eye videos, can be opened by VirtualDub to perform compression for example.    
    |         +- SampleMovie_Mobiclip_2.0Mbps.avi … Interleaved left/right eyes video sample, which has been compressed with the Mobiclip VFW codec. 
    |         +- Convert.bat … calls MoflexTool program to convert SampleMovie_Mobiclip_2.0Mbps.avi file into the MoFlex file format.
    |
    +- tools/
    |    |
    |    +- Mobiclip_Tools_for_CTR.exe … Installer for "Mobiclip Tools for CTR", 
    |       which installs the VFW codec to be used to compress Mobiclip video content for CTR,
    |       and the MoflexTool.exe executable (the AVI to Moflex format conversion tool)  
    |       and the Mobiclip license installer program.
    |
    +- setup.wsf … configuration file used to set the CTRMW_MOBICLIP_ROOT environment variable
    +- Readme-Mobiclip-2_0_4-en_US.html … this Readme file

Back to top

10. Related Documents

Mobiclip SDK Quick Start Guide
Mobiclip SDK Encoding Guide
Mobiclip SDK Programming Manual
HTML Function Reference Manual for the Mobiclip SDK C++ API

Back to top

11. Revision History

● Ver 2.0.4
● Ver 2.0.3
● Ver 2.0.2
● Ver 2.0.1
● Ver 2.0.0
● Ver 1.5.7
● Ver 1.5.6
● Ver 1.5.5
● Ver 1.5.4
● Ver 1.5.3
● Ver 1.5.2
● Ver 1.5.1
● Ver 1.5.0
● Ver 1.4.2
● Ver 1.4.1
● Ver 1.4.0
● Ver 1.3.3
● Ver 1.3.2
● Ver 1.3.1
● Ver 1.3.0
● Ver 1.2.2
● Ver 1.2.1
● Ver 1.2.0
● Ver 1.1.0
● Ver 1.0.7
● Ver 1.0.6
● Ver 1.0.5.5
● Ver 1.0.5.4
● Ver 1.0.5.3
● Ver 1.0.5.2
● Ver 1.0.5.1
● Ver 1.0.5
● Ver 1.0.4.1
● Ver 1.0.4
● Ver 1.0.3.2
● Ver 1.0.3.1
● Ver 1.0.3
● Ver 1.0.2
● Ver 1.0.1
● Ver 1.0
● Ver 1.0RC5
● Ver 1.0RC4
● Ver 1.0.RC3
● Ver 1.0.RC2
● Ver 1.0.RC1
● Ver 0.9.1
● Ver 0.9.0
Back to top