1 /*---------------------------------------------------------------------------* 2 Project: Horizon 3 File: camera_Api.h 4 5 Copyright (C)2009-2012 Nintendo Co., Ltd. All rights reserved. 6 7 These coded instructions, statements, and computer programs contain 8 proprietary information of Nintendo of America Inc. and/or Nintendo 9 Company Ltd., and are protected by Federal copyright law. They may 10 not be disclosed to third parties or copied or duplicated in any form, 11 in whole or in part, without the prior written consent of Nintendo. 12 13 $Rev: 48613 $ 14 *---------------------------------------------------------------------------*/ 15 16 #ifndef NN_CAMERA_CTR_CAMERA_API_H_ 17 #define NN_CAMERA_CTR_CAMERA_API_H_ 18 19 /* Please see man pages for details 20 21 */ 22 23 #include <nn/os.h> 24 #include <nn/math.h> 25 #include <nn/camera/CTR/camera_Types.h> 26 #include <nn/y2r/CTR/y2r_Types.h> 27 28 #include <nn/camera/CTR/camera_Camera.h> 29 30 namespace nn { 31 namespace camera { 32 namespace CTR { 33 34 namespace detail 35 { 36 nn::Result InitializeBase(Handle* pSession, const char* name, bool isCheck = false); 37 void FinalizeBase(Handle* pSession); 38 bool IsInitialized(); 39 void StartCapture( Port port ); 40 void StopCapture( Port port ); 41 bool IsBusy( Port port ); 42 void ClearBuffer( Port port ); 43 void GetVsyncInterruptEvent( nn::os::Event* pEvent, Port port ); 44 void GetBufferErrorInterruptEvent( nn::os::Event* pEvent, Port port ); 45 void SetReceiving( nn::os::Event* pEvent, u32 pDst, Port port, size_t imageSize, s16 transferUnit ); 46 bool IsFinishedReceiving( Port port ); 47 void SetTransferLines( Port port, s16 lines, s16 width, s16 height ); 48 s16 GetMaxLines( s16 width, s16 height ); 49 void SetTransferBytes( Port port, size_t bytes, s16 width, s16 height ); 50 size_t GetTransferBytes( Port port ); 51 size_t GetMaxBytes( s16 width, s16 height ); 52 void SetTrimming( Port port, bool enable ); 53 bool IsTrimming( Port port ); 54 void SetTrimmingParams( Port port, s16 xStart, s16 yStart, s16 xEnd, s16 yEnd ); 55 void GetTrimmingParams( s16* pXStart, s16* pYStart, s16* pXEnd, s16* pYEnd, Port port ); 56 void SetTrimmingParamsCenter( Port port, s16 trimWidth, s16 trimHeight, s16 camWidth, s16 camHeight ); 57 58 nn::Result Activate( CameraSelect select ); 59 nn::Result SwitchContext( CameraSelect select, Context next ); 60 nn::Result SetExposure( CameraSelect select, s8 exposure ); 61 nn::Result SetWhiteBalance( CameraSelect select, WhiteBalance wb ); 62 nn::Result SetSharpness( CameraSelect select, s8 sharpness ); 63 nn::Result SetAutoExposure( CameraSelect select, bool on ); 64 nn::Result IsAutoExposure( bool* pOn, CameraSelect select ); 65 nn::Result SetAutoWhiteBalance( CameraSelect select, bool on ); 66 nn::Result IsAutoWhiteBalance( bool* pOn, CameraSelect select ); 67 nn::Result FlipImage( CameraSelect select, Flip flip, Context context ); 68 nn::Result SetDetailSize( CameraSelect select, s16 width, s16 height, s16 cropX0, s16 cropY0, s16 cropX1, s16 cropY1, Context context ); 69 nn::Result SetSize( CameraSelect select, Size size, Context context ); 70 nn::Result SetFrameRate( CameraSelect select, FrameRate rate ); 71 nn::Result SetPhotoMode( CameraSelect select, PhotoMode mode ); 72 nn::Result SetEffect( CameraSelect select, Effect effect, Context context ); 73 nn::Result SetContrast( CameraSelect select, Contrast contrast ); 74 nn::Result SetLensCorrection( CameraSelect select, LensCorrection correction ); 75 nn::Result SetOutputFormat( CameraSelect select, OutputFormat format, Context context ); 76 nn::Result SetAutoExposureWindow( CameraSelect select, s16 startX, s16 startY, s16 width, s16 height ); 77 nn::Result SetAutoWhiteBalanceWindow( CameraSelect select, s16 startX, s16 startY, s16 width, s16 height ); 78 nn::Result SetNoiseFilter( CameraSelect select, bool on ); 79 nn::Result SynchronizeVsyncTiming( CameraSelect select1, CameraSelect select2 ); 80 nn::Result SetBrightnessSynchronization( bool enable ); 81 void GetLatestVsyncTiming( nn::fnd::TimeSpan *pTime, Port port, size_t past ); 82 void GetStereoCameraCalibrationData( StereoCameraCalibrationData * pDst ); 83 f32 GetParallaxOnChart( const StereoCameraCalibrationData & cal ); 84 f32 GetParallax( const StereoCameraCalibrationData & cal, const f32 distance ); 85 void GetStereoCameraCalibrationMatrixOld( nn::math::MTX34 * pDst, const StereoCameraCalibrationData & cal, const f32 translationByPixel, const bool isIncludeParallax ); 86 void GetStereoCameraCalibrationMatrix( nn::math::MTX34 * pDst, const StereoCameraCalibrationData & cal, const f32 translationByPixel, const bool isIncludeParallax ); 87 void GetStereoCameraCalibrationMatrixEx( 88 nn::math::MTX34 * pDstR, 89 nn::math::MTX34 * pDstL, 90 f32 * pDstScale, 91 const StereoCameraCalibrationData & cal, 92 const f32 translationByPixel, 93 const f32 parallax, 94 const s16 orgWidth, 95 const s16 orgHeight, 96 const s16 dstWidth, 97 const s16 dstHeight ); 98 99 // Batch parameter settings utility functions 100 nn::Result SetPackageParameterWithoutContext(const PackageParameterCameraSelect& param); 101 nn::Result SetPackageParameterWithContext(const PackageParameterContext& param); 102 nn::Result SetPackageParameterWithContext(const PackageParameterContextDetail& param); 103 104 nn::Result GetSuitableY2rStandardCoefficient(nn::y2r::CTR::StandardCoefficient* no); 105 106 nn::Result PlayShutterSound( ShutterSoundType type ); 107 108 nn::Result LeaveApplication(); 109 nn::Result ArriveApplication(); 110 } 111 112 namespace 113 { 114 const char PORT_NAME_USER[] = "cam:u"; 115 } 116 117 /* Please see man pages for details 118 119 120 121 122 123 124 125 126 127 */ 128 nn::Result Initialize(); 129 Initialize()130 inline nn::Result Initialize() { return detail::InitializeBase(&detail::Camera::s_Session, PORT_NAME_USER); } 131 132 /* Please see man pages for details 133 134 135 136 */ 137 void Finalize(); 138 Finalize()139 inline void Finalize() { detail::FinalizeBase(&detail::Camera::s_Session); } 140 141 /* Please see man pages for details 142 143 144 145 146 */ StartCapture(Port port)147 inline void StartCapture( Port port ) 148 { 149 detail::StartCapture(port); 150 } 151 /* Please see man pages for details 152 153 154 155 156 */ StopCapture(Port port)157 inline void StopCapture( Port port ) 158 { 159 detail::StopCapture(port); 160 } 161 /* Please see man pages for details 162 163 164 165 166 */ IsBusy(Port port)167 inline bool IsBusy( Port port ) 168 { 169 return detail::IsBusy(port); 170 } 171 /* Please see man pages for details 172 173 174 175 176 */ ClearBuffer(Port port)177 inline void ClearBuffer( Port port ) 178 { 179 detail::ClearBuffer(port); 180 } 181 /* Please see man pages for details 182 183 184 185 186 187 */ GetVsyncInterruptEvent(nn::os::Event * pEvent,Port port)188 inline void GetVsyncInterruptEvent( nn::os::Event* pEvent, Port port ) 189 { 190 detail::GetVsyncInterruptEvent(pEvent, port); 191 } 192 /* Please see man pages for details 193 194 195 196 197 198 199 200 */ GetBufferErrorInterruptEvent(nn::os::Event * pEvent,Port port)201 inline void GetBufferErrorInterruptEvent( nn::os::Event* pEvent, Port port ) 202 { 203 detail::GetBufferErrorInterruptEvent(pEvent, port); 204 } 205 /* Please see man pages for details 206 207 208 209 210 211 212 213 214 215 */ SetReceiving(nn::os::Event * pEvent,void * pDst,Port port,size_t imageSize,s16 transferUnit)216 inline void SetReceiving( nn::os::Event* pEvent, void* pDst, Port port, size_t imageSize, s16 transferUnit ) 217 { 218 detail::SetReceiving(pEvent, reinterpret_cast<u32>(pDst), port, imageSize, transferUnit); 219 } 220 /* Please see man pages for details 221 222 223 224 225 */ IsFinishedReceiving(Port port)226 inline bool IsFinishedReceiving( Port port ) 227 { 228 return detail::IsFinishedReceiving(port); 229 } 230 /* Please see man pages for details 231 232 233 234 235 236 237 238 239 240 241 242 243 244 */ SetTransferLines(Port port,s16 lines,s16 width,s16 height)245 inline void SetTransferLines( Port port, s16 lines, s16 width, s16 height ) 246 { 247 detail::SetTransferLines(port, lines, width, height); 248 } 249 /* Please see man pages for details 250 251 252 253 254 255 256 257 258 259 260 261 262 263 */ GetMaxLines(s16 width,s16 height)264 inline s16 GetMaxLines( s16 width, s16 height ) 265 { 266 return detail::GetMaxLines( width, height ); 267 } 268 /* Please see man pages for details 269 270 271 272 273 274 275 276 277 278 279 280 281 */ SetTransferBytes(Port port,size_t bytes,s16 width,s16 height)282 inline void SetTransferBytes( Port port, size_t bytes, s16 width, s16 height ) 283 { 284 detail::SetTransferBytes(port, bytes, width, height); 285 } 286 /* Please see man pages for details 287 288 289 290 291 */ GetTransferBytes(Port port)292 inline size_t GetTransferBytes( Port port ) 293 { 294 return detail::GetTransferBytes(port); 295 } 296 /* Please see man pages for details 297 298 299 300 301 302 303 304 305 306 307 */ GetMaxBytes(s16 width,s16 height)308 inline size_t GetMaxBytes( s16 width, s16 height ) 309 { 310 return detail::GetMaxBytes( width, height ); 311 } 312 /* Please see man pages for details 313 314 315 316 317 */ GetLineBytes(s16 width)318 inline size_t GetLineBytes( s16 width ) 319 { 320 return ((width) << 1); // Requires 2 bytes for each pixel 321 } 322 /* Please see man pages for details 323 324 325 326 327 328 */ GetFrameBytes(s16 width,s16 height)329 inline size_t GetFrameBytes( s16 width, s16 height ) 330 { 331 return (GetLineBytes(width) * (height)); 332 } 333 /* Please see man pages for details 334 335 336 337 338 339 */ SetTrimming(Port port,bool enable)340 inline void SetTrimming( Port port, bool enable ) 341 { 342 detail::SetTrimming(port, enable); 343 } 344 /* Please see man pages for details 345 346 347 348 349 */ IsTrimming(Port port)350 inline bool IsTrimming( Port port ) 351 { 352 return detail::IsTrimming(port); 353 } 354 /* Please see man pages for details 355 356 357 358 359 360 361 362 363 364 365 366 367 368 */ SetTrimmingParams(Port port,s16 xStart,s16 yStart,s16 xEnd,s16 yEnd)369 inline void SetTrimmingParams( Port port, s16 xStart, s16 yStart, s16 xEnd, s16 yEnd ) 370 { 371 detail::SetTrimmingParams(port, xStart, yStart, xEnd, yEnd); 372 } 373 /* Please see man pages for details 374 375 376 377 378 379 380 381 382 */ GetTrimmingParams(s16 * pXStart,s16 * pYStart,s16 * pXEnd,s16 * pYEnd,Port port)383 inline void GetTrimmingParams( s16* pXStart, s16* pYStart, s16* pXEnd, s16* pYEnd, Port port ) 384 { 385 detail::GetTrimmingParams(pXStart, pYStart, pXEnd, pYEnd, port); 386 } 387 /* Please see man pages for details 388 389 390 391 392 393 394 395 396 397 398 */ SetTrimmingParamsCenter(Port port,s16 trimWidth,s16 trimHeight,s16 camWidth,s16 camHeight)399 inline void SetTrimmingParamsCenter( Port port, s16 trimWidth, s16 trimHeight, s16 camWidth, s16 camHeight ) 400 { 401 detail::SetTrimmingParamsCenter(port, trimWidth, trimHeight, camWidth, camHeight); 402 } 403 404 405 /* Please see man pages for details 406 407 408 409 410 411 412 413 414 415 416 417 418 */ Activate(CameraSelect select)419 inline nn::Result Activate( CameraSelect select ) 420 { 421 return detail::Activate(select); 422 } 423 /* Please see man pages for details 424 425 426 427 428 429 430 431 432 */ SwitchContext(CameraSelect select,Context next)433 inline nn::Result SwitchContext( CameraSelect select, Context next ) 434 { 435 return detail::SwitchContext(select, next); 436 } 437 /* Please see man pages for details 438 439 440 441 442 443 444 445 446 */ SetExposure(CameraSelect select,s8 exposure)447 inline nn::Result SetExposure( CameraSelect select, s8 exposure ) 448 { 449 return detail::SetExposure(select, exposure); 450 } 451 /* Please see man pages for details 452 453 454 455 456 457 458 459 460 */ SetWhiteBalance(CameraSelect select,WhiteBalance wb)461 inline nn::Result SetWhiteBalance( CameraSelect select, WhiteBalance wb ) 462 { 463 return detail::SetWhiteBalance(select, wb); 464 } 465 /* Please see man pages for details 466 467 468 469 470 471 472 473 474 */ SetSharpness(CameraSelect select,s8 sharpness)475 inline nn::Result SetSharpness( CameraSelect select, s8 sharpness ) 476 { 477 return detail::SetSharpness(select, sharpness); 478 } 479 /* Please see man pages for details 480 481 482 483 484 485 486 487 488 */ SetAutoExposure(CameraSelect select,bool on)489 inline nn::Result SetAutoExposure( CameraSelect select, bool on ) 490 { 491 return detail::SetAutoExposure(select, on); 492 } 493 /* Please see man pages for details 494 495 496 497 498 499 500 501 502 */ IsAutoExposure(bool * pOn,CameraSelect select)503 inline nn::Result IsAutoExposure( bool* pOn, CameraSelect select ) 504 { 505 return detail::IsAutoExposure(pOn, select); 506 } 507 /* Please see man pages for details 508 509 510 511 512 513 514 515 516 */ SetAutoWhiteBalance(CameraSelect select,bool on)517 inline nn::Result SetAutoWhiteBalance( CameraSelect select, bool on ) 518 { 519 return detail::SetAutoWhiteBalance(select, on); 520 } 521 /* Please see man pages for details 522 523 524 525 526 527 528 529 530 */ IsAutoWhiteBalance(bool * pOn,CameraSelect select)531 inline nn::Result IsAutoWhiteBalance( bool* pOn, CameraSelect select ) 532 { 533 return detail::IsAutoWhiteBalance(pOn, select); 534 } 535 /* Please see man pages for details 536 537 538 539 540 541 542 543 544 545 */ 546 inline nn::Result FlipImage( CameraSelect select, Flip flip, Context context = CONTEXT_BOTH ) 547 { 548 return detail::FlipImage(select, flip, context); 549 } 550 /* Please see man pages for details 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 */ 581 inline nn::Result SetDetailSize( CameraSelect select, s16 width, s16 height, s16 cropX0 = 0, s16 cropY0 = 0, s16 cropX1 = 639, s16 cropY1 = 479, Context context = CONTEXT_BOTH ) 582 { 583 return detail::SetDetailSize(select, width, height, cropX0, cropY0, cropX1, cropY1, context); 584 } 585 /* Please see man pages for details 586 587 588 589 590 591 592 593 594 595 */ 596 inline nn::Result SetSize( CameraSelect select, Size size, Context context = CONTEXT_BOTH ) 597 { 598 return detail::SetSize(select, size, context); 599 } 600 /* Please see man pages for details 601 602 603 604 605 606 607 608 609 */ SetFrameRate(CameraSelect select,FrameRate rate)610 inline nn::Result SetFrameRate( CameraSelect select, FrameRate rate ) 611 { 612 return detail::SetFrameRate(select, rate); 613 } 614 /* Please see man pages for details 615 616 617 618 619 620 621 622 623 */ SetPhotoMode(CameraSelect select,PhotoMode mode)624 inline nn::Result SetPhotoMode( CameraSelect select, PhotoMode mode ) 625 { 626 return detail::SetPhotoMode(select, mode); 627 } 628 /* Please see man pages for details 629 630 631 632 633 634 635 636 637 638 */ 639 inline nn::Result SetEffect( CameraSelect select, Effect effect, Context context = CONTEXT_BOTH ) 640 { 641 return detail::SetEffect(select, effect, context); 642 } 643 /* Please see man pages for details 644 645 646 647 648 649 650 651 652 */ SetContrast(CameraSelect select,Contrast contrast)653 inline nn::Result SetContrast( CameraSelect select, Contrast contrast ) 654 { 655 return detail::SetContrast(select, contrast); 656 } 657 /* Please see man pages for details 658 659 660 661 662 663 664 665 666 667 668 669 */ SetLensCorrection(CameraSelect select,LensCorrection correction)670 inline nn::Result SetLensCorrection( CameraSelect select, LensCorrection correction ) 671 { 672 return detail::SetLensCorrection(select, correction); 673 } 674 /* Please see man pages for details 675 676 677 678 679 680 681 682 683 684 685 686 */ 687 inline nn::Result SetOutputFormat( CameraSelect select, OutputFormat format, Context context = CONTEXT_BOTH ) 688 { 689 return detail::SetOutputFormat(select, format, context); 690 } 691 /* Please see man pages for details 692 693 694 695 696 697 698 699 700 701 702 703 */ SetAutoExposureWindow(CameraSelect select,s16 startX,s16 startY,s16 width,s16 height)704 inline nn::Result SetAutoExposureWindow( CameraSelect select, s16 startX, s16 startY, s16 width, s16 height ) 705 { 706 return detail::SetAutoExposureWindow( select, startX, startY, width, height ); 707 } 708 /* Please see man pages for details 709 710 711 712 713 714 715 716 717 718 719 720 */ SetAutoWhiteBalanceWindow(CameraSelect select,s16 startX,s16 startY,s16 width,s16 height)721 inline nn::Result SetAutoWhiteBalanceWindow( CameraSelect select, s16 startX, s16 startY, s16 width, s16 height ) 722 { 723 return detail::SetAutoWhiteBalanceWindow( select, startX, startY, width, height ); 724 } 725 /* Please see man pages for details 726 727 728 729 730 731 732 733 734 */ SetNoiseFilter(CameraSelect select,bool on)735 inline nn::Result SetNoiseFilter( CameraSelect select, bool on ) 736 { 737 return detail::SetNoiseFilter( select, on ); 738 } 739 /* Please see man pages for details 740 741 742 743 744 745 746 747 748 749 750 751 752 753 */ SynchronizeVsyncTiming(CameraSelect select1,CameraSelect select2)754 inline nn::Result SynchronizeVsyncTiming( CameraSelect select1, CameraSelect select2 ) 755 { 756 return detail::SynchronizeVsyncTiming( select1, select2 ); 757 } 758 /* Please see man pages for details 759 760 761 762 763 764 765 766 767 768 769 770 771 772 */ 773 inline void GetLatestVsyncTiming( nn::fnd::TimeSpan *pTime, Port port, size_t past = 1) 774 { 775 detail::GetLatestVsyncTiming( pTime, port, past ); 776 } 777 /* Please see man pages for details 778 779 780 781 782 783 784 785 */ SetBrightnessSynchronization(bool enable)786 inline nn::Result SetBrightnessSynchronization( bool enable ) 787 { 788 return detail::SetBrightnessSynchronization( enable ); 789 } 790 /* Please see man pages for details 791 792 793 794 795 */ GetStereoCameraCalibrationData(StereoCameraCalibrationData * pDst)796 inline void GetStereoCameraCalibrationData( StereoCameraCalibrationData * pDst ) 797 { 798 detail::GetStereoCameraCalibrationData( pDst ); 799 } 800 /* Please see man pages for details 801 802 803 804 805 806 807 */ GetParallaxOnChart(const StereoCameraCalibrationData & cal)808 inline f32 GetParallaxOnChart( const StereoCameraCalibrationData & cal ) 809 { 810 return detail::GetParallaxOnChart( cal ); 811 } 812 /* Please see man pages for details 813 814 815 816 817 818 819 820 */ GetParallax(const StereoCameraCalibrationData & cal,f32 distance)821 inline f32 GetParallax( const StereoCameraCalibrationData & cal, f32 distance ) 822 { 823 return detail::GetParallax( cal, distance ); 824 } 825 /* Please see man pages for details 826 827 828 829 830 831 832 833 834 835 */ 836 inline void GetStereoCameraCalibrationMatrixOld( 837 nn::math::MTX34 * pDst, 838 const StereoCameraCalibrationData & cal, 839 const f32 translationByPixel, 840 const bool isIncludeParallax = true ) 841 { 842 detail::GetStereoCameraCalibrationMatrixOld( pDst, cal, translationByPixel, isIncludeParallax ); 843 } 844 /* Please see man pages for details 845 846 847 848 849 850 851 852 */ 853 inline void GetStereoCameraCalibrationMatrix( 854 nn::math::MTX34 * pDst, 855 const StereoCameraCalibrationData & cal, 856 const f32 translationUnit, 857 const bool isIncludeParallax = true ) 858 { 859 detail::GetStereoCameraCalibrationMatrix( pDst, cal, translationUnit, isIncludeParallax ); 860 } 861 /* Please see man pages for details 862 863 864 865 866 867 868 869 870 871 872 873 874 875 */ GetStereoCameraCalibrationMatrixEx(nn::math::MTX34 * pDstR,nn::math::MTX34 * pDstL,f32 * pDstScale,const StereoCameraCalibrationData & cal,const f32 translationUnit,const f32 parallax,const s16 orgWidth,const s16 orgHeight,const s16 dstWidth,const s16 dstHeight)876 inline void GetStereoCameraCalibrationMatrixEx( 877 nn::math::MTX34 * pDstR, 878 nn::math::MTX34 * pDstL, 879 f32 * pDstScale, 880 const StereoCameraCalibrationData & cal, 881 const f32 translationUnit, 882 const f32 parallax, 883 const s16 orgWidth, 884 const s16 orgHeight, 885 const s16 dstWidth, 886 const s16 dstHeight ) 887 { 888 detail::GetStereoCameraCalibrationMatrixEx( pDstR, pDstL, pDstScale, cal, translationUnit, parallax, orgWidth, orgHeight, dstWidth, dstHeight ); 889 } 890 /* Please see man pages for details 891 892 893 894 895 896 897 898 */ SetPackageParameterWithoutContext(const PackageParameterCameraSelect & param)899 inline nn::Result SetPackageParameterWithoutContext(const PackageParameterCameraSelect& param) 900 { 901 return detail::SetPackageParameterWithoutContext( param ); 902 } 903 904 /* Please see man pages for details 905 906 907 908 909 910 911 912 913 914 915 */ SetPackageParameterWithContext(const PackageParameterContext & param)916 inline nn::Result SetPackageParameterWithContext(const PackageParameterContext& param) 917 { 918 return detail::SetPackageParameterWithContext( param ); 919 } 920 921 /* Please see man pages for details 922 923 924 925 926 927 928 929 930 931 932 */ SetPackageParameterWithContext(const PackageParameterContextDetail & param)933 inline nn::Result SetPackageParameterWithContext(const PackageParameterContextDetail& param) 934 { 935 return detail::SetPackageParameterWithContext( param ); 936 } 937 938 /* Please see man pages for details 939 940 941 942 943 944 945 946 */ GetSuitableY2rStandardCoefficient(nn::y2r::CTR::StandardCoefficient * no)947 inline nn::Result GetSuitableY2rStandardCoefficient(nn::y2r::CTR::StandardCoefficient* no) 948 { 949 return detail::GetSuitableY2rStandardCoefficient( no ); 950 } 951 952 /* Please see man pages for details 953 954 955 956 957 958 959 960 */ PlayShutterSound(ShutterSoundType type)961 inline nn::Result PlayShutterSound( ShutterSoundType type ) 962 { 963 return detail::PlayShutterSound( type ); 964 } 965 966 // Function to notify the camera process of transitioning to another applet (internal use) LeaveApplication()967 inline nn::Result LeaveApplication() 968 { 969 return detail::LeaveApplication(); 970 } ArriveApplication()971 inline nn::Result ArriveApplication() 972 { 973 return detail::ArriveApplication(); 974 } 975 } 976 } 977 } 978 979 #endif // ifndef NN_CAMERA_CTR_CAMERA_API_H_ 980