• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Digital Signal Processors (DSP) » DaVinci™ Video Processors » DM3x DaVinci Video Processor Forum » what‘s the meaning of "standard.id = 1000000000"
Share
DaVinci™ Video Processors
  • Forums
  • Announcements
Options
  • Subscribe via RSS

Forums

what‘s the meaning of "standard.id = 1000000000"

This question is not answered
charor chen
Posted by charor chen
on Mar 29 2012 08:30 AM
Prodigy40 points

Today ,when I use the function "ioctl (fdCapture, VIDIOC_ENUMSTD, &standard)" to inquiry the standards that supported by the capture device,I get the following results:

standard.index = 0
standard.id = 1000000000
standard.frameperiod.numerator = 1
standard.frameperiod.denominator = 30
standard.framelines = 480
standard.index = 1
standard.id = 2000000000
standard.frameperiod.numerator = 1
standard.frameperiod.denominator = 60
standard.framelines = 480
standard.index = 2
standard.id = 4000000000
standard.frameperiod.numerator = 1
standard.frameperiod.denominator = 30
standard.framelines = 600
standard.index = 3
standard.id = 8000000000
standard.frameperiod.numerator = 1
standard.frameperiod.denominator = 60
standard.framelines = 600
standard.index = 4
standard.id = 10000000000
standard.frameperiod.numerator = 1
standard.frameperiod.denominator = 30
standard.framelines = 768
standard.index = 5
standard.id = 20000000000
standard.frameperiod.numerator = 1
standard.frameperiod.denominator = 30
standard.framelines = 480
standard.index = 6
standard.id = 40000000000
standard.frameperiod.numerator = 1
standard.frameperiod.denominator = 60
standard.framelines = 480
standard.index = 7
standard.id = 80000000000
standard.frameperiod.numerator = 1
standard.frameperiod.denominator = 25
standard.framelines = 576
standard.index = 8
standard.id = 100000000000
standard.frameperiod.numerator = 1
standard.frameperiod.denominator = 50
standard.framelines = 576
standard.index = 9
standard.id = 200000000000
standard.frameperiod.numerator = 1
standard.frameperiod.denominator = 24
standard.framelines = 720
standard.index = 10
standard.id = 400000000000
standard.frameperiod.numerator = 1
standard.frameperiod.denominator = 30
standard.framelines = 720
standard.index = 11
standard.id = 800000000000
standard.frameperiod.numerator = 1
standard.frameperiod.denominator = 18
standard.framelines = 1080
standard.index = 12
standard.id = 1000000000000
standard.frameperiod.numerator = 1
standard.frameperiod.denominator = 25
standard.framelines = 1024
standard.index = 13
standard.id = 2000000000000
standard.frameperiod.numerator = 1
standard.frameperiod.denominator = 20
standard.framelines = 1200
standard.index = 14
standard.id = 4000000000000
standard.frameperiod.numerator = 1
standard.frameperiod.denominator = 12
standard.framelines = 1536

My question is I cann't  find the value of the standard .id in the driver file (videodev2.h and videohd.h). Where can I find the definition of the value abrove??

