This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

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

Other Parts Discussed in Thread: TVP7002, TVP5150

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??

  • 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

  • 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!


  • 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

  • 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!

  • Hi,

    What is the capture device you are using ?

    Thx,

    --Prabhakar Lad

  • Thanks for your kindly reply!

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

    Best regard!

  • Hi,

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

    Thx,

    --Prabhakar Lad