v4l2_mmap_loopback
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Prabhakar Lad
    Posted by Prabhakar Lad
    on Mar 30 2012 00:09 AM
    Genius4675 points

    Hi,

    The v4l2_standard structure also has a filed "name" you might print this field in your application and you will get your answer.

    Regards,

    --Prabhakar Lad

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • charor chen
    Posted by charor chen
    on Mar 30 2012 01:27 AM
    Prodigy40 points

    Thanks for your answer,but I cann't find my answer after did as you said.The following is the result:

    standard.name = VGA-30
    standard.index = 0
    standard.id = 1000000000
    standard.frameperiod.numerator = 1
    standard.frameperiod.denominator = 30
    standard.framelines = 480
    standard.name = VGA-60
    standard.index = 1
    standard.id = 2000000000
    standard.frameperiod.numerator = 1
    standard.frameperiod.denominator = 60
    standard.framelines = 480
    standard.name = SVGA-30
    standard.index = 2
    standard.id = 4000000000
    standard.frameperiod.numerator = 1
    standard.frameperiod.denominator = 30
    standard.framelines = 600
    standard.name = SVGA-60
    standard.index = 3
    standard.id = 8000000000
    standard.frameperiod.numerator = 1
    standard.frameperiod.denominator = 60
    standard.framelines = 600
    standard.name = XGA-30
    standard.index = 4
    standard.id = 10000000000
    standard.frameperiod.numerator = 1
    standard.frameperiod.denominator = 30
    standard.framelines = 768
    standard.name = 480P-MT-30
    standard.index = 5
    standard.id = 20000000000
    standard.frameperiod.numerator = 1
    standard.frameperiod.denominator = 30
    standard.framelines = 480
    standard.name = 480P-MT-60
    standard.index = 6
    standard.id = 40000000000
    standard.frameperiod.numerator = 1
    standard.frameperiod.denominator = 60
    standard.framelines = 480
    standard.name = 576P-MT-25
    standard.index = 7
    standard.id = 80000000000
    standard.frameperiod.numerator = 1
    standard.frameperiod.denominator = 25
    standard.framelines = 576
    standard.name = 576P-MT-50
    standard.index = 8
    standard.id = 100000000000
    standard.frameperiod.numerator = 1
    standard.frameperiod.denominator = 50
    standard.framelines = 576
    standard.name = 720P-MT-24
    standard.index = 9
    standard.id = 200000000000
    standard.frameperiod.numerator = 1
    standard.frameperiod.denominator = 24
    standard.framelines = 720
    standard.name = 720P-MT-30
    standard.index = 10
    standard.id = 400000000000
    standard.frameperiod.numerator = 1
    standard.frameperiod.denominator = 30
    standard.framelines = 720
    standard.name = 1080P-MT-18
    standard.index = 11
    standard.id = 800000000000
    standard.frameperiod.numerator = 1
    standard.frameperiod.denominator = 18
    standard.framelines = 1080
    standard.name = SXGA-25
    standard.index = 12
    standard.id = 1000000000000
    standard.frameperiod.numerator = 1
    standard.frameperiod.denominator = 25
    standard.framelines = 1024
    standard.name = UXGA-20
    standard.index = 13
    standard.id = 2000000000000
    standard.frameperiod.numerator = 1
    standard.frameperiod.denominator = 20
    standard.framelines = 1200
    standard.name = QXGA-12
    standard.index = 14
    standard.id = 4000000000000
    standard.frameperiod.numerator = 1
    standard.frameperiod.denominator = 12
    standard.framelines = 1536

    However, what I want to know is where the standard.id is defined ?As for as I know ,the v4l2 defined the standard.id in videodev2.h as following :

    #define V4L2_STD_PAL_B          ((v4l2_std_id)0x00000001)
    #define V4L2_STD_PAL_B1         ((v4l2_std_id)0x00000002)
    #define V4L2_STD_PAL_G          ((v4l2_std_id)0x00000004)
    #define V4L2_STD_PAL_H          ((v4l2_std_id)0x00000008)
    #define V4L2_STD_PAL_I          ((v4l2_std_id)0x00000010)
    #define V4L2_STD_PAL_D          ((v4l2_std_id)0x00000020)
    #define V4L2_STD_PAL_D1         ((v4l2_std_id)0x00000040)
    #define V4L2_STD_PAL_K          ((v4l2_std_id)0x00000080)

    #define V4L2_STD_PAL_M          ((v4l2_std_id)0x00000100)
    #define V4L2_STD_PAL_N          ((v4l2_std_id)0x00000200)
    #define V4L2_STD_PAL_Nc         ((v4l2_std_id)0x00000400)
    #define V4L2_STD_PAL_60         ((v4l2_std_id)0x00000800)

    #define V4L2_STD_NTSC_M         ((v4l2_std_id)0x00001000)
    #define V4L2_STD_NTSC_M_JP      ((v4l2_std_id)0x00002000)
    #define V4L2_STD_NTSC_443       ((v4l2_std_id)0x00004000)
    #define V4L2_STD_NTSC_M_KR      ((v4l2_std_id)0x00008000)

    #define V4L2_STD_SECAM_B        ((v4l2_std_id)0x00010000)
    #define V4L2_STD_SECAM_D        ((v4l2_std_id)0x00020000)
    #define V4L2_STD_SECAM_G        ((v4l2_std_id)0x00040000)
    #define V4L2_STD_SECAM_H        ((v4l2_std_id)0x00080000)
    #define V4L2_STD_SECAM_K        ((v4l2_std_id)0x00100000)
    #define V4L2_STD_SECAM_K1       ((v4l2_std_id)0x00200000)
    #define V4L2_STD_SECAM_L        ((v4l2_std_id)0x00400000)
    #define V4L2_STD_SECAM_LC       ((v4l2_std_id)0x00800000)

    And the Ti supplement it in videohd.h:

    #define V4L2_STD_525P_60        ((v4l2_std_id)(0x0001000000000000ULL))
    #define V4L2_STD_625P_50        ((v4l2_std_id)(0x0002000000000000ULL))
    #define V4L2_STD_720P_60        ((v4l2_std_id)(0x0004000000000000ULL))
    #define V4L2_STD_720P_50        ((v4l2_std_id)(0x0008000000000000ULL))
    #define V4L2_STD_1080I_60       ((v4l2_std_id)(0x0010000000000000ULL))
    #define V4L2_STD_1080I_50       ((v4l2_std_id)(0x0020000000000000ULL))
    #define V4L2_STD_1080P_60       ((v4l2_std_id)(0x0040000000000000ULL))
    #define V4L2_STD_1080P_50       ((v4l2_std_id)(0x0080000000000000ULL))
    #define V4L2_STD_720P_30        ((v4l2_std_id)(0x0100000000000000ULL))
    #define V4L2_STD_1080I_30       ((v4l2_std_id)(0x0200000000000000ULL))
    #define V4L2_STD_1080P_30       ((v4l2_std_id)(0x0400000000000000ULL))

    Neverthless,according to ioctl (fdCapture, VIDIOC_ENUMSTD, &standard) ,the outcome cann't   match any of the v4l2_std_id. So hope you can give me another explicit answer !Thanks!

    Best regard!


    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Prabhakar Lad
    Posted by Prabhakar Lad
    on Mar 30 2012 01:46 AM
    Genius4675 points

    Hi,

    I believe you are using some sensor rite? open that file for example drivers/media/video/davinci/mt9p031.c or mt9v034.c

    open that file and search for "struct v4l2_standard" you will find your answer.

    Regards,

    --Prabhakar Lad

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • charor chen
    Posted by charor chen
    on Mar 30 2012 03:22 AM
    Prodigy40 points

    Thanks for you kindly reply!

    But I cann't find the the definition of standard.id accquirede by ioctl (fdCapture, VIDIOC_ENUMSTD, &standard).What's more ,I doesn't use any sensor!

    Best regard!

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Prabhakar Lad
    Posted by Prabhakar Lad
    on Mar 30 2012 03:32 AM
    Genius4675 points

    Hi,

    What is the capture device you are using ?

    Thx,

    --Prabhakar Lad

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • charor chen
    Posted by charor chen
    on Mar 30 2012 03:35 AM
    Prodigy40 points

    Thanks for your kindly reply!

    The capture device I use is the camera! The DA on board is TVP5150 and TVP7002!

    Best regard!

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Prabhakar Lad
    Posted by Prabhakar Lad
    on Apr 06 2012 07:09 AM
    Genius4675 points

    Hi,

    So you can navigate into your Camera driver,  tvp5150,tvp7002 and look for struct v4l2_standard structure.

    Thx,

    --Prabhakar Lad

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use